summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wendler <polynomial-c@gentoo.org>2021-01-14 13:49:32 +0100
committerLars Wendler <polynomial-c@gentoo.org>2021-01-14 14:34:03 +0100
commitf858f9bb9fd77966edb93af7e84c39eb72ff85d1 (patch)
treed2468abd94d66ca286f854c2a9cf5a83e9830875 /sys-devel/gnuconfig
parentprofiles/prefix/darwin/macos/package.mask: mask cmake-3.19.3 (diff)
downloadgentoo-f858f9bb9fd77966edb93af7e84c39eb72ff85d1.tar.gz
gentoo-f858f9bb9fd77966edb93af7e84c39eb72ff85d1.tar.bz2
gentoo-f858f9bb9fd77966edb93af7e84c39eb72ff85d1.zip
sys-devel/gnuconfig: Handle ChangeLog file in live ebuild
create tar.xz archives instead of .tar.bz2 Package-Manager: Portage-3.0.13, Repoman-3.0.2 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-devel/gnuconfig')
-rw-r--r--sys-devel/gnuconfig/gnuconfig-99999999.ebuild7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys-devel/gnuconfig/gnuconfig-99999999.ebuild b/sys-devel/gnuconfig/gnuconfig-99999999.ebuild
index 0e97c0cc521c..1032fedf8e00 100644
--- a/sys-devel/gnuconfig/gnuconfig-99999999.ebuild
+++ b/sys-devel/gnuconfig/gnuconfig-99999999.ebuild
@@ -8,7 +8,7 @@ if [[ ${PV} == "99999999" ]] ; then
inherit git-r3
else
- SRC_URI="https://dev.gentoo.org/~whissi/dist/${PN}/${P}.tar.bz2"
+ SRC_URI="https://dev.gentoo.org/~whissi/dist/${PN}/${P}.tar.xz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris ~x86-winnt"
S="${WORKDIR}"
fi
@@ -23,13 +23,14 @@ IUSE=""
maint_pkg_create() {
cd "${S}"
+ make ChangeLog || die
local ver=$(gawk '{ gsub(/-/, "", $1); print $1; exit }' ChangeLog)
[[ ${#ver} != 8 ]] && die "invalid version '${ver}'"
cp "${FILESDIR}"/${PV}/*.patch . || die
- local tar="${T}/gnuconfig-${ver}.tar.bz2"
- tar -jcf "${tar}" ./* || die "creating tar failed"
+ local tar="${T}/gnuconfig-${ver}.tar.xz"
+ tar -Jcf "${tar}" ./* || die "creating tar failed"
einfo "Packaged tar now available:"
einfo "$(du -b "${tar}")"
}