diff --git a/dev-util/maturin/Manifest b/dev-util/maturin/Manifest index f08985c..e035509 100644 --- a/dev-util/maturin/Manifest +++ b/dev-util/maturin/Manifest @@ -1,3 +1,5 @@ +DIST maturin-1.12.0-mark-rust-bundle.tar.xz 68921468 BLAKE2B 1ba25ee806dbd3df60d3104f1c1502c9f85225ad43eee1d39efa12d958c2e5e44034737aa633e948da57227ad761aaff17c47e55711a240155f710e21024df0c SHA512 a55666684271cbb6e2cc224ddc9586d56499465cb10c02afb68fb769078a0e8f0730efa996373b7c0ccc39090f727dd97607d3acddec5e0ea3439ff827303827 +DIST maturin-1.12.0.tar.gz 252430 BLAKE2B a0a78dd44324df4d0190956c61ccc927ce50fefb8f5e4e28a89e766355aa4d106c5422ea849a70e81357d434ad048d1c62b3ab4b860207d7d4149f376863e852 SHA512 585afca45c1c49cc0042799d2137d618a95019e5600bf06898966ceaf4675fc1bfc94c879fe1d9eb64136de303a8ce439df1a1201999b5727a23a85be8e75570 DIST maturin-1.9.5-mark-rust-bundle.tar.xz 57109504 BLAKE2B 8344db047f39b1b98746f0af6acbe3793554f08627f04d276c5d887960d5bc54bdd974e9b6d07621dc03871d25b3784850f4e7a250a3d823cc546691af1e0cda SHA512 b59c285e2f802113f703dc2f2b629aaf6ebaf900929c9a66ac326040555d5882a4ea6595ea3032f16cbd5c715d045be1540a7d9cb15b277b4338840f7779f8b0 DIST maturin-1.9.5.tar.gz 214843 BLAKE2B f315a33ab689587d5fb9b71094d88be4aa5065d4c7c913727706c302b910126185a7082dfb4498379acfb165da1727619f2b7e8fca6e4b6c09f3c165a777c7ef SHA512 1d0118a6153836c461849940b5267c7e77b91cd364ac9c04eb7645d82253904a5d56695f4d3ff40185851ad084955e042ece67fbf61e2d085332ee381a773b4f DIST maturin-1.9.6-mark-rust-bundle.tar.xz 57109644 BLAKE2B e862336b5770a84cc409a1b546273ca5e0dfd7e0ca8d92885cbe4aa16d189c852a067f54d2eb2a37fe74ec1d87d4ee8dde852886e6a6235997d97abb0fc33a70 SHA512 2a6ae1cbdde39978ef593ed5581b900500bc2fd093bffba834c3545b492cba21051e2eeb4ba9d08b25118cc28f1415ea0ba1448fe416c4bf036d4ee2ed8c143a diff --git a/dev-util/maturin/maturin-1.12.0.ebuild b/dev-util/maturin/maturin-1.12.0.ebuild new file mode 100644 index 0000000..f33dc2a --- /dev/null +++ b/dev-util/maturin/maturin-1.12.0.ebuild @@ -0,0 +1,61 @@ +# Distributed under the terms of the GNU General Public License v2 +# Autogen by MARK Devkit + +EAPI=7 +PYTHON_COMPAT=( python3+ ) +ECARGO_BUNDLE_POSTFIX="mark-rust-bundle" +CARGO_OPTIONAL="yes" +inherit cargo distutils-r1 + +DESCRIPTION="Build and publish crates with pyo3, cffi and uniffi bindings as well as rust binaries as python packages" +HOMEPAGE="https://github.com/pyo3/maturin" +SRC_URI=" +https://files.pythonhosted.org/packages/a6/21/85e8189ca40f97885abc5154950490b821e590fd2aebea0c9bfb92b1c353/maturin-1.12.0.tar.gz -> maturin-1.12.0.tar.gz +mirror://macaroni/maturin-1.12.0-mark-rust-bundle.tar.xz -> maturin-1.12.0-mark-rust-bundle.tar.xz" +SLOT="0" +KEYWORDS="*" +BDEPEND="virtual/rust + +" +RDEPEND=" + dev-python/tomli[${PYTHON_USEDEP}] +" +DEPEND=" + dev-python/setuptools-rust[${PYTHON_USEDEP}] +" +S="${WORKDIR}/maturin-1.12.0" +src_unpack() { + cargo_src_unpack +} +src_prepare() { + distutils-r1_src_prepare + # we build the Rust executable (just once) via cargo_src_compile + sed -i -e '/setuptools_rust/d' -e '/rust_extensions/d' setup.py || die +} +src_configure() { + export OPENSSL_NO_VENDOR=1 + export ZSTD_SYS_USE_PKG_CONFIG=1 + local myfeatures=( + full + password-storage + native-tls + ) + cargo_src_configure --no-default-features +} +src_compile() { + cargo_src_compile + distutils-r1_src_compile +} +src_install() { + dobin target/release/maturin + dodoc Changelog.md README.md + local maturin=target/release/maturin + mkdir -p "${D}"/usr/share/{bash-completion/completions/,fish/vendor_completions.d/,zsh/site-functions/} || die + "${maturin}" completions bash > "${D}"/usr/share/bash-completion/${PN} || die + "${maturin}" completions fish > "${D}"/usr/share/fish/vendor_completions.d//${PN}.fish || die + "${maturin}" completions zsh > "${D}"/usr/share/zsh/site-functions/_${PN} || die + distutils-r1_src_install +} + + +# vim: filetype=ebuild