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.0-mark-rust-bundle.tar.xz 82186980 BLAKE2B b715abbf61bcb5716a2d79b7dd662b11b169143eb3c9837c8a217fb743e4a41edfc3757cdf61569ff5edc1300b6ace2c5bc651e96134fafc769126619c733eaa SHA512 913c5e0249fca67419bf62e618e50c3c86b6c045c7981bb1864c31bc6de62650bc0cd016a0692c7d183baa4901aff8fcf13d37aa88fb75495f37492fb9d311c5
DIST maturin-1.14.0.tar.gz 367010 BLAKE2B c876a9fdbf58a9eb83c55c8a0eb8e6a19c26228e5abdae120619b452a58edaede15de71b700017d1ae74047cc0f1376a9d85b5590820d69388fec9d04a9cecae SHA512 d5a68203fb7333f7293bd09f3dca460963214b649e1cba7873e85ef1a075f226068640f54c11afa7df679d4540b2479c51cbb354a7718544b10f5b44af88e40b
68 changes: 68 additions & 0 deletions dev-util/maturin/maturin-1.14.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/a7/d0/b7c8b7778cc44df3efbc96eb23acaa995e06ea1a60eb9b02f29858fcbd08/maturin-1.14.0.tar.gz -> maturin-1.14.0.tar.gz
mirror://macaroni/maturin-1.14.0-mark-rust-bundle.tar.xz -> maturin-1.14.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.14.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