mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sys-devel/binutils-config: fix --version output #612438
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="4"
|
||||
EAPI="5"
|
||||
|
||||
inherit prefix
|
||||
|
||||
@@ -23,6 +23,7 @@ S=${WORKDIR}
|
||||
src_install() {
|
||||
newbin "${FILESDIR}"/${PN}-${PV} ${PN}
|
||||
use prefix && eprefixify "${ED}"/usr/bin/${PN}
|
||||
sed -i "s:@PV@:${PVR}:g" "${ED}"/usr/bin/${PN} || die
|
||||
doman "${FILESDIR}"/${PN}.8
|
||||
|
||||
insinto /usr/share/eselect/modules
|
||||
@@ -403,12 +403,8 @@ while [[ $# -gt 0 ]] ; do
|
||||
-d|--debug) DEBUG="yes" ;;
|
||||
-h|--help) usage 0 ;;
|
||||
-V|--version)
|
||||
unset Header
|
||||
cvsver="$Id$"
|
||||
cvsver=${cvsver##*binutils-config-}
|
||||
bver=${cvsver%%,v *}
|
||||
cvsver=${cvsver#* }
|
||||
echo "binutils-config-${bver} (r${cvsver%% *})"
|
||||
ver="@PV@"
|
||||
echo "binutils-config-${ver/@'PV'@/git}"
|
||||
exit 0
|
||||
;;
|
||||
-*)
|
||||
|
||||
Reference in New Issue
Block a user