Gentoo Archives: gentoo-commits

From: Sebastien Fabbro <bicatali@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-libs/lapack-reference/, sci-libs/blas-reference/
Date: Thu, 23 May 2013 05:14:02
Message-Id: 1369250458.c718f01735b5235a846451bfec775baadeb70ca7.bicatali@gentoo
1 commit: c718f01735b5235a846451bfec775baadeb70ca7
2 Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org>
3 AuthorDate: Wed May 22 19:20:58 2013 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Wed May 22 19:20:58 2013 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=c718f017
7
8 links
9
10 ---
11 .../blas-reference/blas-reference-20120925.ebuild | 70 +-----------------
12 .../lapack-reference/lapack-reference-3.4.2.ebuild | 79 +-------------------
13 2 files changed, 2 insertions(+), 147 deletions(-)
14
15 diff --git a/sci-libs/blas-reference/blas-reference-20120925.ebuild b/sci-libs/blas-reference/blas-reference-20120925.ebuild
16 deleted file mode 100644
17 index 7c617f3..0000000
18 --- a/sci-libs/blas-reference/blas-reference-20120925.ebuild
19 +++ /dev/null
20 @@ -1,69 +0,0 @@
21 -# Copyright 1999-2013 Gentoo Foundation
22 -# Distributed under the terms of the GNU General Public License v2
23 -# $Header: $
24 -
25 -EAPI=4
26 -
27 -inherit alternatives-2 eutils cmake-utils fortran-2
28 -
29 -MYP=lapack-3.4.2
30 -
31 -DESCRIPTION="Reference implementation of BLAS"
32 -HOMEPAGE="http://www.netlib.org/lapack/"
33 -SRC_URI="http://www.netlib.org/lapack/${MYP}.tgz"
34 -
35 -LICENSE="BSD"
36 -SLOT="0"
37 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
38 -IUSE="static-libs test"
39 -
40 -S="${WORKDIR}/${MYP}"
41 -
42 -src_prepare() {
43 - # avoid collision with other blas
44 - sed -i \
45 - -e 's:blas:refblas:g' \
46 - CMakeLists.txt BLAS/blas.pc.in BLAS/{SRC,TESTING}/CMakeLists.txt || die
47 - sed -i \
48 - -e 's:BINARY_DIR}/blas:BINARY_DIR}/refblas:' \
49 - BLAS/CMakeLists.txt || die
50 - use static-libs && mkdir "${WORKDIR}/${PN}_static"
51 -}
52 -
53 -src_configure() {
54 - blas_configure() {
55 - local mycmakeargs=(
56 - -DUSE_OPTIMIZED_BLAS=OFF
57 - $(cmake-utils_use_build test TESTING)
58 - $@
59 - )
60 - cmake-utils_src_configure
61 - }
62 -
63 - blas_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF
64 - use static-libs && \
65 - CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" blas_configure \
66 - -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON
67 -}
68 -
69 -src_compile() {
70 - cmake-utils_src_compile -C BLAS
71 - use static-libs && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" \
72 - cmake-utils_src_compile -C BLAS
73 -}
74 -
75 -src_test() {
76 - pushd "${CMAKE_BUILD_DIR}/BLAS" > /dev/null
77 - local ctestargs
78 - [[ -n ${TEST_VERBOSE} ]] && ctestargs="--extra-verbose --output-on-failure"
79 - ctest ${ctestargs} || die
80 - popd > /dev/null
81 -}
82 -
83 -src_install() {
84 - cmake-utils_src_install -C BLAS
85 - use static-libs && CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" \
86 - cmake-utils_src_install -C BLAS
87 - alternatives_for blas reference 0 \
88 - /usr/$(get_libdir)/pkgconfig/blas.pc refblas.pc
89 -}
90
91 diff --git a/sci-libs/blas-reference/blas-reference-20120925.ebuild b/sci-libs/blas-reference/blas-reference-20120925.ebuild
92 new file mode 120000
93 index 0000000..28324bd
94 --- /dev/null
95 +++ b/sci-libs/blas-reference/blas-reference-20120925.ebuild
96 @@ -0,0 +1 @@
97 +blas-reference-99999999.ebuild
98 \ No newline at end of file
99
100 diff --git a/sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild b/sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild
101 deleted file mode 100644
102 index f626710..0000000
103 --- a/sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild
104 +++ /dev/null
105 @@ -1,78 +0,0 @@
106 -# Copyright 1999-2012 Gentoo Foundation
107 -# Distributed under the terms of the GNU General Public License v2
108 -# $Header: $
109 -
110 -EAPI=4
111 -inherit eutils fortran-2 cmake-utils alternatives-2 toolchain-funcs
112 -
113 -MYP=lapack-${PV}
114 -
115 -DESCRIPTION="Reference implementation of LAPACK"
116 -HOMEPAGE="http://www.netlib.org/lapack/"
117 -SRC_URI="http://www.netlib.org/lapack/${MYP}.tgz"
118 -
119 -LICENSE="BSD"
120 -SLOT="0"
121 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
122 -IUSE="static-libs test xblas"
123 -
124 -RDEPEND="
125 - virtual/blas
126 - xblas? ( sci-libs/xblas )"
127 -DEPEND="${RDEPEND}
128 - virtual/pkgconfig"
129 -
130 -S="${WORKDIR}/${MYP}"
131 -
132 -src_prepare() {
133 - # avoid collision with other lapack
134 - sed -i \
135 - -e 's:BINARY_DIR}/lapack.pc:BINARY_DIR}/reflapack.pc:' \
136 - -e '/export/s:lapack:reflapack:g' \
137 - -e '/ALL_TARGETS/s:lapack):reflapack):' \
138 - -e '/LAPACK_LIBRARIES/s:lapack:reflapack:g' \
139 - CMakeLists.txt || die
140 - sed -i \
141 - -e 's:(lapack:(reflapack:g' \
142 - SRC/CMakeLists.txt || die
143 - sed -i \
144 - -e 's:-llapack:-lreflapack:g' \
145 - lapack.pc.in || die
146 - use static-libs && mkdir "${WORKDIR}/${PN}_static"
147 - # some string does not get pass properly
148 - sed -i -e '/lapack_testing.py/d' CTestCustom.cmake.in || die
149 - # separate ebuild
150 - sed -i -e '/lapack_install_library(tmglib)/d' TESTING/MATGEN/CMakeLists.txt
151 -}
152 -
153 -src_configure() {
154 - lapack_configure() {
155 - local mycmakeargs=(
156 - -DUSE_OPTIMIZED_BLAS=ON
157 - -DBLAS_LIBRARIES="$($(tc-getPKG_CONFIG) --libs blas)"
158 - $(cmake-utils_use_build test TESTING)
159 - $(cmake-utils_use_use xblas XBLAS)
160 - $@
161 - )
162 - cmake-utils_src_configure
163 - }
164 -
165 - lapack_configure -DBUILD_SHARED_LIBS=ON -DBUILD_STATIC_LIBS=OFF
166 - use static-libs && \
167 - CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" lapack_configure \
168 - -DBUILD_SHARED_LIBS=OFF -DBUILD_STATIC_LIBS=ON
169 -}
170 -
171 -src_compile() {
172 - cmake-utils_src_compile
173 - use static-libs && \
174 - CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_compile
175 -}
176 -
177 -src_install() {
178 - cmake-utils_src_install
179 - use static-libs && \
180 - CMAKE_BUILD_DIR="${WORKDIR}/${PN}_static" cmake-utils_src_install
181 - alternatives_for lapack reference 0 \
182 - "/usr/$(get_libdir)/pkgconfig/lapack.pc" "reflapack.pc"
183 -}
184
185 diff --git a/sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild b/sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild
186 new file mode 120000
187 index 0000000..0d81fdd
188 --- /dev/null
189 +++ b/sci-libs/lapack-reference/lapack-reference-3.4.2.ebuild
190 @@ -0,0 +1 @@
191 +lapack-reference-9999.ebuild
192 \ No newline at end of file