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.11.0-mark-rust-bundle.tar.xz 63951176 BLAKE2B 728725001de1f4256659499d6387401104f3c37a429469ac2ae39e51dc4ff010b53bedda27c6ef35262ef87fde5d1e0472346aea0913c2e11ba2e45386e1d7cd SHA512 a5379b14109d1ee28a295442c167af81a0d8a98415f2b90b1c7cce3bb0028dae39a6179229039e367da2c7fe1ffb4b02a0063542547c3ff7b8057dc272537c71
DIST maturin-1.11.0.tar.gz 224648 BLAKE2B 1c68f5404ad1ab00f345131a875acabe21487ab1f1ea12ecd59e3e696a86d83b3494fa78f9984648dd8101ad4d3acde1dc028e04ba22fa5f86d6c9ceec1896b3 SHA512 b759c28f96dedaf6e3a62765cc4d6788947eee13f435c41f08e1c2416c18bba599cdede47101765097334226c10e72fb18b5a147ba91d5c45460f7f183eb8d12
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.11.0.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/ec/8c/71b76291be77bf7ff7002a73537680d55bdbda327fb36cbef6a29852a76d/maturin-1.11.0.tar.gz -> maturin-1.11.0.tar.gz
mirror://macaroni/maturin-1.11.0-mark-rust-bundle.tar.xz -> maturin-1.11.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.11.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