Gentoo Archives: gentoo-commits

From: "Sebastien Fabbro (bicatali)" <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in sci-mathematics/singular: singular-3.1.1.ebuild ChangeLog singular-3.0.4.4.ebuild
Date: Wed, 28 Apr 2010 04:53:27
Message-Id: 20100428045322.365322C05B@corvid.gentoo.org
1 bicatali 10/04/28 04:53:22
2
3 Modified: ChangeLog
4 Added: singular-3.1.1.ebuild
5 Removed: singular-3.0.4.4.ebuild
6 Log:
7 Version bump. Rewrote the ebuild.
8 (Portage version: 2.2_rc67/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.32 sci-mathematics/singular/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/singular/ChangeLog?rev=1.32&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/singular/ChangeLog?rev=1.32&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/singular/ChangeLog?r1=1.31&r2=1.32
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v
20 retrieving revision 1.31
21 retrieving revision 1.32
22 diff -u -r1.31 -r1.32
23 --- ChangeLog 4 Dec 2009 02:12:41 -0000 1.31
24 +++ ChangeLog 28 Apr 2010 04:53:21 -0000 1.32
25 @@ -1,6 +1,15 @@
26 # ChangeLog for sci-mathematics/singular
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.31 2009/12/04 02:12:41 markusle Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/singular/ChangeLog,v 1.32 2010/04/28 04:53:21 bicatali Exp $
31 +
32 +*singular-3.1.1 (28 Apr 2010)
33 +
34 + 28 Apr 2010; S├ębastien Fabbro <bicatali@g.o>
35 + -files/singular-3.0.4.2-gentoo.diff, -singular-3.0.4.4.ebuild,
36 + -files/singular-3.0.4.4-emacs-22.patch,
37 + -files/singular-3.0.4.4-glibc-2.10.patch, +singular-3.1.1.ebuild,
38 + -files/fake_ssh:
39 + Version bump. Rewrote the ebuild.
40
41 04 Dec 2009; Markus Dittrich <markusle@g.o>
42 singular-3.1.0.7.ebuild:
43
44
45
46 1.1 sci-mathematics/singular/singular-3.1.1.ebuild
47
48 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/singular/singular-3.1.1.ebuild?rev=1.1&view=markup
49 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-mathematics/singular/singular-3.1.1.ebuild?rev=1.1&content-type=text/plain
50
51 Index: singular-3.1.1.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.1.ebuild,v 1.1 2010/04/28 04:53:21 bicatali Exp $
56
57 EAPI="2"
58
59 inherit eutils elisp-common autotools multilib versionator
60
61 MY_PN=Singular
62 MY_PV=$(replace_all_version_separators -)
63 MY_PV_SHARE=${MY_PV}
64
65 DESCRIPTION="Computer algebra system for polynomial computations"
66 HOMEPAGE="http://www.singular.uni-kl.de/"
67 SRC_COM="http://www.mathematik.uni-kl.de/ftp/pub/Math/${MY_PN}/SOURCES/${MY_PV}/${MY_PN}"
68 SRC_URI="${SRC_COM}-${MY_PV}.tar.gz ${SRC_COM}-${MY_PV_SHARE}-share.tar.gz"
69
70 LICENSE="GPL-2"
71 SLOT="0"
72 KEYWORDS="~amd64 ~ppc ~x86"
73 IUSE="boost doc emacs examples"
74
75 RDEPEND="dev-libs/gmp
76 >=dev-libs/ntl-5.5.1
77 emacs? ( >=virtual/emacs-22 )"
78
79 DEPEND="${RDEPEND}
80 dev-lang/perl
81 boost? ( dev-libs/boost )"
82
83 S="${WORKDIR}"/${MY_PN}-${MY_PV}
84 SITEFILE=60${PN}-gentoo.el
85
86 src_prepare () {
87 epatch "${FILESDIR}"/${PN}-3.1.0-gentoo.patch
88 epatch "${FILESDIR}"/${PN}-3.1.0-emacs-22.patch
89 epatch "${FILESDIR}"/${PN}-3.1.0-glibc-2.10.patch
90 epatch "${FILESDIR}"/${PN}-3.0.4.4-nostrip.patch
91
92 sed -i \
93 -e "s/PFSUBST/${PF}/" \
94 kernel/feResource.cc || die "sed failed on feResource.cc"
95
96 sed -i \
97 -e '/CXXFLAGS/ s/--no-exceptions//g' \
98 "${S}"/Singular/configure.in || die
99
100 cd "${S}"/Singular || die "failed to cd into Singular/"
101 eautoconf
102 }
103
104 src_configure() {
105 econf \
106 --prefix="${S}" \
107 --disable-debug \
108 --disable-doc \
109 --disable-NTL \
110 --disable-gmp \
111 --without-MP \
112 --enable-factory \
113 --enable-libfac \
114 --enable-IntegerProgramming \
115 --enable-Singular \
116 $(use_with boost Boost) \
117 $(use_enable emacs)
118 }
119
120 src_compile() {
121 emake install -j1 -C omalloc || die "emake omalloc failed"
122 emake install -j1 -C factory || die "emake factory failed"
123 emake install -C libfac || die "emake libfac failed"
124 emake install -C kernel || die "emake libfac failed"
125 emake -j1 || die "emake failed"
126 if use emacs; then
127 cd "${WORKDIR}"/${MY_PN}/${MY_PV}/emacs/
128 elisp-compile *.el || die "elisp-compile failed"
129 fi
130 }
131
132 src_install () {
133 dodoc README
134 # execs and libraries
135 cd "${S}"/*-Linux
136 dobin ${MY_PN}* gen_test change_cost solve_IP toric_ideal LLL \
137 || die "failed to install binaries"
138 insinto /usr/$(get_libdir)/${PN}
139 doins *.so || die "failed to install libraries"
140
141 dosym ${MY_PN}-${MY_PV} /usr/bin/${MY_PN} \
142 || die "failed to create symbolic link"
143
144 # stuff from the share tar ball
145 cd "${WORKDIR}"/${MY_PN}/${MY_PV}
146 insinto /usr/share/${PN}
147 doins -r LIB || die "failed to install lib files"
148 if use examples; then
149 insinto /usr/share/doc/${PF}
150 doins -r examples || die "failed to install examples"
151 fi
152 if use doc; then
153 dohtml -r html/* || die "failed to install html docs"
154 insinto /usr/share/${PN}
155 doins doc/singular.idx || die "failed to install idx file"
156 cp info/${PN}.hlp info/${PN}.info &&
157 doinfo info/${PN}.info \
158 || die "failed to install info files"
159 fi
160 if use emacs; then
161 elisp-install ${PN} emacs/*.el emacs/*.elc emacs/.emacs* \
162 || die "elisp-install failed"
163 elisp-site-file-install "${FILESDIR}/${SITEFILE}"
164 fi
165 }
166
167 pkg_postinst() {
168 einfo "The authors ask you to register as a SINGULAR user."
169 einfo "Please check the license file for details."
170
171 if use emacs; then
172 echo
173 ewarn "Please note that the ESingular emacs wrapper has been"
174 ewarn "removed in favor of full fledged singular support within"
175 ewarn "Gentoo's emacs infrastructure; i.e. just fire up emacs"
176 ewarn "and you should be good to go! See bug #193411 for more info."
177 echo
178 fi
179
180 use emacs && elisp-site-regen
181 }
182
183 pkg_postrm() {
184 use emacs && elisp-site-regen
185 }