From 187ec2310c21c0c96812dec5e2d2a13172492ca9 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 21 Apr 2016 12:49:18 -0400 Subject: sys-kernel/genkernel: clean up automatic git version Drop the leading "v" to match the version style we use in releases. Always add a "-git" suffix so we know it's the 9999 ebuild even if the git repo happens to be the same as the latest release. --- sys-kernel/genkernel/genkernel-9999.ebuild | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys-kernel/genkernel') diff --git a/sys-kernel/genkernel/genkernel-9999.ebuild b/sys-kernel/genkernel/genkernel-9999.ebuild index f6cd4fc69599..2a5ada30eb48 100644 --- a/sys-kernel/genkernel/genkernel-9999.ebuild +++ b/sys-kernel/genkernel/genkernel-9999.ebuild @@ -40,7 +40,7 @@ then SRC_URI="${COMMON_URI}" else inherit bash-completion-r1 eutils - SRC_URI="mirror://gentoo/${P}.tar.bz2 + SRC_URI="mirror://gentoo/${P}.tar.xz ${COMMON_URI}" KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86" fi @@ -87,7 +87,7 @@ src_unpack() { src_prepare() { if [[ ${PV} == 9999* ]] ; then einfo "Updating version tag" - GK_V=$(git describe --tags) + GK_V="$(git describe --tags | sed 's:^v::')-git" sed "/^GK_V/s,=.*,='${GK_V}',g" -i "${S}"/genkernel einfo "Producing ChangeLog from Git history..." pushd "${S}/.git" >/dev/null || die -- cgit v1.2.3-65-gdbad