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-libs/gsl: ChangeLog gsl-1.11.ebuild gsl-1.8.ebuild
Date: Mon, 31 Mar 2008 09:51:41
Message-Id: E1JgGfx-0005J7-CJ@stork.gentoo.org
1 bicatali 08/03/31 09:51:37
2
3 Modified: ChangeLog
4 Added: gsl-1.11.ebuild
5 Removed: gsl-1.8.ebuild
6 Log:
7 Version bump. Removed icc test since it now compiles and tests are fine
8 (Portage version: 2.1.4.4)
9
10 Revision Changes Path
11 1.43 sci-libs/gsl/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/ChangeLog?rev=1.43&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/ChangeLog?rev=1.43&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/ChangeLog?r1=1.42&r2=1.43
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-libs/gsl/ChangeLog,v
20 retrieving revision 1.42
21 retrieving revision 1.43
22 diff -u -r1.42 -r1.43
23 --- ChangeLog 9 Jan 2008 16:15:02 -0000 1.42
24 +++ ChangeLog 31 Mar 2008 09:51:36 -0000 1.43
25 @@ -1,6 +1,12 @@
26 # ChangeLog for sci-libs/gsl
27 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/ChangeLog,v 1.42 2008/01/09 16:15:02 jer Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/ChangeLog,v 1.43 2008/03/31 09:51:36 bicatali Exp $
30 +
31 +*gsl-1.11 (31 Mar 2008)
32 +
33 + 31 Mar 2008; Sébastien Fabbro <bicatali@g.o> -gsl-1.8.ebuild,
34 + +gsl-1.11.ebuild:
35 + Version bump. Removed icc test since it now compiles and tests are fine
36
37 09 Jan 2008; Jeroen Roovers <jer@g.o> gsl-1.9-r1.ebuild,
38 gsl-1.10.ebuild:
39
40
41
42 1.1 sci-libs/gsl/gsl-1.11.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/gsl-1.11.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/gsl/gsl-1.11.ebuild?rev=1.1&content-type=text/plain
46
47 Index: gsl-1.11.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/sci-libs/gsl/gsl-1.11.ebuild,v 1.1 2008/03/31 09:51:36 bicatali Exp $
52
53 inherit eutils flag-o-matic toolchain-funcs autotools
54
55 DESCRIPTION="The GNU Scientific Library"
56 HOMEPAGE="http://www.gnu.org/software/gsl/"
57 SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
58
59 LICENSE="GPL-3"
60 SLOT="0"
61 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
62 IUSE="cblas"
63
64 RDEPEND="app-admin/eselect-cblas
65 cblas? ( virtual/cblas )"
66
67 DEPEND="${RDEPEND}
68 dev-util/pkgconfig"
69
70 #pkg_setup() {
71 # # icc-10.0.026 did not pass rng tests (last check: gsl-1.10)
72 # if [[ $(tc-getCC) == icc ]]; then
73 # eerror "icc known to fail tests. Revert to safer compiler and re-emerge."
74 # die "gsl does not work when compiled with icc"
75 # fi
76 #}
77
78 src_unpack() {
79 unpack ${A}
80 cd "${S}"
81 epatch "${FILESDIR}"/gsl-cblas.patch
82 eautoreconf
83 }
84
85 src_compile() {
86 # could someone check if they are still needed?
87 replace-cpu-flags k6 k6-2 k6-3 i586
88 filter-flags -ffast-math
89 local myconf=
90 use cblas && myconf="--with-cblas=$(pkg-config --libs cblas)"
91 econf "${myconf}"|| die "econf failed"
92 emake || die "emake failed"
93 }
94
95 src_install() {
96 emake install DESTDIR="${D}" || die "emake install failed."
97 dodoc AUTHORS BUGS ChangeLog NEWS README SUPPORT \
98 THANKS TODO || die "dodoc failed"
99
100 # take care of pkgconfig file for cblas implementation.
101 sed -e "s/@LIBDIR@/$(get_libdir)/" \
102 -e "s/@PV@/${PV}/" \
103 "${FILESDIR}"/cblas.pc.in > cblas.pc \
104 || die "sed cblas.pc failed"
105 insinto /usr/$(get_libdir)/blas/gsl
106 doins cblas.pc || die "installing cblas.pc failed"
107 ESELECT_PROF=gsl
108 eselect cblas add $(get_libdir) "${FILESDIR}"/eselect.cblas.gsl ${ESELECT_PROF}
109 }
110
111 pkg_postinst() {
112 local p=cblas
113 local current_lib=$(eselect ${p} show | cut -d' ' -f2)
114 if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then
115 # work around eselect bug #189942
116 local configfile="${ROOT}"/etc/env.d/${p}/$(get_libdir)/config
117 [[ -e ${configfile} ]] && rm -f ${configfile}
118 eselect ${p} set ${ESELECT_PROF}
119 elog "${p} has been eselected to ${ESELECT_PROF}"
120 else
121 elog "Current eselected ${p} is ${current_lib}"
122 elog "To use ${p} ${ESELECT_PROF} implementation, you have to issue (as root):"
123 elog "\t eselect ${p} set ${ESELECT_PROF}"
124 fi
125 }
126
127
128
129 --
130 gentoo-commits@l.g.o mailing list