summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2019-07-26 14:20:27 +0200
committerGuilherme Amadio <amadio@gentoo.org>2019-07-26 14:59:43 +0200
commit1c9d4d04419adae8b6e7db799abbe96b7dc74cdc (patch)
treecc963be6de5137dbc06c07092a65a895a87e0cce
parentsys-kernel/gentoo-sources: Linux patch 5.1.20 (diff)
downloadgentoo-1c9d4d04419adae8b6e7db799abbe96b7dc74cdc.tar.gz
gentoo-1c9d4d04419adae8b6e7db799abbe96b7dc74cdc.tar.bz2
gentoo-1c9d4d04419adae8b6e7db799abbe96b7dc74cdc.zip
media-gfx/povray: use X11 headers and libraries from prefix
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>
-rw-r--r--media-gfx/povray/povray-3.7.0.0-r1.ebuild6
1 files changed, 4 insertions, 2 deletions
diff --git a/media-gfx/povray/povray-3.7.0.0-r1.ebuild b/media-gfx/povray/povray-3.7.0.0-r1.ebuild
index 2b48c77734e6..25d38e4a1bca 100644
--- a/media-gfx/povray/povray-3.7.0.0-r1.ebuild
+++ b/media-gfx/povray/povray-3.7.0.0-r1.ebuild
@@ -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 \