Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 425344

Summary: [PATCH] openexr-1.7.0 prefix support
Product: Gentoo/Alt Reporter: Nicolas Pinto <nicolas.pinto>
Component: Prefix SupportAssignee: Gentoo Prefix <prefix>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nicolas Pinto 2012-07-08 15:59:51 UTC
--- /usr/portage/media-libs/openexr/openexr-1.7.0.ebuild        2012-05-09 13:01:19.000000000 -0400
+++ media-libs/openexr/openexr-1.7.0-r1.ebuild  2012-07-08 04:24:13.892957565 -0400
@@ -1,8 +1,9 @@
 # Copyright 1999-2012 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/openexr/openexr-1.7.0.ebuild,v 1.10 2012/05/09 17:00:17 aballier Exp $
+# $Header: $
+
+EAPI=3
 
-EAPI=2
 inherit eutils libtool
 
 DESCRIPTION="ILM's OpenEXR high dynamic-range image file format libraries"
@@ -11,7 +12,7 @@
 
 LICENSE="BSD"
 SLOT="0"
-KEYWORDS="alpha amd64 -arm hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd"
+KEYWORDS="alpha amd64 -arm hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x86-solaris"
 IUSE="examples static-libs"
 
 RDEPEND="sys-libs/zlib
@@ -39,8 +40,8 @@
 src_install() {
        emake \
                DESTDIR="${D}" \
-               docdir="/usr/share/doc/${PF}/pdf" \
-               examplesdir="/usr/share/doc/${PF}/examples" \
+               docdir="${EPREFIX}/usr/share/doc/${PF}/pdf" \
+               examplesdir="${EPREFIX}/usr/share/doc/${PF}/examples" \
                install || die
 
        dodoc AUTHORS ChangeLog NEWS README
@@ -48,8 +49,8 @@
        if use examples; then
                dobin IlmImfExamples/imfexamples || die
        else
-               rm -rf "${D}"/usr/share/doc/${PF}/examples
+               rm -rf "${ED}"/usr/share/doc/${PF}/examples
        fi
 
-       find "${D}" -name '*.la' -delete
+       find "${ED}" -name '*.la' -delete
 }


HTH
Comment 1 Nicolas Pinto 2012-07-08 16:06:54 UTC

*** This bug has been marked as a duplicate of bug 425222 ***