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