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.15.0-mark-rust-bundle.tar.xz 82101248 BLAKE2B a89bd6832572e7bb8a9abd00daca0af57fe66a7a366fdc45855395ab2d7dd835747f1289e6290bd11baab3e3edc81bc9557750f86b84b92d892299b0cec0c4e7 SHA512 7a672d5f2447e5e65de059c9af106a07e0ca9b3744b3cfdac2d7c97405f4a71c2a3cd841dca97fbabd1aade98446fff40c8165d19110f096116bb5d9f05bc074
DIST maturin-1.15.0.tar.gz 385504 BLAKE2B 7ed0a8117309c6eacba093bbd0945f53887fa63443e1d0e77ec051962dff430f845c0952f7ea9e1449126b63882badfdabbc682cc39d299c539f81adb26d9a0b SHA512 15630dc7e473671ba5d3d68075ad5b36e989333929275e59a66a9c96407dacc47286613aad0310c0177082d15e7daef9df14e871caaf33a4f08fe737d059d9e9
68 changes: 68 additions & 0 deletions dev-util/maturin/maturin-1.15.0.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/b9/c8/22e5e21b2679c9bce6415ca578034ca2cc9316be0642ae21e051a2d5198c/maturin-1.15.0.tar.gz -> maturin-1.15.0.tar.gz
mirror://macaroni/maturin-1.15.0-mark-rust-bundle.tar.xz -> maturin-1.15.0-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.15.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
# 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