diff options
Diffstat (limited to 'sys-apps/uutils-coreutils/uutils-coreutils-0.0.28.ebuild')
| -rw-r--r-- | sys-apps/uutils-coreutils/uutils-coreutils-0.0.28.ebuild | 425 |
1 files changed, 0 insertions, 425 deletions
diff --git a/sys-apps/uutils-coreutils/uutils-coreutils-0.0.28.ebuild b/sys-apps/uutils-coreutils/uutils-coreutils-0.0.28.ebuild deleted file mode 100644 index 5b3867e75696..000000000000 --- a/sys-apps/uutils-coreutils/uutils-coreutils-0.0.28.ebuild +++ /dev/null @@ -1,425 +0,0 @@ -# Copyright 2022-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -# Autogenerated by pycargoebuild 0.6.2 - -EAPI=8 - -CRATES=" - [email protected]+wasi-snapshot-preview1 -" - -inherit cargo flag-o-matic - -DESCRIPTION="GNU coreutils rewritten in Rust" -HOMEPAGE="https://uutils.github.io/coreutils/ https://github.com/uutils/coreutils" - -if [[ ${PV} == 9999 ]] ; then - EGIT_REPO_URI="https://github.com/uutils/coreutils" - inherit git-r3 -elif [[ ${PV} == *_p* ]] ; then - COREUTILS_COMMIT="" - SRC_URI="https://github.com/uutils/coreutils/archive/${FINDUTILS_COMMIT}.tar.gz -> ${P}.tar.gz" - SRC_URI+=" ${CARGO_CRATE_URIS}" - S="${WORKDIR}"/coreutils-${COREUTILS_COMMIT} -else - SRC_URI="https://github.com/uutils/coreutils/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" - SRC_URI+=" ${CARGO_CRATE_URIS}" - S="${WORKDIR}"/coreutils-${PV} - - KEYWORDS="~amd64 ~arm64" -fi - -LICENSE="MIT" -# Dependent crate licenses -LICENSE+=" Apache-2.0 BSD-2 BSD CC0-1.0 ISC MIT Unicode-DFS-2016" -SLOT="0" -IUSE="debug selinux test" -RESTRICT="!test? ( test )" - -DEPEND=" - dev-libs/oniguruma:= - selinux? ( sys-libs/libselinux ) -" -RDEPEND="${DEPEND}" -BDEPEND=" - test? ( dev-util/cargo-nextest ) -" - -QA_FLAGS_IGNORED=".*" - -PATCHES=( - "${FILESDIR}"/${PN}-0.2.27-xfail-tests.patch - "${FILESDIR}"/${PN}-0.0.28-cow-tests.patch -) - -src_unpack() { - if [[ ${PV} == 9999 ]] ; then - git-r3_src_unpack - cargo_live_src_unpack - else - cargo_src_unpack - fi -} - -src_compile() { - # normally cargo_src_compile sets this for us, but we don't use it - filter-lto - - # By default, the crate uses a system version if it can. This just guarantees - # that it will error out instead of building a vendored copy. - export RUSTONIG_SYSTEM_LIBONIG=1 - - makeargs=( - # Disable output synchronisation as make calls cargo - -Onone - - V=1 - - PROFILE=$(usex debug debug release) - - PREFIX="${EPREFIX}/usr" - PROG_PREFIX="uu-" - MULTICALL=y - MANDIR="/share/man/man1" - - SELINUX_ENABLED=$(usex selinux) - - # pinky, uptime, users, and who require utmpx (not available on musl) - # bug #832868 - SKIP_UTILS="$(usev elibc_musl "pinky uptime users who")" - ) - - emake "${makeargs[@]}" -} - -src_test() { - local -x RUST_BACKTRACE=full - - # Nicer output for nextest vs test - emake "${makeargs[@]}" \ - CARGOFLAGS="${CARGOFLAGS} $(usev !debug --release)" \ - TEST_NO_FAIL_FAST="--no-fail-fast" \ - nextest -} - -src_install() { - emake "${makeargs[@]}" DESTDIR="${D}" install -} |
