diff options
author | Fabian Groffen <grobian@gentoo.org> | 2011-04-24 14:28:26 +0000 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2011-04-24 14:28:26 +0000 |
commit | 6a4c22c0e3c3aaa401794053e8c57065725d04cc (patch) | |
tree | 09e4589f427f242531ed84d2140d30122dbfc06b /sci-mathematics/pari/pari-2.3.5.ebuild | |
parent | QA: fix build (bug #362943) by removing a stray libtool file. (diff) | |
download | gentoo-2-6a4c22c0e3c3aaa401794053e8c57065725d04cc.tar.gz gentoo-2-6a4c22c0e3c3aaa401794053e8c57065725d04cc.tar.bz2 gentoo-2-6a4c22c0e3c3aaa401794053e8c57065725d04cc.zip |
Fix for Prefix, use EAPI=3
(Portage version: 2.2.01.18252-prefix/cvs/SunOS i386)
Diffstat (limited to 'sci-mathematics/pari/pari-2.3.5.ebuild')
-rw-r--r-- | sci-mathematics/pari/pari-2.3.5.ebuild | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/sci-mathematics/pari/pari-2.3.5.ebuild b/sci-mathematics/pari/pari-2.3.5.ebuild index 6e5edbfb6358..9af0afc8002a 100644 --- a/sci-mathematics/pari/pari-2.3.5.ebuild +++ b/sci-mathematics/pari/pari-2.3.5.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.5.ebuild,v 1.4 2011/03/20 19:58:08 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.5.ebuild,v 1.5 2011/04/24 14:28:26 grobian Exp $ -EAPI=2 +EAPI=3 inherit elisp-common eutils flag-o-matic toolchain-funcs DESCRIPTION="A software package for computer-aided number theory" @@ -58,7 +58,7 @@ src_prepare() { config/get_dlld || die "Failed to fix LDFLAGS" # move doc dir to a gentoo doc dir and replace hardcoded xdvi by xdg-open sed -i \ - -e "s:\$d = \$0:\$d = '/usr/share/doc/${PF}':" \ + -e "s:\$d = \$0:\$d = '${EPREFIX}/usr/share/doc/${PF}':" \ -e 's:"xdvi":"xdg-open":' \ -e 's:xdvi -paper 29.7x21cm:xdg-open:' \ doc/gphelp.in || die "Failed to fix doc dir" @@ -81,11 +81,11 @@ src_configure() { fi # sysdatadir installs a pari.cfg stuff which is informative only ./Configure \ - --prefix=/usr \ - --datadir=/usr/share/${PN} \ - --libdir=/usr/$(get_libdir) \ - --sysdatadir=/usr/share/doc/${PF} \ - --mandir=/usr/share/man/man1 \ + --prefix="${EPREFIX}"/usr \ + --datadir="${EPREFIX}"/usr/share/${PN} \ + --libdir="${EPREFIX}"/usr/$(get_libdir) \ + --sysdatadir="${EPREFIX}"/usr/share/doc/${PF} \ + --mandir="${EPREFIX}"/usr/share/man/man1 \ --with-readline \ $(use_with gmp) \ || die "./Configure failed" @@ -139,8 +139,8 @@ src_install() { if use doc; then emake \ DESTDIR="${D}" \ - EXDIR="${D}/usr/share/doc/${PF}/examples" \ - DOCDIR="${D}/usr/share/doc/${PF}" \ + EXDIR="${ED}/usr/share/doc/${PF}/examples" \ + DOCDIR="${ED}/usr/share/doc/${PF}" \ install-doc || die "Failed to install docs" insinto /usr/share/doc/${PF} doins doc/*.pdf || die "Failed to install pdf docs" |