From 1ca01c09a11a79cb130b53b30dcdf34cbcaaaf84 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Mon, 1 Feb 2021 11:13:44 +0300 Subject: [PATCH] New package: maturin-0.9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Érico Rolim Co-authored-by: Andrew J. Hesford --- srcpkgs/maturin/template | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 srcpkgs/maturin/template diff --git a/srcpkgs/maturin/template b/srcpkgs/maturin/template new file mode 100644 index 0000000000..cce53cf58c --- /dev/null +++ b/srcpkgs/maturin/template @@ -0,0 +1,36 @@ +# Template file for 'maturin' +pkgname=maturin +version=0.9.0 +revision=1 +build_style=cargo +# Disable the 'rustls' feature, which leads to bad platform compatibility +# The list of enabled features should be reconciled with each new release +configure_args="--no-default-features --features auditwheel,log,upload,human-panic" +hostmakedepends="python3-setuptools python3-toml" +makedepends="libressl-devel" +depends="python3-toml" +short_desc="Build and publish crates as python packages" +maintainer="Andrew J. Hesford " +license="Apache-2.0, MIT" +homepage="https://github.com/PyO3/maturin" +distfiles="${homepage}/archive/v${version}.tar.gz" +checksum=22e8082a743e1dc11f5909b596f9053deb7dc1a56336003677381ba02cf67da8 + +post_patch() { + # setup.py is broken, just use it for the pure python part + vsed -e 's/cmdclass.*/packages=["maturin"],/' -i setup.py +} + +post_build() { + # python package is pure; the cross environment is not relevant + python3 setup.py build +} + +do_check() { + echo "Tests use unstable features and fail to build; skipping" +} + +post_install() { + vlicense license-mit LICENSE-MIT + python3 setup.py install --prefix=/usr --root=${DESTDIR} +}