From 1c9d4d04419adae8b6e7db799abbe96b7dc74cdc Mon Sep 17 00:00:00 2001 From: Guilherme Amadio Date: Fri, 26 Jul 2019 14:20:27 +0200 Subject: [PATCH] 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 --- media-gfx/povray/povray-3.7.0.0-r1.ebuild | 6 ++++-- 1 file 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 \ -- 2.26.2