From 86b97f56914e535d224448c1bb0d9bf479a4fc24 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 18 May 2020 14:20:23 -0400 Subject: [PATCH 1/2] New package: python3-pytools-2020.1 --- srcpkgs/python3-pytools/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/python3-pytools/template diff --git a/srcpkgs/python3-pytools/template b/srcpkgs/python3-pytools/template new file mode 100644 index 00000000000..d961b5308c2 --- /dev/null +++ b/srcpkgs/python3-pytools/template @@ -0,0 +1,19 @@ +# Template file for 'python3-pytools' +pkgname=python3-pytools +version=2020.1 +revision=1 +archs=noarch +wrksrc=pytools-${version} +build_style=python3-module +hostmakedepends="python3-setuptools" +depends="python3-decorator python3-appdirs python3-six python3-numpy" +short_desc="Python utilities from Andreas Kloeckner" +maintainer="Andrew J. Hesford " +license="X11" +homepage="https://pypi.org/project/pytools" +distfiles="${PYPI_SITE}/p/pytools/pytools-${version}.tar.gz" +checksum=c132d17855584ad61c6e00f3ff11146499755944afc400cce9eae0ecf03d04a6 + +post_install() { + vlicense LICENSE +} From 12256545b63aeef803ba5d670968ace05bcdb73e Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 18 May 2020 14:20:26 -0400 Subject: [PATCH 2/2] New package: python3-pyopencl-2020.1 --- srcpkgs/python3-pyopencl/template | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 srcpkgs/python3-pyopencl/template diff --git a/srcpkgs/python3-pyopencl/template b/srcpkgs/python3-pyopencl/template new file mode 100644 index 00000000000..d77569468af --- /dev/null +++ b/srcpkgs/python3-pyopencl/template @@ -0,0 +1,24 @@ +# Template file for 'python3-pyopencl' +pkgname=python3-pyopencl +version=2020.1 +revision=1 +wrksrc=pyopencl-${version} +build_style=python3-module +hostmakedepends="python3-setuptools python3-pybind11 python3-Cython" +makedepends="opencl2-headers ocl-icd-devel python3-pybind11" +depends="python3-pytools" +short_desc="OpenCL bindings for Python 3" +maintainer="Andrew J. Hesford " +license="X11, Apache-2.0, BSD-3-Clause" +homepage="https://mathema.tician.de/software/pyopencl" +distfiles="${PYPI_SITE}/p/pyopencl/pyopencl-${version}.tar.gz" +checksum=7513f7054f4eeb5361de1f5113883145fc67dbabde73a2148f221ae05af4d22c + +do_configure() { + ./configure.py --cl-inc-dir=${XBPS_CROSS_BASE}/usr/include \ + --cl-lib-dir=${XBPS_CROSS_BASE}/usr/lib +} + +post_install() { + vlicense LICENSE +}