1 |
bicatali 09/01/19 19:22:30 |
2 |
|
3 |
Modified: metadata.xml ChangeLog |
4 |
Added: gsl-1.12.ebuild |
5 |
Removed: gsl-1.10.ebuild |
6 |
Log: |
7 |
Version bump. cblas patch adapted and added a check on the external cblas lib not to be gsl itself |
8 |
(Portage version: 2.2_rc23/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.4 sci-libs/gsl/metadata.xml |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/metadata.xml?rev=1.4&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/metadata.xml?rev=1.4&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/metadata.xml?r1=1.3&r2=1.4 |
16 |
|
17 |
Index: metadata.xml |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/gsl/metadata.xml,v |
20 |
retrieving revision 1.3 |
21 |
retrieving revision 1.4 |
22 |
diff -u -r1.3 -r1.4 |
23 |
--- metadata.xml 7 Aug 2008 07:04:30 -0000 1.3 |
24 |
+++ metadata.xml 19 Jan 2009 19:22:30 -0000 1.4 |
25 |
@@ -3,20 +3,20 @@ |
26 |
<pkgmetadata> |
27 |
<herd>sci</herd> |
28 |
<longdescription lang="en"> |
29 |
-The GNU Scientific Library (GSL) is a collection of routines for |
30 |
-numerical analysis. The routines are written from scratch by the GSL |
31 |
-team in C, and present a modern API for C programmers, while allowing |
32 |
-wrappers to be written for very high level languages. |
33 |
- |
34 |
-GSL includes data types and routines for complex numbers, vectors, |
35 |
-matrices, basic linear algebra subroutines (BLAS), eigensystems, |
36 |
-simulated annealing, minimization, root finding, pseudo-random |
37 |
-numbers, least-squares fitting, fast Fourier transforms (FFT), |
38 |
-differential equations, quadrature, Monte Carlo integration, special |
39 |
-functions, physical constants, and much more. |
40 |
+ The GNU Scientific Library (GSL) is a collection of routines for |
41 |
+ numerical analysis. The routines are written from scratch by the GSL |
42 |
+ team in C, and present a modern API for C programmers, while allowing |
43 |
+ wrappers to be written for very high level languages. |
44 |
+ |
45 |
+ GSL includes data types and routines for complex numbers, vectors, |
46 |
+ matrices, basic linear algebra subroutines (BLAS), eigensystems, |
47 |
+ simulated annealing, minimization, root finding, pseudo-random |
48 |
+ numbers, least-squares fitting, fast Fourier transforms (FFT), |
49 |
+ differential equations, quadrature, Monte Carlo integration, special |
50 |
+ functions, physical constants, and much more. |
51 |
</longdescription> |
52 |
<use> |
53 |
- <flag name='cblas'>Build gsl with external cblas by default |
54 |
+ <flag name='cblas'>Link gsl with external cblas provided by |
55 |
(<pkg>virtual/cblas</pkg>)</flag> |
56 |
</use> |
57 |
</pkgmetadata> |
58 |
|
59 |
|
60 |
|
61 |
1.50 sci-libs/gsl/ChangeLog |
62 |
|
63 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/ChangeLog?rev=1.50&view=markup |
64 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/ChangeLog?rev=1.50&content-type=text/plain |
65 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/ChangeLog?r1=1.49&r2=1.50 |
66 |
|
67 |
Index: ChangeLog |
68 |
=================================================================== |
69 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/gsl/ChangeLog,v |
70 |
retrieving revision 1.49 |
71 |
retrieving revision 1.50 |
72 |
diff -u -r1.49 -r1.50 |
73 |
--- ChangeLog 9 Nov 2008 16:46:11 -0000 1.49 |
74 |
+++ ChangeLog 19 Jan 2009 19:22:30 -0000 1.50 |
75 |
@@ -1,6 +1,13 @@ |
76 |
# ChangeLog for sci-libs/gsl |
77 |
-# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 |
78 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/ChangeLog,v 1.49 2008/11/09 16:46:11 armin76 Exp $ |
79 |
+# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2 |
80 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/ChangeLog,v 1.50 2009/01/19 19:22:30 bicatali Exp $ |
81 |
+ |
82 |
+*gsl-1.12 (19 Jan 2009) |
83 |
+ |
84 |
+ 19 Jan 2009; Sébastien Fabbro <bicatali@g.o> |
85 |
+ +files/gsl-1.12-cblas.patch, -gsl-1.10.ebuild, +gsl-1.12.ebuild: |
86 |
+ Version bump. cblas patch adapted and added a check on the external |
87 |
+ cblas lib not to be gsl itself. |
88 |
|
89 |
09 Nov 2008; Raúl Porcel <armin76@g.o> gsl-1.11.ebuild: |
90 |
alpha/ia64 stable wrt #245838 |
91 |
|
92 |
|
93 |
|
94 |
1.1 sci-libs/gsl/gsl-1.12.ebuild |
95 |
|
96 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/gsl-1.12.ebuild?rev=1.1&view=markup |
97 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/gsl-1.12.ebuild?rev=1.1&content-type=text/plain |
98 |
|
99 |
Index: gsl-1.12.ebuild |
100 |
=================================================================== |
101 |
# Copyright 1999-2009 Gentoo Foundation |
102 |
# Distributed under the terms of the GNU General Public License v2 |
103 |
# $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/gsl-1.12.ebuild,v 1.1 2009/01/19 19:22:30 bicatali Exp $ |
104 |
|
105 |
EAPI=2 |
106 |
inherit eutils flag-o-matic autotools |
107 |
|
108 |
DESCRIPTION="The GNU Scientific Library" |
109 |
HOMEPAGE="http://www.gnu.org/software/gsl/" |
110 |
SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" |
111 |
|
112 |
LICENSE="GPL-3" |
113 |
SLOT="0" |
114 |
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
115 |
IUSE="cblas" |
116 |
|
117 |
RDEPEND="cblas? ( virtual/cblas )" |
118 |
DEPEND="${RDEPEND} |
119 |
app-admin/eselect-cblas |
120 |
dev-util/pkgconfig" |
121 |
|
122 |
pkg_setup() { |
123 |
ESELECT_PROF="gsl" |
124 |
# prevent to use external cblas from a previously installed gsl |
125 |
local current_lib=$(eselect cblas show | cut -d' ' -f2) |
126 |
if use cblas && [[ ${current_lib} == gsl ]]; then |
127 |
ewarn "USE flag cblas is set: linking gsl with an external cblas." |
128 |
ewarn "However the current selected external cblas is gsl." |
129 |
ewarn "Please install and/or eselect another cblas" |
130 |
die "Circular gsl dependency" |
131 |
fi |
132 |
} |
133 |
|
134 |
src_prepare() { |
135 |
filter-flags -ffast-math |
136 |
replace-cpu-flags k6 k6-2 k6-3 i586 |
137 |
epatch "${FILESDIR}"/${P}-cblas.patch |
138 |
eautoreconf |
139 |
} |
140 |
|
141 |
src_configure() { |
142 |
if use cblas; then |
143 |
export CBLAS_LIBS="$(pkg-config --libs cblas)" |
144 |
export CBLAS_CFLAGS="$(pkg-config --cflags cblas)" |
145 |
fi |
146 |
econf $(use_with cblas) |
147 |
} |
148 |
|
149 |
src_install() { |
150 |
emake install DESTDIR="${D}" || die "emake install failed." |
151 |
dodoc AUTHORS BUGS ChangeLog NEWS README SUPPORT \ |
152 |
THANKS TODO || die "dodoc failed" |
153 |
|
154 |
# take care of pkgconfig file for cblas implementation. |
155 |
sed -e "s/@LIBDIR@/$(get_libdir)/" \ |
156 |
-e "s/@PV@/${PV}/" \ |
157 |
"${FILESDIR}"/cblas.pc.in > cblas.pc \ |
158 |
|| die "sed cblas.pc failed" |
159 |
insinto /usr/$(get_libdir)/blas/gsl |
160 |
doins cblas.pc || die "installing cblas.pc failed" |
161 |
eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.gsl \ |
162 |
${ESELECT_PROF} |
163 |
} |
164 |
|
165 |
pkg_postinst() { |
166 |
local p=cblas |
167 |
local current_lib=$(eselect ${p} show | cut -d' ' -f2) |
168 |
if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then |
169 |
# work around eselect bug #189942 |
170 |
local configfile="${ROOT}"/etc/env.d/${p}/$(get_libdir)/config |
171 |
[[ -e ${configfile} ]] && rm -f ${configfile} |
172 |
eselect ${p} set ${ESELECT_PROF} |
173 |
elog "${p} has been eselected to ${ESELECT_PROF}" |
174 |
else |
175 |
elog "Current eselected ${p} is ${current_lib}" |
176 |
elog "To use ${p} ${ESELECT_PROF} implementation, you have to issue (as root):" |
177 |
elog "\t eselect ${p} set ${ESELECT_PROF}" |
178 |
fi |
179 |
} |