Lines 2-10
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.2.ebuild,v 1.3 2007/09/15 12:38:36 markusle Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/pari/pari-2.3.2.ebuild,v 1.3 2007/09/15 12:38:36 markusle Exp $ |
4 |
|
4 |
|
5 |
inherit eutils toolchain-funcs flag-o-matic |
5 |
inherit elisp-common eutils flag-o-matic multilib toolchain-funcs |
6 |
|
6 |
|
7 |
DESCRIPTION="pari (or pari-gp) : a software package for computer-aided number theory" |
7 |
DESCRIPTION="A software package for computer-aided number theory" |
8 |
HOMEPAGE="http://pari.math.u-bordeaux.fr/" |
8 |
HOMEPAGE="http://pari.math.u-bordeaux.fr/" |
9 |
SRC_URI="http://pari.math.u-bordeaux.fr/pub/pari/unix/${P}.tar.gz" |
9 |
SRC_URI="http://pari.math.u-bordeaux.fr/pub/pari/unix/${P}.tar.gz" |
10 |
|
10 |
|
Lines 15-21
Link Here
|
15 |
|
15 |
|
16 |
DEPEND="doc? ( virtual/tetex ) |
16 |
DEPEND="doc? ( virtual/tetex ) |
17 |
sys-libs/readline |
17 |
sys-libs/readline |
18 |
X? ( x11-libs/libX11 )" |
18 |
X? ( x11-libs/libX11 ) |
|
|
19 |
emacs? ( virtual/emacs )" |
20 |
SITEFILE=50${PN}-gentoo.el |
19 |
|
21 |
|
20 |
src_unpack() { |
22 |
src_unpack() { |
21 |
unpack ${A} |
23 |
unpack ${A} |
Lines 66-71
Link Here
|
66 |
cd "${S}" |
68 |
cd "${S}" |
67 |
emake docpdf || die "Failed to generate docs" |
69 |
emake docpdf || die "Failed to generate docs" |
68 |
fi |
70 |
fi |
|
|
71 |
|
72 |
if use emacs; then |
73 |
cd "${S}/emacs" |
74 |
elisp-comp *.el || die "elisp-comp failed" |
75 |
fi |
69 |
} |
76 |
} |
70 |
|
77 |
|
71 |
src_test() { |
78 |
src_test() { |
Lines 76-98
Link Here
|
76 |
} |
83 |
} |
77 |
|
84 |
|
78 |
src_install() { |
85 |
src_install() { |
79 |
make DESTDIR=${D} LIBDIR=${D}/usr/$(get_libdir) install || \ |
86 |
emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install || \ |
80 |
die "Install failed" |
87 |
die "Install failed" |
81 |
|
88 |
|
82 |
if use emacs; then |
89 |
if use emacs; then |
83 |
insinto /usr/share/emacs/site-lisp |
90 |
elisp-install ${PN} emacs/*.el emacs/*.elc || die "elisp-install failed" |
84 |
doins emacs/pari.el |
91 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
85 |
fi |
92 |
fi |
86 |
|
93 |
|
87 |
dodoc AUTHORS Announce.2.1 CHANGES README TODO NEW |
94 |
dodoc AUTHORS Announce.2.1 CHANGES README TODO NEW |
88 |
if use doc; then |
95 |
if use doc; then |
89 |
make DESTDIR=${D} LIBDIR=${D}/usr/$(get_libdir) install-doc \ |
96 |
emake DESTDIR="${D}" LIBDIR="${D}/usr/$(get_libdir)" install-doc \ |
90 |
|| die "Failed to install docs" |
97 |
|| die "Failed to install docs" |
91 |
insinto /usr/share/doc/${PF} |
98 |
insinto /usr/share/doc/${PF} |
92 |
doins doc/*.pdf || die "Failed to install pdf docs" |
99 |
doins doc/*.pdf || die "Failed to install pdf docs" |
93 |
fi |
100 |
fi |
94 |
|
101 |
|
95 |
#remove superfluous doc directory |
102 |
#remove superfluous doc directory |
96 |
rm -fr ${D}/usr/share/${P}/doc || \ |
103 |
rm -fr "${D}/usr/share/${P}/doc" || \ |
97 |
die "Failed to clean up doc directory" |
104 |
die "Failed to clean up doc directory" |
98 |
} |
105 |
} |
|
|
106 |
|
107 |
pkg_postinst() { |
108 |
use emacs && elisp-site-regen |
109 |
} |
110 |
|
111 |
pkg_postrm() { |
112 |
use emacs && elisp-site-regen |
113 |
} |