From f05f9b87232a23dbe6c5132baa07c8009207fc60 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 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 srcpkgs/python-dlib/template diff --git a/srcpkgs/python-dlib/template b/srcpkgs/python-dlib/template new file mode 100644 index 00000000000..7120dcf978b --- /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="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* + } +} From 1931afeeac6646fafb92b43453eda65e3f98607e Mon Sep 17 00:00:00 2001 From: Domenico Panella Date: Sat, 11 Jul 2020 11:43:15 +0200 Subject: [PATCH 2/2] Aggiunto cmake --- srcpkgs/python-dlib/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/python-dlib/template b/srcpkgs/python-dlib/template index 7120dcf978b..a197256634f 100644 --- a/srcpkgs/python-dlib/template +++ b/srcpkgs/python-dlib/template @@ -4,7 +4,7 @@ version=19.20.0 revision=1 wrksrc=dlib-${version} build_style=python-module -hostmakedepends="python-setuptools python3-setuptools" +hostmakedepends="cmake python-setuptools python3-setuptools" makedepends="python-devel python3-devel $(vopt_if openblas openblas-devel) $(vopt_if x11 libX11-devel)"