app-misc/rioutil: rework libdir path
authorConrad Kostecki <conikost@gentoo.org>
Sat, 7 Dec 2019 00:55:29 +0000 (01:55 +0100)
committerConrad Kostecki <conikost@gentoo.org>
Sat, 7 Dec 2019 01:27:43 +0000 (02:27 +0100)
Instead of overwriting during src_install to use the correct libpath,
the Makefile is fixed, to use the correct libpath during src_install.

Package-Manager: Portage-2.3.80, Repoman-2.3.19
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
app-misc/rioutil/rioutil-1.5.4.ebuild

index 64e2133d8c102e5252bb219c61cc49d278682bfa..6722b045c2ac5ee9c002c90df52ddaa653fc36bc 100644 (file)
@@ -20,6 +20,9 @@ BDEPEND="virtual/pkgconfig"
 src_prepare() {
        default
 
+       # Don't use hardcoded '/lib' libpath
+       sed -e '/libdir/d' -i Makefile.am -i librioutil/Makefile.am || die
+
        eautoreconf
 }
 
@@ -28,8 +31,7 @@ src_configure() {
 }
 
 src_install() {
-       emake DESTDIR="${ED}" libdir="/usr/$(get_libdir)" install
-       einstalldocs
+       default
 
        udev_dorules "${FILESDIR}"/75-rio.rules