Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions dev-util/maturin/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,5 @@ DIST maturin-1.13.1-mark-rust-bundle.tar.xz 80701400 BLAKE2B 4822f75484883e89f52
DIST maturin-1.13.1.tar.gz 340369 BLAKE2B 55eb78b407c2c7dd12f8cbd16ae47f9cce2ee4d904def6a9df969a69175b1b7ce9a83dabde7afb839cfbdcbefcbfebea8f36e4a0f664b96cf9740a4fe815e8cb SHA512 f75648121d5e4741f875947334e893676f0b3bb7cd6a4d1cc7e109e44d8fffce22b6cb4899e256475bb7b2f57bbc9d5fb5a50cc4ba04646608d6c375bf730703
DIST maturin-1.13.2-mark-rust-bundle.tar.xz 82176100 BLAKE2B a10f3b0b31333615e8a49f114c039d92374380ba1a767c48fb01cfc5dbfe55a6d2e3d251982d256ea761b2d682485056930231045fbf158b84c2af8fbc05e7e0 SHA512 4c486a2342828a13a3430ca3d5a9c67ad48cabe1a2c80964658561468be30cdbe301f517e8542b65768912fd77969640b1eb6247b5f8288b5df7d9a3f90bde45
DIST maturin-1.13.2.tar.gz 357392 BLAKE2B 9dff39a9e715c8940367d24e13e551db965fbcda1dfb6fa4279b17e202aba7b8eba7978ddb06b59e5819cb3e3e417ca76f944398b6c97937be19b871b259a2df SHA512 6a878ce44997c95009188758dc3c2f49228424749e6372070b887720e4de9b185587c966b62910c712ca96917c457c069a3c0c3ed471f0664c63a700c1988d65
DIST maturin-1.14.1-mark-rust-bundle.tar.xz 82191188 BLAKE2B dd6cdf070cd32061e953eccd5b8bebc4b55b3546e8f400c292cb2c54186892bf0af87456ee6b5aa302155a2021f4e08b09030d308bdf6c643e60e489229ccc12 SHA512 72af7eb811e35c7cae2877b9f14cfb8853a54451bfb574058c58b86ae6cc484dd10ff277f24e0fb963da4d20c58cd1f77fec48dac80c591233212dc261aad80e
DIST maturin-1.14.1.tar.gz 369637 BLAKE2B 8f495313395ce6458c173aa738e0271ad4fbc6b595c3d8b97827f54eb97287919dea8f7e6e134e8144fd8c7d5629b89757dccba5497090bbcec26381072c47e4 SHA512 71998acd84c66c60af282c4948f67e6e76626553f5486b1c3fb04700fcc26d912306a0154f5ee72824c9f79518f9b3dcfbf97bffc065e147c82336853d82d9dc
68 changes: 68 additions & 0 deletions dev-util/maturin/maturin-1.14.1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
# 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"
MEMSAVER_FACTOR=10000000
inherit cargo distutils-r1 memsaver

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/e7/b3/addd877f871fb1860d46d3a4f206ecb10b946c85846805e6367631926fd3/maturin-1.14.1.tar.gz -> maturin-1.14.1.tar.gz
mirror://macaroni/maturin-1.14.1-mark-rust-bundle.tar.xz -> maturin-1.14.1-mark-rust-bundle.tar.xz"
SLOT="0"
KEYWORDS="*"
BDEPEND="virtual/rust

"
RDEPEND="
dev-python/tomli[${PYTHON_USEDEP}]
"
DEPEND="
>=dev-python/setuptools-rust-1.11.1[${PYTHON_USEDEP}]
"
S="${WORKDIR}/maturin-1.14.1"
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
# Fix stupid project.classifiers errors!
sed -i -e '/GraalPy/d' pyproject.toml || die
}
src_configure() {
# Let memsaver adjust MAKEOPTS based on available RAM/cores FIRST
memsaver_src_configure
# Regenerate cargo config so it picks up the reduced job count
cargo_gen_config
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