sys-apps/lsb-release: support Prefix.
authorBenda Xu <heroxbd@gentoo.org>
Fri, 13 Apr 2018 03:36:51 +0000 (12:36 +0900)
committerBenda Xu <heroxbd@gentoo.org>
Fri, 13 Apr 2018 03:47:28 +0000 (12:47 +0900)
Package-Manager: Portage-2.3.28, Repoman-2.3.9

sys-apps/lsb-release/lsb-release-1.4-r3.ebuild

index 6e80c09204c18f0583e89121b23cf043e85ca9a2..6105ea96577a0c9ad31b304638b7183baae600fa 100644 (file)
@@ -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
 }