Lines 2-8
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/singular/singular-3.0.3.ebuild,v 1.2 2007/08/08 13:50:04 markusle Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.0.3.ebuild,v 1.2 2007/08/08 13:50:04 markusle Exp $ |
4 |
|
4 |
|
5 |
inherit eutils flag-o-matic autotools multilib |
5 |
inherit eutils elisp-common flag-o-matic autotools multilib |
6 |
|
6 |
|
7 |
PV_MAJOR=${PV%.*} |
7 |
PV_MAJOR=${PV%.*} |
8 |
MY_PV=${PV//./-} |
8 |
MY_PV=${PV//./-} |
Lines 21-31
Link Here
|
21 |
|
21 |
|
22 |
DEPEND=">=dev-lang/perl-5.6 |
22 |
DEPEND=">=dev-lang/perl-5.6 |
23 |
>=dev-libs/gmp-4.1-r1 |
23 |
>=dev-libs/gmp-4.1-r1 |
24 |
emacs? ( || ( virtual/xemacs |
24 |
emacs? ( virtual/emacs ) |
25 |
virtual/emacs ) ) |
|
|
26 |
boost? ( dev-libs/boost )" |
25 |
boost? ( dev-libs/boost )" |
27 |
|
26 |
|
28 |
S="${WORKDIR}"/${MY_PN}-${MY_PV} |
27 |
S="${WORKDIR}"/${MY_PN}-${MY_PV} |
|
|
28 |
SITEFILE=60${PN}-gentoo.el |
29 |
|
29 |
|
30 |
src_unpack () { |
30 |
src_unpack () { |
31 |
unpack ${A} |
31 |
unpack ${A} |
Lines 54-59
Link Here
|
54 |
econf $(use_enable emacs) \ |
54 |
econf $(use_enable emacs) \ |
55 |
${myconf} || die "econf failed" |
55 |
${myconf} || die "econf failed" |
56 |
emake -j1 || die "make failed" |
56 |
emake -j1 || die "make failed" |
|
|
57 |
|
58 |
if use emacs; then |
59 |
cd "${WORKDIR}"/${MY_PN}/${MY_PV}/emacs/ |
60 |
elisp-compile *.el || die "elisp-compile failed" |
61 |
fi |
57 |
} |
62 |
} |
58 |
|
63 |
|
59 |
src_install () { |
64 |
src_install () { |
Lines 76-85
Link Here
|
76 |
dobin ${MY_PN}* gen_test change_cost solve_IP \ |
81 |
dobin ${MY_PN}* gen_test change_cost solve_IP \ |
77 |
toric_ideal LLL || die "failed to install binaries" |
82 |
toric_ideal LLL || die "failed to install binaries" |
78 |
|
83 |
|
79 |
if use emacs; then |
|
|
80 |
dobin E${MY_PN} || die "failed to install ESingular" |
81 |
fi |
82 |
|
83 |
# install libraries |
84 |
# install libraries |
84 |
insinto /usr/$(get_libdir)/${PN} |
85 |
insinto /usr/$(get_libdir)/${PN} |
85 |
doins *.so || die "failed to install libraries" |
86 |
doins *.so || die "failed to install libraries" |
Lines 102-116
Link Here
|
102 |
die "failed to install info files" |
103 |
die "failed to install info files" |
103 |
fi |
104 |
fi |
104 |
|
105 |
|
105 |
# install emacs specific stuff |
106 |
# install emacs specific stuff here, as we did a directory change |
|
|
107 |
# some lines above! |
106 |
if use emacs; then |
108 |
if use emacs; then |
107 |
insinto /usr/share/${PN}/emacs |
109 |
elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* || \ |
108 |
doins emacs/* && doins emacs/.emacs* || \ |
110 |
die "elisp-install failed" |
109 |
die "failed to set up emacs files" |
111 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
110 |
fi |
112 |
fi |
111 |
} |
113 |
} |
112 |
|
114 |
|
113 |
pkg_postinst() { |
115 |
pkg_postinst() { |
114 |
einfo "The authors ask you to register as a SINGULAR user." |
116 |
einfo "The authors ask you to register as a SINGULAR user." |
115 |
einfo "Please check the license file for details." |
117 |
einfo "Please check the license file for details." |
|
|
118 |
use emacs && elisp-site-regen |
119 |
} |
120 |
|
121 |
pkg_postrm() { |
122 |
use emacs && elisp-site-regen |
116 |
} |
123 |
} |