commit: 4e622e20a71438985a069d4921e6bd1d4bce6432 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Feb 8 18:03:25 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Feb 8 18:05:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e622e20
sys-apps/uutils: add 9999 Easier to report bugs upstream then. Signed-off-by: Sam James <sam <AT> gentoo.org> sys-apps/uutils/uutils-0.0.17.ebuild | 27 +++++++++++++++++----- .../{uutils-0.0.17.ebuild => uutils-9999.ebuild} | 27 +++++++++++++++++----- 2 files changed, 42 insertions(+), 12 deletions(-) diff --git a/sys-apps/uutils/uutils-0.0.17.ebuild b/sys-apps/uutils/uutils-0.0.17.ebuild index 1b6bc29df711..bd137947e0de 100644 --- a/sys-apps/uutils/uutils-0.0.17.ebuild +++ b/sys-apps/uutils/uutils-0.0.17.ebuild @@ -279,22 +279,37 @@ inherit cargo DESCRIPTION="GNU coreutils rewritten in Rust" HOMEPAGE="https://github.com/uutils/coreutils" -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} +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/uutils/coreutils" + inherit git-r3 +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" -KEYWORDS="~amd64 ~arm64" BDEPEND=">=virtual/rust-1.56.0" QA_FLAGS_IGNORED=".*" +src_unpack() { + if [[ ${PV} == 9999 ]] ; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} + src_compile() { emake V=1 PROFILE=release } diff --git a/sys-apps/uutils/uutils-0.0.17.ebuild b/sys-apps/uutils/uutils-9999.ebuild similarity index 92% copy from sys-apps/uutils/uutils-0.0.17.ebuild copy to sys-apps/uutils/uutils-9999.ebuild index 1b6bc29df711..bd137947e0de 100644 --- a/sys-apps/uutils/uutils-0.0.17.ebuild +++ b/sys-apps/uutils/uutils-9999.ebuild @@ -279,22 +279,37 @@ inherit cargo DESCRIPTION="GNU coreutils rewritten in Rust" HOMEPAGE="https://github.com/uutils/coreutils" -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} +if [[ ${PV} == 9999 ]] ; then + EGIT_REPO_URI="https://github.com/uutils/coreutils" + inherit git-r3 +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" -KEYWORDS="~amd64 ~arm64" BDEPEND=">=virtual/rust-1.56.0" QA_FLAGS_IGNORED=".*" +src_unpack() { + if [[ ${PV} == 9999 ]] ; then + git-r3_src_unpack + cargo_live_src_unpack + else + cargo_src_unpack + fi +} + src_compile() { emake V=1 PROFILE=release }