Gentoo Archives: gentoo-commits

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