summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/lsb-release/lsb-release-1.4-r3.ebuild12
1 files changed, 7 insertions, 5 deletions
diff --git a/sys-apps/lsb-release/lsb-release-1.4-r3.ebuild b/sys-apps/lsb-release/lsb-release-1.4-r3.ebuild
index 6e80c09204c1..6105ea96577a 100644
--- a/sys-apps/lsb-release/lsb-release-1.4-r3.ebuild
+++ b/sys-apps/lsb-release/lsb-release-1.4-r3.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=5
-inherit eutils
+inherit eutils prefix
DESCRIPTION="LSB version query program"
HOMEPAGE="https://wiki.linuxfoundation.org/lsb/"
@@ -23,16 +23,18 @@ src_prepare() {
-e "s:echo -e:printf '%b\\\n':g" \
-e 's:--long:-l:g' \
lsb_release || die
+
+ hprefixify lsb_release
}
src_install() {
emake \
- prefix="${D}/usr" \
- mandir="${D}/usr/share/man" \
+ prefix="${ED}/usr" \
+ mandir="${ED}/usr/share/man" \
install
dodir /etc
- cat > "${D}/etc/lsb-release" <<- EOF
+ cat > "${ED}/etc/lsb-release" <<- EOF
DISTRIB_ID="Gentoo"
EOF
}