app-text/texi2html: prefix support
authorGuilherme Amadio <amadio@gentoo.org>
Tue, 6 Mar 2018 10:06:19 +0000 (11:06 +0100)
committerGuilherme Amadio <amadio@gentoo.org>
Tue, 6 Mar 2018 14:43:01 +0000 (15:43 +0100)
Package-Manager: Portage-2.3.24, Repoman-2.3.6

app-text/texi2html/texi2html-5.0-r1.ebuild

index f7e01f45b706bae7731caea897ebb0bcf9dfa919..3c4b85e12fc2d5c550a0af280322310e74a12595 100644 (file)
@@ -1,8 +1,10 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=4
 
+inherit prefix
+
 DESCRIPTION="Perl script that converts Texinfo to HTML"
 HOMEPAGE="http://www.nongnu.org/texi2html/"
 SRC_URI="mirror://nongnu/${PN}/${P}.tar.bz2"
@@ -28,6 +30,10 @@ src_prepare() {
        # On FreeBSD this script is used instead of GNU install but it comes without
        # executable pemissions... Fix it!
        chmod +x install-sh || die
+
+       if use prefix; then
+               hprefixify $(find . -name '*.pl' | xargs)
+       fi
 }
 
 src_configure() {