dev-util/qmtest: add prefix support
authorGuilherme Amadio <amadio@gentoo.org>
Tue, 29 Aug 2017 13:40:31 +0000 (15:40 +0200)
committerGuilherme Amadio <amadio@gentoo.org>
Tue, 29 Aug 2017 13:41:39 +0000 (15:41 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

dev-util/qmtest/qmtest-2.4.1-r1.ebuild

index 1f4a13ccb8a1a954221bf445e2b3006bd4b39d8e..93ad4a8feb92af913e252b44f263c4269e43c2c7 100644 (file)
@@ -14,7 +14,7 @@ SRC_URI="http://www.codesourcery.com/public/${PN}/${P}/${P}.tar.gz"
 
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS="amd64 ~mips x86"
+KEYWORDS="amd64 ~mips x86 ~amd64-linux ~x86-linux"
 IUSE=""
 
 DEPEND=""
@@ -26,8 +26,8 @@ pkg_setup() {
 
 src_install() {
        distutils-r1_src_install
-       find "${D}" -name config.py -print0 | xargs -0 sed -i "s:${D}:/usr:"
-       rm -r "${D}"usr/share/doc/${PN}/{COPYING,LICENSE.OPL} || die
-       mv "${D}"usr/share/doc/${PN}/* "${D}"usr/share/doc/${PF} || die
-       rm -r "${D}"/usr/share/doc/${PN} || die
+       find "${ED}" -name config.py -print0 | xargs -0 sed -i "s:${ED}:${EPREFIX}/usr:"
+       rm -r "${ED}"usr/share/doc/${PN}/{COPYING,LICENSE.OPL} || die
+       mv "${ED}"usr/share/doc/${PN}/* "${ED}"usr/share/doc/${PF} || die
+       rm -r "${ED}"/usr/share/doc/${PN} || die
 }