1 |
markusle 08/10/20 12:30:00 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: singular-3.0.4.4.ebuild |
5 |
Removed: singular-3.0.2.1.ebuild singular-3.0.3.ebuild |
6 |
Log: |
7 |
Version bump and removed old ebuilds. Also disabled striping of (see bug #241238). |
8 |
(Portage version: 2.2_rc12/cvs/Linux 2.6.26-SENTINEL-3 i686) |
9 |
|
10 |
Revision Changes Path |
11 |
1.24 sci-mathematics/singular/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/singular/ChangeLog?rev=1.24&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/singular/ChangeLog?rev=1.24&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/singular/ChangeLog?r1=1.23&r2=1.24 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v |
20 |
retrieving revision 1.23 |
21 |
retrieving revision 1.24 |
22 |
diff -u -r1.23 -r1.24 |
23 |
--- ChangeLog 6 Aug 2008 20:49:42 -0000 1.23 |
24 |
+++ ChangeLog 20 Oct 2008 12:30:00 -0000 1.24 |
25 |
@@ -1,6 +1,15 @@ |
26 |
# ChangeLog for sci-mathematics/singular |
27 |
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.23 2008/08/06 20:49:42 ulm Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.24 2008/10/20 12:30:00 markusle Exp $ |
30 |
+ |
31 |
+*singular-3.0.4.4 (20 Oct 2008) |
32 |
+ |
33 |
+ 20 Oct 2008; Markus Dittrich <markusle@g.o> |
34 |
+ -files/singular-3.0.2-gentoo.diff, -files/singular-3.0.3-gentoo.diff, |
35 |
+ +files/singular-3.0.4.4-nostrip.patch, -singular-3.0.2.1.ebuild, |
36 |
+ -singular-3.0.3.ebuild, +singular-3.0.4.4.ebuild: |
37 |
+ Version bump and removed old ebuilds. Also disabled striping of binaries |
38 |
+ (see bug #241238). |
39 |
|
40 |
06 Aug 2008; Ulrich Mueller <ulm@g.o> metadata.xml: |
41 |
Add USE flag description to metadata wrt GLEP 56. |
42 |
|
43 |
|
44 |
|
45 |
1.1 sci-mathematics/singular/singular-3.0.4.4.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/singular/singular-3.0.4.4.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/singular/singular-3.0.4.4.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: singular-3.0.4.4.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2008 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.0.4.4.ebuild,v 1.1 2008/10/20 12:30:00 markusle Exp $ |
55 |
|
56 |
inherit eutils elisp-common flag-o-matic autotools multilib |
57 |
|
58 |
PV_MAJOR=${PV%.*} |
59 |
MY_PV=${PV//./-} |
60 |
MY_PN=${PN/s/S} |
61 |
MY_PV_MAJOR=${MY_PV%-*} |
62 |
|
63 |
DESCRIPTION="Computer algebra system for polynomial computations" |
64 |
HOMEPAGE="http://www.singular.uni-kl.de/" |
65 |
SRC_URI="http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/3-0-4/${MY_PN}-${MY_PV}.tar.gz |
66 |
http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/UNIX/${MY_PN}-3-0-4-2-share.tar.gz" |
67 |
|
68 |
LICENSE="GPL-2" |
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~ppc ~x86" |
71 |
IUSE="doc emacs boost" |
72 |
|
73 |
DEPEND=">=dev-lang/perl-5.6 |
74 |
>=dev-libs/gmp-4.1-r1 |
75 |
emacs? ( virtual/emacs ) |
76 |
boost? ( dev-libs/boost )" |
77 |
|
78 |
S="${WORKDIR}"/${MY_PN}-${MY_PV_MAJOR} |
79 |
SITEFILE=60${PN}-gentoo.el |
80 |
|
81 |
src_unpack () { |
82 |
unpack ${A} |
83 |
cd "${S}" |
84 |
epatch "${FILESDIR}"/${PN}-3.0.4.2-gentoo.diff |
85 |
epatch "${FILESDIR}"/${P}-nostrip.patch |
86 |
|
87 |
# for some unknown reason this ldflag causes the |
88 |
# build system to choke |
89 |
# NOTE: Look at the source and figure out why |
90 |
filter-ldflags "*hash-style*" |
91 |
|
92 |
cd "${S}"/kernel |
93 |
sed -e "s/PFSUBST/${PF}/" -i feResource.cc || \ |
94 |
die "sed failed on feResource.cc" |
95 |
|
96 |
cd "${S}"/Singular |
97 |
if ! use boost; then |
98 |
sed -e "s/AC_CHECK_HEADERS(boost/#AC_CHECK_HEADERS(boost/" \ |
99 |
-i configure.in || \ |
100 |
die "failed to fix detection of boost headers" |
101 |
else |
102 |
# -no-exceptions and boost don't play well |
103 |
sed -e "/CXXFLAGS/ s/--no-exceptions//g" \ |
104 |
-i configure.in || \ |
105 |
die "sed failed on configure" |
106 |
fi |
107 |
eautoconf |
108 |
} |
109 |
|
110 |
src_compile() { |
111 |
local myconf="${myconf} --disable-doc --without-MP --with-factory --with-libfac --disable-gmp --prefix=${S}" |
112 |
econf $(use_enable emacs) \ |
113 |
${myconf} || die "econf failed" |
114 |
emake -j1 || die "make failed" |
115 |
|
116 |
if use emacs; then |
117 |
cd "${WORKDIR}"/${MY_PN}/${MY_PV_MAJOR}/emacs/ |
118 |
elisp-compile *.el || die "elisp-compile failed" |
119 |
fi |
120 |
} |
121 |
|
122 |
src_install () { |
123 |
# install basic docs |
124 |
cd "${S}" && dodoc BUGS ChangeLog || \ |
125 |
die "failed to install docs" |
126 |
|
127 |
# install data files |
128 |
insinto /usr/share/${PN}/LIB |
129 |
cd "${S}"/${MY_PN}/LIB && doins *.lib COPYING help.cnf || \ |
130 |
die "failed to install lib files" |
131 |
insinto /usr/share/${PN}/LIB/gftables |
132 |
cd gftables && doins * \ |
133 |
|| die "failed to install files int LIB/gftables" |
134 |
|
135 |
cd "${S}"/*-Linux |
136 |
|
137 |
# install binaries |
138 |
rm ${MY_PN} || die "failed to remove ${MY_PN}" |
139 |
dobin ${MY_PN}* gen_test change_cost solve_IP \ |
140 |
toric_ideal LLL || die "failed to install binaries" |
141 |
|
142 |
# install libraries |
143 |
insinto /usr/$(get_libdir)/${PN} |
144 |
doins *.so || die "failed to install libraries" |
145 |
|
146 |
# create symbolic link |
147 |
dosym /usr/bin/${MY_PN}-${MY_PV_MAJOR} /usr/bin/${MY_PN} || \ |
148 |
die "failed to create symbolic link" |
149 |
|
150 |
# install examples |
151 |
cd "${WORKDIR}"/${MY_PN}/${MY_PV_MAJOR} |
152 |
insinto /usr/share/${PN}/examples |
153 |
doins examples/* || die "failed to install examples" |
154 |
|
155 |
# install extended docs |
156 |
if use doc; then |
157 |
dohtml -r html/* || die "failed to install html docs" |
158 |
|
159 |
insinto /usr/share/${PN} |
160 |
doins doc/singular.idx || die "failed to install idx file" |
161 |
|
162 |
cp info/${PN}.hlp info/${PN}.info && |
163 |
doinfo info/${PN}.info || \ |
164 |
die "failed to install info files" |
165 |
fi |
166 |
|
167 |
# install emacs specific stuff here, as we did a directory change |
168 |
# some lines above! |
169 |
if use emacs; then |
170 |
elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* || \ |
171 |
die "elisp-install failed" |
172 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
173 |
fi |
174 |
} |
175 |
|
176 |
pkg_postinst() { |
177 |
einfo "The authors ask you to register as a SINGULAR user." |
178 |
einfo "Please check the license file for details." |
179 |
|
180 |
if use emacs; then |
181 |
echo |
182 |
ewarn "Please note that the ESingular emacs wrapper has been" |
183 |
ewarn "removed in favor of full fledged singular support within" |
184 |
ewarn "Gentoo's emacs infrastructure; i.e. just fire up emacs" |
185 |
ewarn "and you should be good to go! See bug #193411 for more info." |
186 |
echo |
187 |
fi |
188 |
|
189 |
use emacs && elisp-site-regen |
190 |
} |
191 |
|
192 |
pkg_postrm() { |
193 |
use emacs && elisp-site-regen |
194 |
} |