sys-boot/vboot-utils: fix 42_p20150219 /usr/usr prefix for bug 553924
authorZac Medico <zmedico@gentoo.org>
Tue, 15 Sep 2015 04:21:47 +0000 (21:21 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 15 Sep 2015 04:22:16 +0000 (21:22 -0700)
Package-Manager: portage-2.2.20.1

sys-boot/vboot-utils/vboot-utils-42_p20150219.ebuild

index de2fbd230776ffb800417779b016250f411606be..2a6b0cdb9d81a462dbf357030eb12caefed20e2e 100644 (file)
@@ -37,6 +37,8 @@ src_prepare() {
        epatch "${FILESDIR}"/${P}-cgpt-static.patch
        sed -i \
                -e 's: -Werror : :g' \
+               -e 's:${DESTDIR}/\(bin\|${LIBDIR}\):${DESTDIR}/usr/\1:g' \
+               -e 's:${DESTDIR}/default:${DESTDIR}/etc/default:g' \
                Makefile || die
 }
 
@@ -64,10 +66,7 @@ src_test() {
 }
 
 src_install() {
-       _emake DESTDIR="${ED}/usr" install
-       if ! use minimal ; then
-               rm -r "${ED}"/usr/default || die
-       fi
+       _emake DESTDIR="${ED}" install
 
        insinto /usr/share/vboot/devkeys
        doins tests/devkeys/*