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
@@ -1,3 +1,5 @@
DIST maturin-1.10.2-mark-rust-bundle.tar.xz 66155552 BLAKE2B 41da8b485872374fbc53ba26e3039ca4588eba658d8c2250bdefcca9ebd8921fe1260a079f96d271bfaa0c0feca08bec5c5991b4faec54c3d2db7b68cc99cf25 SHA512 e2735273cdc7b42e7adca41f5ace4dac546d01ea40c495e9d74c1787c30f1ea4086df279b896c10ccc518daa1457941d5385babb0252c8fe9659e448989dd569
DIST maturin-1.10.2.tar.gz 217835 BLAKE2B 60f2d981bf8a988b4983af7ff5e82321c50dd4b16bc08da33d98e5f39e5a32fe87c6d183cc7de25188f1f6ffb7fa77ab64de91d69092a59e76e319a2433fa02f SHA512 6967bd293488d3d39810a12a65b7f17960c32d82cc01ac7d1cd8f08f29813e169e283fedc8df3befef945cb4234b33f682b4ccfb3dc7cca8a17f36c6367cfcba
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
Expand Down
61 changes: 61 additions & 0 deletions dev-util/maturin/maturin-1.10.2.ebuild
Original file line number Diff line number Diff line change
@@ -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/02/44/c593afce7d418ae6016b955c978055232359ad28c707a9ac6643fc60512d/maturin-1.10.2.tar.gz -> maturin-1.10.2.tar.gz
mirror://macaroni/maturin-1.10.2-mark-rust-bundle.tar.xz -> maturin-1.10.2-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.10.2"
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