media-gfx/povray: use X11 headers and libraries from prefix
authorGuilherme Amadio <amadio@gentoo.org>
Fri, 26 Jul 2019 12:20:27 +0000 (14:20 +0200)
committerGuilherme Amadio <amadio@gentoo.org>
Fri, 26 Jul 2019 12:59:43 +0000 (14:59 +0200)
The build system currently hard-codes the X11 include directory
to /usr/include and the library directory to /usr/lib, so the
fix is put unconditionally to fix libdir on non-prefix builds.

Package-Manager: Portage-2.3.69, Repoman-2.3.16
Signed-off-by: Guilherme Amadio <amadio@gentoo.org>
media-gfx/povray/povray-3.7.0.0-r1.ebuild

index 2b48c77734e6d10eecd72e39af2213576401b218..25d38e4a1bcabf2bf560eaa7bf0ea1718f42cc2a 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -67,12 +67,14 @@ src_prepare() {
 
        rm -rf libraries || die
 
-       # Change some destination directories that cannot be adjusted via configure
+       # Change some directories that cannot be adjusted via configure
        sed \
                -e 's:${povsysconfdir}/$PACKAGE/$VERSION_BASE:${povsysconfdir}/'${PN}':g' \
                -e 's:${povdatadir}/$PACKAGE-$VERSION_BASE:${povdatadir}/'${PN}':g' \
                -e 's:${povdatadir}/doc/$PACKAGE-$VERSION_BASE:${povdatadir}/doc/'${PF}':g' \
                -e 's:BOOST_THREAD_LIBS $LIBS:BOOST_THREAD_LIBS $LIBS -lboost_date_time:g' \
+               -e 's:"/usr/include":"'${EPREFIX}'/usr/include":' \
+               -e 's:"/usr/lib":"'${EPREFIX}'/usr/'$(get_libdir)'":' \
                -i configure.ac || die
 
        sed \