1 |
tomka 10/11/26 09:47:24 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: singular-3.1.2-r2.ebuild |
5 |
Removed: singular-3.1.1-r1.ebuild singular-3.1.2-r1.ebuild |
6 |
Log: |
7 |
Checking for selected emacs version, bumped share-tarball, removed old. |
8 |
|
9 |
(Portage version: 2.1.9.24/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.36 sci-mathematics/singular/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/singular/ChangeLog?rev=1.36&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/singular/ChangeLog?rev=1.36&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/singular/ChangeLog?r1=1.35&r2=1.36 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v |
21 |
retrieving revision 1.35 |
22 |
retrieving revision 1.36 |
23 |
diff -u -r1.35 -r1.36 |
24 |
--- ChangeLog 8 Nov 2010 23:33:11 -0000 1.35 |
25 |
+++ ChangeLog 26 Nov 2010 09:47:24 -0000 1.36 |
26 |
@@ -1,6 +1,15 @@ |
27 |
# ChangeLog for sci-mathematics/singular |
28 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.35 2010/11/08 23:33:11 tomka Exp $ |
30 |
+# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.36 2010/11/26 09:47:24 tomka Exp $ |
31 |
+ |
32 |
+*singular-3.1.2-r2 (26 Nov 2010) |
33 |
+ |
34 |
+ 26 Nov 2010; Thomas Kahle <tomka@g.o> |
35 |
+ -files/singular-3.1.0-glibc-2.10.patch, -singular-3.1.1-r1.ebuild, |
36 |
+ -singular-3.1.2-r1.ebuild, +singular-3.1.2-r2.ebuild: |
37 |
+ Upstream updated share-tarball. |
38 |
+ Use latest emacs.eclass gadgets |
39 |
+ Removed old. |
40 |
|
41 |
*singular-3.1.2-r1 (08 Nov 2010) |
42 |
|
43 |
|
44 |
|
45 |
|
46 |
1.1 sci-mathematics/singular/singular-3.1.2-r2.ebuild |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/singular/singular-3.1.2-r2.ebuild?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/singular/singular-3.1.2-r2.ebuild?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: singular-3.1.2-r2.ebuild |
52 |
=================================================================== |
53 |
# Copyright 1999-2010 Gentoo Foundation |
54 |
# Distributed under the terms of the GNU General Public License v2 |
55 |
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/singular-3.1.2-r2.ebuild,v 1.1 2010/11/26 09:47:24 tomka Exp $ |
56 |
|
57 |
EAPI="3" |
58 |
WANT_AUTOCONF="2.1" # Upstream ticket 240 -> wontfix |
59 |
|
60 |
inherit autotools eutils elisp-common flag-o-matic multilib prefix versionator |
61 |
|
62 |
MY_PN=Singular |
63 |
MY_PV=$(replace_all_version_separators -) |
64 |
MY_DIR=$(get_version_component_range 1-3 ${MY_PV}) |
65 |
# There 'share' tarball does not get updated on every release |
66 |
MY_SHARE_DIR="3-1-2" |
67 |
MY_PV_SHARE="${MY_SHARE_DIR}" |
68 |
|
69 |
DESCRIPTION="Computer algebra system for polynomial computations" |
70 |
HOMEPAGE="http://www.singular.uni-kl.de/" |
71 |
SRC_COM="http://www.mathematik.uni-kl.de/ftp/pub/Math/${MY_PN}/SOURCES/" |
72 |
# Share stuff did not see a new version: |
73 |
SRC_URI="${SRC_COM}${MY_DIR}/${MY_PN}-${MY_PV}.tar.gz |
74 |
${SRC_COM}${MY_SHARE_DIR}/Singular-${MY_PV_SHARE}-share.tar.gz" |
75 |
|
76 |
LICENSE="GPL-2" |
77 |
SLOT="0" |
78 |
KEYWORDS="~amd64 ~ppc ~x86 ~x86-linux" |
79 |
IUSE="boost doc emacs examples +readline test" |
80 |
|
81 |
RDEPEND="dev-libs/gmp |
82 |
>=dev-libs/ntl-5.5.1 |
83 |
emacs? ( >=virtual/emacs-22 )" |
84 |
|
85 |
DEPEND="${RDEPEND} |
86 |
dev-lang/perl |
87 |
boost? ( dev-libs/boost ) |
88 |
readline? ( sys-libs/readline ) |
89 |
test? ( dev-util/cmake |
90 |
dev-util/cppunit )" |
91 |
|
92 |
S="${WORKDIR}"/${MY_PN}-${MY_DIR} |
93 |
SITEFILE=60${PN}-gentoo.el |
94 |
|
95 |
pkg_setup() { |
96 |
append-flags "-fPIC" |
97 |
append-ldflags "-fPIC" |
98 |
tc-export CC CPP CXX |
99 |
|
100 |
# Ensure that >=emacs-22 is selected |
101 |
if use emacs; then |
102 |
lisp-need-emacs 22 || die "Emacs version too low" |
103 |
fi |
104 |
} |
105 |
|
106 |
src_prepare () { |
107 |
epatch "${FILESDIR}"/${PN}-3.1.0-gentoo.patch |
108 |
epatch "${FILESDIR}"/${PN}-3.1.0-emacs-22.patch |
109 |
epatch "${FILESDIR}"/${PN}-3.0.4.4-nostrip.patch |
110 |
|
111 |
# This file has a trailing whitespace breaking stuff |
112 |
# It's fixed in upstream cvs, remove with next version! |
113 |
sed -i 's/[ \t]*$//' "${S}"/omalloc/Makefile.in || die |
114 |
|
115 |
eprefixify kernel/feResource.cc |
116 |
|
117 |
sed -i \ |
118 |
-e "/CXXFLAGS/ s/--no-exceptions//g" \ |
119 |
-e "s/SLDFLAGS=-shared/SLDFLAGS=\"$(raw-ldflags) -shared\"/" \ |
120 |
"${S}"/Singular/configure.in || die |
121 |
|
122 |
SOSUFFIX=$(get_version_component_range 1-3) |
123 |
sed -i \ |
124 |
-e "s:SO_SUFFIX = so:SO_SUFFIX = so.${SOSUFFIX}:" \ |
125 |
"${S}"/Singular/Makefile.in || die |
126 |
|
127 |
cd "${S}"/Singular || die "failed to cd into Singular/" |
128 |
eautoconf |
129 |
} |
130 |
|
131 |
src_configure() { |
132 |
|
133 |
econf \ |
134 |
--prefix="${S}"/build \ |
135 |
--exec-prefix="${S}"/build \ |
136 |
--bindir="${S}"/build/bin \ |
137 |
--libdir="${S}"/build/lib \ |
138 |
--libexecdir="${S}"/build/lib \ |
139 |
--includedir="${S}"/build/include \ |
140 |
--with-apint=gmp \ |
141 |
--with-gmp="${EPREFIX}"/usr \ |
142 |
--disable-NTL \ |
143 |
--disable-debug \ |
144 |
--disable-doc \ |
145 |
--without-MP \ |
146 |
--enable-factory \ |
147 |
--enable-libfac \ |
148 |
--enable-IntegerProgramming \ |
149 |
--enable-Singular \ |
150 |
$(use_with boost Boost) \ |
151 |
$(use_enable emacs) \ |
152 |
$(use_with readline) || die "configure failed" |
153 |
} |
154 |
|
155 |
src_compile() { |
156 |
emake || die "emake failed" |
157 |
|
158 |
if use emacs; then |
159 |
cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR}/emacs/ |
160 |
elisp-compile *.el || die "elisp-compile failed" |
161 |
fi |
162 |
} |
163 |
|
164 |
src_test() { |
165 |
# Tests fail to link -lsingular, upstream ticket #243 |
166 |
emake test || die "tests failed" |
167 |
} |
168 |
|
169 |
src_install () { |
170 |
dodoc README |
171 |
# execs and libraries |
172 |
cd "${S}"/build/bin |
173 |
dobin ${MY_PN}* gen_test change_cost solve_IP toric_ideal LLL \ |
174 |
|| die "failed to install binaries" |
175 |
insinto /usr/$(get_libdir)/${PN} |
176 |
doins *.so || die "failed to install libraries" |
177 |
|
178 |
dosym ${MY_PN}-${MY_DIR} /usr/bin/${MY_PN} \ |
179 |
|| die "failed to create symbolic link" |
180 |
|
181 |
# stuff from the share tar ball |
182 |
cd "${WORKDIR}"/${MY_PN}/${MY_SHARE_DIR} |
183 |
insinto /usr/share/${PN} |
184 |
doins -r LIB || die "failed to install lib files" |
185 |
if use examples; then |
186 |
insinto /usr/share/doc/${PF} |
187 |
doins -r examples || die "failed to install examples" |
188 |
fi |
189 |
if use doc; then |
190 |
dohtml -r html/* || die "failed to install html docs" |
191 |
insinto /usr/share/${PN} |
192 |
doins doc/singular.idx || die "failed to install idx file" |
193 |
cp info/${PN}.hlp info/${PN}.info && |
194 |
doinfo info/${PN}.info \ |
195 |
|| die "failed to install info files" |
196 |
fi |
197 |
if use emacs; then |
198 |
elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* \ |
199 |
|| die "elisp-install failed" |
200 |
elisp-site-file-install "${FILESDIR}/${SITEFILE}" |
201 |
fi |
202 |
} |
203 |
|
204 |
pkg_postinst() { |
205 |
einfo "The authors ask you to register as a SINGULAR user." |
206 |
einfo "Please check the license file for details." |
207 |
|
208 |
if use emacs; then |
209 |
echo |
210 |
ewarn "Please note that the ESingular emacs wrapper has been" |
211 |
ewarn "removed in favor of full fledged singular support within" |
212 |
ewarn "Gentoo's emacs infrastructure; i.e. just fire up emacs" |
213 |
ewarn "and you should be good to go! See bug #193411 for more info." |
214 |
echo |
215 |
fi |
216 |
|
217 |
use emacs && elisp-site-regen |
218 |
} |
219 |
|
220 |
pkg_postrm() { |
221 |
use emacs && elisp-site-regen |
222 |
} |