1 |
bicatali 08/01/24 10:24:21 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: blas-goto-1.22.ebuild |
5 |
Log: |
6 |
Version bump |
7 |
(Portage version: 2.1.4) |
8 |
|
9 |
Revision Changes Path |
10 |
1.14 sci-libs/blas-goto/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/blas-goto/ChangeLog?rev=1.14&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/blas-goto/ChangeLog?rev=1.14&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/blas-goto/ChangeLog?r1=1.13&r2=1.14 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-libs/blas-goto/ChangeLog,v |
19 |
retrieving revision 1.13 |
20 |
retrieving revision 1.14 |
21 |
diff -u -r1.13 -r1.14 |
22 |
--- ChangeLog 11 Oct 2007 17:38:06 -0000 1.13 |
23 |
+++ ChangeLog 24 Jan 2008 10:24:20 -0000 1.14 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sci-libs/blas-goto |
26 |
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-goto/ChangeLog,v 1.13 2007/10/11 17:38:06 bicatali Exp $ |
28 |
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 |
29 |
+# $Header: /var/cvsroot/gentoo-x86/sci-libs/blas-goto/ChangeLog,v 1.14 2008/01/24 10:24:20 bicatali Exp $ |
30 |
+ |
31 |
+*blas-goto-1.22 (24 Jan 2008) |
32 |
+ |
33 |
+ 24 Jan 2008; Sébastien Fabbro <bicatali@g.o> files/blas.pc.in, |
34 |
+ +blas-goto-1.22.ebuild: |
35 |
+ Version bump |
36 |
|
37 |
11 Oct 2007; Sébastien Fabbro <bicatali@g.o> |
38 |
blas-goto-1.19.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 sci-libs/blas-goto/blas-goto-1.22.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/blas-goto/blas-goto-1.22.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-libs/blas-goto/blas-goto-1.22.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: blas-goto-1.22.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/blas-goto/blas-goto-1.22.ebuild,v 1.1 2008/01/24 10:24:20 bicatali Exp $ |
52 |
|
53 |
inherit eutils fortran flag-o-matic toolchain-funcs |
54 |
|
55 |
MY_PN="GotoBLAS" |
56 |
MY_P="${MY_PN}-${PV}" |
57 |
DESCRIPTION="Fast implementations of the Basic Linear Algebra Subroutines" |
58 |
HOMEPAGE="http://www.tacc.utexas.edu/resources/software/software.php" |
59 |
SRC_URI="http://www.tacc.utexas.edu/resources/software/login/gotoblas/${MY_P}.tar.gz" |
60 |
LICENSE="tacc" |
61 |
SLOT="0" |
62 |
# See http://www.tacc.utexas.edu/resources/software/gotoblasfaq.php |
63 |
# for supported architectures |
64 |
KEYWORDS="~x86 ~amd64" |
65 |
IUSE="threads doc" |
66 |
RESTRICT="mirror" |
67 |
RDEPEND="app-admin/eselect-blas |
68 |
dev-util/pkgconfig |
69 |
doc? ( app-doc/blas-docs )" |
70 |
|
71 |
DEPEND="app-admin/eselect-blas |
72 |
>=sys-devel/binutils-2.17" |
73 |
|
74 |
S="${WORKDIR}/${MY_PN}" |
75 |
FORTRAN="g77 gfortran ifc" |
76 |
|
77 |
src_unpack() { |
78 |
unpack ${A} |
79 |
cd "${S}" |
80 |
|
81 |
# Set up C compiler |
82 |
if [[ $(tc-getCC) = *gcc ]]; then |
83 |
C_COMPILER="GNU" |
84 |
elif [[ $(tc-getCC) = icc ]]; then |
85 |
C_COMPILER="INTEL" |
86 |
else |
87 |
die "tc-getCC() returned an invalid C compiler; valid are gcc or icc." |
88 |
fi |
89 |
|
90 |
# Set up FORTRAN 77 compiler |
91 |
case ${FORTRANC} in |
92 |
g77) |
93 |
F_COMPILER="G77" |
94 |
;; |
95 |
gfortran) |
96 |
F_COMPILER="GFORTRAN" |
97 |
F_LIB="-lgfortran" |
98 |
;; |
99 |
ifc|ifort) |
100 |
F_COMPILER="INTEL" |
101 |
;; |
102 |
*) |
103 |
die "fortran.eclass returned an invalid Fortran compiler \'${FORTRANC}\'; valid are ${FORTRAN}." |
104 |
esac |
105 |
|
106 |
# Fix shared lib build |
107 |
sed -i \ |
108 |
-e "s:\(&& echo OK\):${F_LIB} \1:g" \ |
109 |
"${S}"/exports/Makefile \ |
110 |
|| die "sed for shared libs failed" |
111 |
|
112 |
# Set up compilers |
113 |
sed -i \ |
114 |
-e "s:^# \(C_COMPILER =\) GNU:\1 ${C_COMPILER}:g" \ |
115 |
-e "s:^# \(F_COMPILER =\) G77:\1 ${F_COMPILER}:g" \ |
116 |
-e "s:^# \(SMP = 1\):\1:g" \ |
117 |
-e "s:\$(COMPILER_PREFIX)ar:$(tc-getAR):" \ |
118 |
-e "s:\$(COMPILER_PREFIX)as:$(tc-getAS):" \ |
119 |
-e "s:\$(COMPILER_PREFIX)ld:$(tc-getLD):" \ |
120 |
-e "s:\$(COMPILER_PREFIX)ranlib:$(tc-getRANLIB):" \ |
121 |
"${S}"/Makefile.rule \ |
122 |
|| die "sed for setting up compilers failed" |
123 |
|
124 |
# Threaded? |
125 |
if use threads; then |
126 |
sed -i \ |
127 |
-e "s:^# \(SMP = 1\):\1:g" \ |
128 |
"${S}"/Makefile.rule \ |
129 |
|| die "sed for threads failed" |
130 |
fi |
131 |
|
132 |
# If you need a 64-bit integer interface, also do this for "INTERFACE64 = 1" |
133 |
if use amd64; then |
134 |
sed -i \ |
135 |
-e "s:^# \(BINARY64 = 1\):\1:g" \ |
136 |
"${S}"/Makefile.rule \ |
137 |
|| die "sed for 64 binary failed" |
138 |
fi |
139 |
|
140 |
# Respect CFLAGS/FFLAGS |
141 |
if [[ -z "${FFLAGS}" ]]; then |
142 |
ewarn "FORTRAN FFLAGS undefined, using -O2" |
143 |
export FFLAGS="-O2" |
144 |
fi |
145 |
|
146 |
sed -i \ |
147 |
-e '/^CFLAGS/s:=:+=:' \ |
148 |
-e '/^FFLAGS/s:=:+=:' \ |
149 |
"${S}"/Makefile.rule \ |
150 |
|| die "sed for flags failed" |
151 |
} |
152 |
|
153 |
src_compile() { |
154 |
|
155 |
# Make static library |
156 |
emake LDFLAGS="$(raw-ldflags)" || die "emake failed" |
157 |
|
158 |
# Make shared library |
159 |
cd exports |
160 |
emake so -j1 || die "emake failed" |
161 |
} |
162 |
|
163 |
src_test() { |
164 |
cd test |
165 |
emake || die "emake test failed" |
166 |
make clean |
167 |
} |
168 |
|
169 |
src_install() { |
170 |
local MAIN_DIR="/usr/$(get_libdir)/blas" |
171 |
local DIR="${MAIN_DIR}/goto" |
172 |
|
173 |
# dolib.so doesn't support our alternate locations |
174 |
exeinto ${DIR} |
175 |
doexe libgoto_*.so |
176 |
dosym libgoto_*.so ${DIR}/libgoto.so |
177 |
dosym libgoto_*.so ${DIR}/libgoto.so.0 |
178 |
dosym libgoto_*.so ${DIR}/libgoto.so.0.0.0 |
179 |
|
180 |
# dolib.a doesn't support our alternate locations |
181 |
insinto ${DIR} |
182 |
doins libgoto_*.a |
183 |
dosym libgoto_*.a ${DIR}/libgoto.a |
184 |
|
185 |
dodoc 01Readme.txt 03History.txt 04FAQ.txt |
186 |
|
187 |
cp "${FILESDIR}"/blas.pc.in blas.pc |
188 |
local extlibs="" |
189 |
use threads && extlibs="${extlibs} -lpthread" |
190 |
extlibs="${extlibs}" |
191 |
sed -i \ |
192 |
-e "s/@LIBDIR@/$(get_libdir)/" \ |
193 |
-e "s/@PV@/${PV}/" \ |
194 |
-e "s/@EXTLIBS@/${extlibs}/" \ |
195 |
blas.pc || die "sed blas.pc failed" |
196 |
insinto /usr/$(get_libdir)/blas/goto |
197 |
doins blas.pc |
198 |
ESELECT_PROF=goto |
199 |
eselect blas add $(get_libdir) "${FILESDIR}"/eselect.blas.goto ${ESELECT_PROF} |
200 |
} |
201 |
|
202 |
pkg_postinst() { |
203 |
local p=blas |
204 |
local current_lib=$(eselect ${p} show | cut -d' ' -f2) |
205 |
if [[ ${current_lib} == ${ESELECT_PROF} || -z ${current_lib} ]]; then |
206 |
# work around eselect bug #189942 |
207 |
local configfile="${ROOT}"/etc/env.d/${p}/$(get_libdir)/config |
208 |
[[ -e ${configfile} ]] && rm -f ${configfile} |
209 |
eselect ${p} set ${ESELECT_PROF} |
210 |
elog "${p} has been eselected to ${ESELECT_PROF}" |
211 |
else |
212 |
elog "Current eselected ${p} is ${current_lib}" |
213 |
elog "To use ${p} ${ESELECT_PROF} implementation, you have to issue (as root):" |
214 |
elog "\t eselect ${p} set ${ESELECT_PROF}" |
215 |
fi |
216 |
} |
217 |
|
218 |
|
219 |
|
220 |
-- |
221 |
gentoo-commits@l.g.o mailing list |