From 9730c44a3ac9c28b3716ee7b6ffb158c07fab37b Mon Sep 17 00:00:00 2001 From: Domenico Panella Date: Sat, 11 Jul 2020 11:06:02 +0200 Subject: [PATCH 1/2] New package : python-dlib-19.20.0 --- srcpkgs/python-dlib/template | 27 +++++++++++++++++++++++++++ srcpkgs/python3-dlib | 1 + 2 files changed, 28 insertions(+) create mode 100644 srcpkgs/python-dlib/template create mode 120000 srcpkgs/python3-dlib diff --git a/srcpkgs/python-dlib/template b/srcpkgs/python-dlib/template new file mode 100644 index 00000000000..a197256634f --- /dev/null +++ b/srcpkgs/python-dlib/template @@ -0,0 +1,27 @@ +# Template file for 'python-dlib' +pkgname=python-dlib +version=19.20.0 +revision=1 +wrksrc=dlib-${version} +build_style=python-module +hostmakedepends="cmake python-setuptools python3-setuptools" +makedepends="python-devel python3-devel + $(vopt_if openblas openblas-devel) + $(vopt_if x11 libX11-devel)" +short_desc="C++ toolkit containing machine learning algorithms and tools (Python2)" +maintainer="Domenico Panella " +license="BSL-1.0" +homepage="https://pypi.org/project/dlib/" +distfiles="${PYPI_SITE}/d/dlib/dlib-${version}.tar.gz" +checksum=a3f5070df590c3f510dde2f4c84b1b20e3ef64a02932ed657da490834ecac7e4 +build_options="openblas x11" +desc_option_openblas="Enable OpenBlas for performance" +desc_option_x11="Enable X11 for GUI components" +build_options_default="openblas x11" + +python3-dlib_package() { + short_desc="${short_desc/Python2/Python3}" + pkg_install() { + vmove usr/lib/python3* + } +} diff --git a/srcpkgs/python3-dlib b/srcpkgs/python3-dlib new file mode 120000 index 00000000000..cdce108c19c --- /dev/null +++ b/srcpkgs/python3-dlib @@ -0,0 +1 @@ +python-dlib \ No newline at end of file From a4e476c21418203a1b0cba44f1502494d602b8fc Mon Sep 17 00:00:00 2001 From: Domenico Panella Date: Sat, 11 Jul 2020 18:27:43 +0200 Subject: [PATCH 2/2] New package : python-dlib-19.20.0 --- srcpkgs/python-dlib/template | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/srcpkgs/python-dlib/template b/srcpkgs/python-dlib/template index a197256634f..3ecb5d10d66 100644 --- a/srcpkgs/python-dlib/template +++ b/srcpkgs/python-dlib/template @@ -3,12 +3,12 @@ pkgname=python-dlib version=19.20.0 revision=1 wrksrc=dlib-${version} -build_style=python-module -hostmakedepends="cmake python-setuptools python3-setuptools" -makedepends="python-devel python3-devel - $(vopt_if openblas openblas-devel) - $(vopt_if x11 libX11-devel)" -short_desc="C++ toolkit containing machine learning algorithms and tools (Python2)" +build_style=python3-module +hostmakedepends="cmake python3-setuptools" +makedepends="python3-devel + $(vopt_if openblas openblas-devel) + $(vopt_if x11 libX11-devel)" +short_desc="C++ toolkit containing machine learning algorithms and tools" maintainer="Domenico Panella " license="BSL-1.0" homepage="https://pypi.org/project/dlib/" @@ -16,12 +16,4 @@ distfiles="${PYPI_SITE}/d/dlib/dlib-${version}.tar.gz" checksum=a3f5070df590c3f510dde2f4c84b1b20e3ef64a02932ed657da490834ecac7e4 build_options="openblas x11" desc_option_openblas="Enable OpenBlas for performance" -desc_option_x11="Enable X11 for GUI components" build_options_default="openblas x11" - -python3-dlib_package() { - short_desc="${short_desc/Python2/Python3}" - pkg_install() { - vmove usr/lib/python3* - } -}