media-libs/hamlib: Fix installation for USE=perl (bug #611550).
authorThomas Beierlein <tomjbe@gentoo.org>
Sat, 11 Mar 2017 19:14:50 +0000 (20:14 +0100)
committerThomas Beierlein <tomjbe@gentoo.org>
Sat, 11 Mar 2017 19:14:50 +0000 (20:14 +0100)
Thanks Toralf for reporting and Kent\n for pointing out how to fix.

Package-Manager: Portage-2.3.4, Repoman-2.3.2

media-libs/hamlib/hamlib-3.1.ebuild

index 2e02c1100b41865f626687aee6a22976fc3c9603..0b62f32489547d68140991da6fe598ff0ba8030d 100644 (file)
@@ -46,6 +46,12 @@ src_prepare() {
                -e "s#fix}/include#fix}/include/hamlib#" \
                hamlib.pc.in || die "sed failed"
 
+       # Correct install target to whatever INSTALLDIRS says and use vendor
+       # installdirs everywhere (bug #611550)
+       sed -i -e "s#install_site#install#"     \
+       -e 's#MAKEFILE="Hamlib-pl.mk"#MAKEFILE="Hamlib-pl.mk" INSTALLDIRS=vendor#' \
+       bindings/Makefile.am || die "sed failed patching for perl"
+
        # make building of documentation compatible with autotools-utils
        sed -i -e "s/doc:/html:/g" doc/Makefile.am || die "sed failed"