commit:     fa06f36cdbbe158b77e1129a1aa539047c12214f
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 13 03:36:51 2018 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Fri Apr 13 03:47:28 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fa06f36c

sys-apps/lsb-release: support Prefix.

Package-Manager: Portage-2.3.28, Repoman-2.3.9

 sys-apps/lsb-release/lsb-release-1.4-r3.ebuild | 12 +++++++-----
 1 file 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 6e80c09204c..6105ea96577 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
 }

Reply via email to