From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/uutils/
Date: Wed, 8 Feb 2023 18:05:32 +0000 (UTC) [thread overview]
Message-ID: <1675879519.4e622e20a71438985a069d4921e6bd1d4bce6432.sam@gentoo> (raw)
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
}
next reply other threads:[~2023-02-08 18:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-08 18:05 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2023-02-22 8:46 [gentoo-commits] repo/gentoo:master commit in: sys-apps/uutils/ Sam James
2023-02-08 18:05 Sam James
2022-08-24 1:43 Sam James
2022-07-31 9:29 Luca Barbato
2022-07-31 9:29 Luca Barbato
2022-07-28 7:26 Luca Barbato
2022-07-27 20:47 Luca Barbato
2022-04-04 12:07 Luca Barbato
2022-02-01 10:27 Luca Barbato
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1675879519.4e622e20a71438985a069d4921e6bd1d4bce6432.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox