Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-libs/acml/, profiles/, sci-libs/acml/files/
Date: Mon, 17 Apr 2017 07:51:08
Message-Id: 1492415273.e45a06f3e687936bb40879a58b00d8d9063fd08f.soap@gentoo
1 commit: e45a06f3e687936bb40879a58b00d8d9063fd08f
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Mon Apr 17 07:47:53 2017 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 17 07:47:53 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e45a06f3
7
8 sci-libs/acml: Remove from tree
9
10 profiles/package.mask | 5 -
11 sci-libs/acml/Manifest | 6 --
12 sci-libs/acml/acml-4.1.0-r2.ebuild | 199 -------------------------------------
13 sci-libs/acml/files/blas.pc.in | 11 --
14 sci-libs/acml/files/lapack.pc.in | 11 --
15 sci-libs/acml/metadata.xml | 26 -----
16 6 files changed, 258 deletions(-)
17
18 diff --git a/profiles/package.mask b/profiles/package.mask
19 index 52fc6bb6747..c18240c8ea2 100644
20 --- a/profiles/package.mask
21 +++ b/profiles/package.mask
22 @@ -143,11 +143,6 @@ dev-perl/File-DirWalk
23 # experimental features and accept a more unstable release.
24 >=www-client/chromium-59
25
26 -# David Seifert <soap@g.o> (19 Mar 2017)
27 -# EOL'd upstream, fetch restricted, digests missing
28 -# Masked for removal in 30 days. Bug #612746.
29 -sci-libs/acml
30 -
31 # Kent Fredric <kentnl@g.o> (18 Mar 2017)
32 # ExtUtils::MakeMaker 7.18+ Block
33 # Masked until strictly needed to avoid accidental conflicts later
34
35 diff --git a/sci-libs/acml/Manifest b/sci-libs/acml/Manifest
36 deleted file mode 100644
37 index 1bc390d246b..00000000000
38 --- a/sci-libs/acml/Manifest
39 +++ /dev/null
40 @@ -1,6 +0,0 @@
41 -DIST acml-4-1-0-gfortran-32bit.tgz 18258099 SHA256 52580576c3a425635eccb19fc5df38c3139fbc44fd669799bc8ffd0e2d82ccc7
42 -DIST acml-4-1-0-gfortran-64bit-int64.tgz 29351223 SHA256 825ae742df873cf6d41fbaaecff08941badb2b43a7021ba6c8af7abc75a6d14d
43 -DIST acml-4-1-0-gfortran-64bit.tgz 29995624 SHA256 50f64687b86556123538e1f2bd4c185ff1d018501a5a5834ec8acf7487c817c4
44 -DIST acml-4-1-0-ifort-32bit.tgz 18797527 SHA256 5dfa768c12e96d2d25678e85cf2e0eea3bd427ddd94f417bcad09abe25369375
45 -DIST acml-4-1-0-ifort-64bit-int64.tgz 36135363 SHA256 3da0ded50ab25e44f531ac58b469344fed0f6af4ae70aa58b1286cf8de9731a4
46 -DIST acml-4-1-0-ifort-64bit.tgz 36577689 SHA256 b5b60425fccb624e3baf48f5d51ae68ccdc3e9852a4a50661bb3e45a6f25be40
47
48 diff --git a/sci-libs/acml/acml-4.1.0-r2.ebuild b/sci-libs/acml/acml-4.1.0-r2.ebuild
49 deleted file mode 100644
50 index 2e3fbb7cbf6..00000000000
51 --- a/sci-libs/acml/acml-4.1.0-r2.ebuild
52 +++ /dev/null
53 @@ -1,199 +0,0 @@
54 -# Copyright 1999-2015 Gentoo Foundation
55 -# Distributed under the terms of the GNU General Public License v2
56 -
57 -EAPI=5
58 -
59 -inherit eutils fortran-2 multilib toolchain-funcs versionator
60 -
61 -MY_P=${PN}-$(replace_all_version_separators -)
62 -
63 -DESCRIPTION="AMD Core Math Library for x86 and amd64 CPUs"
64 -HOMEPAGE="http://developer.amd.com/acml.jsp"
65 -SRC_URI="
66 - amd64? (
67 - ifc? ( ${MY_P}-ifort-64bit.tgz
68 - int64? ( ${MY_P}-ifort-64bit-int64.tgz ) )
69 - gfortran? ( ${MY_P}-gfortran-64bit.tgz
70 - int64? ( ${MY_P}-gfortran-64bit-int64.tgz ) )
71 - !ifc? (
72 - !gfortran? ( ${MY_P}-gfortran-64bit.tgz
73 - int64? ( ${MY_P}-gfortran-64bit-int64.tgz ) ) ) )
74 - x86? (
75 - ifc? ( ${MY_P}-ifort-32bit.tgz )
76 - gfortran? ( ${MY_P}-gfortran-32bit.tgz )
77 - !ifc? ( !gfortran? ( ${MY_P}-gfortran-32bit.tgz ) ) )"
78 -
79 -SLOT="0"
80 -LICENSE="ACML"
81 -KEYWORDS="-* ~amd64 ~x86"
82 -IUSE="doc examples gfortran ifc int64 openmp test"
83 -
84 -RESTRICT="strip fetch"
85 -
86 -CDEPEND="
87 - ifc? ( dev-lang/ifc )
88 - gfortran? ( =sys-devel/gcc-4.2* )
89 - !gfortran? ( !ifc? ( =sys-devel/gcc-4.2* ) )"
90 -
91 -DEPEND="
92 - app-eselect/eselect-blas
93 - app-eselect/eselect-lapack
94 - test? ( ${CDEPEND} )"
95 -
96 -RDEPEND="${CDEPEND}
97 - app-eselect/eselect-blas
98 - app-eselect/eselect-lapack
99 - doc? ( app-doc/blas-docs app-doc/lapack-docs )"
100 -
101 -S="${WORKDIR}"
102 -
103 -pkg_nofetch() {
104 - einfo "Please download the ACML from:"
105 - einfo "${HOMEPAGE}"
106 - einfo "and place it in ${DISTDIR}."
107 - einfo "The previous versions could be found at"
108 - einfo "http://developer.amd.com/acmlarchive.jsp"
109 - einfo "SRC=${A} $SRC_URI"
110 -}
111 -
112 -get_fcomp() {
113 - case $(tc-getFC) in
114 - *gfortran* )
115 - FCOMP="gfortran" ;;
116 - ifort )
117 - FCOMP="ifc" ;;
118 - * )
119 - FCOMP=$(tc-getFC) ;;
120 - esac
121 -}
122 -
123 -pkg_setup() {
124 - if use test; then
125 - # work around incomplete fortran eclass
126 - if use gfortran &&
127 - [[ $(tc-getFC) =~ gfortran ]] &&
128 - [[ $(gcc-version) != 4.2 ]]
129 - then
130 - eerror "You need gfortran-4.2 to test acml"
131 - eerror "Please use gcc-config to switch gcc version 4.2"
132 - die "gfortran check failed"
133 - fi
134 - fi
135 - if use openmp; then
136 - tc-has-openmp || die "Please ensure your compiler has openmp support"
137 - FORTRAN_NEED_OPENMP=1
138 - fi
139 - fortran-2_pkg_setup
140 - get_fcomp
141 - # construct default profile dprof from default ddir
142 - local ddir=gfortran
143 - use ifc && ddir=ifort
144 - use x86 && ddir=${ddir}32 || ddir=${ddir}64
145 - use openmp && ddir=${ddir}_mp
146 - use int64 && ddir=${ddir}_int64
147 - ACML_DEFAULT_DIR=${ddir}
148 -}
149 -
150 -src_unpack() {
151 - unpack ${A}
152 - unpack ./contents-acml-*.tgz
153 - use openmp || rm -rf *_mp*
154 -}
155 -
156 -src_test() {
157 - # only testing with current chosen compiler
158 - for fdir in ${ACML_DEFAULT_DIR/_mp}*; do
159 - einfo "Testing acml in ${fdir}"
160 - for d in . acml_mv; do
161 - cd "${S}"/${fdir}/examples/${d}
162 - emake \
163 - ACMLDIR="${S}"/${fdir} \
164 - F77=$(tc-getFC) \
165 - CC="$(tc-getCC)" \
166 - CPLUSPLUS="$(tc-getCXX)"
167 - emake clean
168 - done
169 - done
170 -}
171 -
172 -make_acml_profile_name() {
173 - local fort=${1%%[[:digit:]]*}
174 - local opt=${1#*[0-9][0-9]}
175 - echo ${PN}-${fort}${opt/mp/openmp} | tr '_' '-'
176 -}
177 -
178 -src_install() {
179 - # respect acml default install dir (and FHS)
180 - local instdir=/opt/${PN}${PV}
181 - dodir ${instdir}
182 -
183 - for lib in */lib; do
184 - local fdir=${lib%/*}
185 - # install acml
186 - use examples || rm -rf "${S}"/${fdir}/examples
187 - cp -pPR "${S}"/${fdir} "${D}"${instdir} || die "copy ${fdir} failed"
188 -
189 - # install profiles
190 - local prof=$(make_acml_profile_name ${fdir})
191 - local acmldir=${instdir}/${fdir}
192 - local acmllibs="-lacml"
193 - local libname=${acmldir}/lib/libacml
194 - local extlibs
195 - local extflags
196 - [[ ${fdir} =~ int64 ]] && extflags="${extflags} -fdefault-integer-8"
197 - [[ ${fdir} =~ gfortran ]] && extlibs="${extlibs} -lgfortran"
198 - if [[ ${fdir} =~ _mp ]]; then
199 - [[ ${fdir} =~ ifort ]] && extlibs="${extlibs} -lguide"
200 - extlibs="${extlibs} -lpthread"
201 - extflags="${extflags} -fopenmp"
202 - acmllibs="-lacml_mp"
203 - libname=${libname}_mp
204 - fi
205 - use amd64 && acmllibs="${acmllibs} -lacml_mv"
206 - for x in blas lapack; do
207 - # pkgconfig files
208 - sed -e "s:@LIBDIR@:$(get_libdir):" \
209 - -e "s:@PV@:${PV}:" \
210 - -e "s:@ACMLDIR@:${acmldir}:g" \
211 - -e "s:@ACMLLIBS@:${acmllibs}:g" \
212 - -e "s:@EXTLIBS@:${extlibs}:g" \
213 - -e "s:@EXTFLAGS@:${extflags}:g" \
214 - "${FILESDIR}"/${x}.pc.in > ${x}.pc \
215 - || die "sed ${x}.pc failed"
216 - insinto ${acmldir}/lib
217 - doins ${x}.pc
218 -
219 - # eselect files
220 - cat > eselect.${prof}.${x} <<-EOF
221 - ${libname}.so /usr/@LIBDIR@/lib${x}.so.0
222 - ${libname}.so /usr/@LIBDIR@/lib${x}.so
223 - ${libname}.a /usr/@LIBDIR@/lib${x}.a
224 - ${acmldir}/lib/${x}.pc /usr/@LIBDIR@/pkgconfig/${x}.pc
225 - EOF
226 - eselect ${x} add $(get_libdir) eselect.${prof}.${x} ${prof}
227 - done
228 - done
229 -
230 - echo "LDPATH=${instdir}/${ACML_DEFAULT_DIR}/lib" > 35acml
231 - doenvd "${S}"/35acml
232 - use doc || rm -rf "${S}"/Doc/acml.pdf "${S}"/Doc/html
233 - cp -pPR "${S}"/Doc "${D}"${instdir} || die "copy doc failed"
234 -}
235 -
236 -pkg_postinst() {
237 - local dprof="$(make_acml_profile_name ${ACML_DEFAULT_DIR})"
238 - for x in blas lapack; do
239 - local cprof=$(eselect ${x} show | cut -d' ' -f2)
240 - if [[ ${cprof} == ${dprof} || -z ${cprof} ]]; then
241 - # work around eselect bug #189942
242 - local configfile="${ROOT}"/etc/env.d/${x}/$(get_libdir)/config
243 - [[ -e ${configfile} ]] && rm -f ${configfile}
244 - eselect ${x} set ${dprof}
245 - elog "${x} has been eselected to ${dprof}"
246 - else
247 - elog "Current eselected ${x} implementation is ${cprof}"
248 - elog "To use you have one of ${PN}, issue (as root):"
249 - elog "\t eselect ${x} set <profile>"
250 - fi
251 - done
252 -}
253
254 diff --git a/sci-libs/acml/files/blas.pc.in b/sci-libs/acml/files/blas.pc.in
255 deleted file mode 100644
256 index 523aabc1204..00000000000
257 --- a/sci-libs/acml/files/blas.pc.in
258 +++ /dev/null
259 @@ -1,11 +0,0 @@
260 -prefix=@ACMLDIR@
261 -exec_prefix=${prefix}
262 -libdir=${prefix}/lib
263 -includedir=${prefix}/include
264 -
265 -Name: blas
266 -Description: ACML implementations of the Basic Linear Algebra Subroutines
267 -Version: @PV@
268 -URL: http://developer.amd.com/acml.jsp
269 -Libs: -Wl,--no-as-needed -L${libdir} @ACMLLIBS@ @EXTLIBS@
270 -Cflags: @EXTFLAGS@
271
272 diff --git a/sci-libs/acml/files/lapack.pc.in b/sci-libs/acml/files/lapack.pc.in
273 deleted file mode 100644
274 index 48fef122dfe..00000000000
275 --- a/sci-libs/acml/files/lapack.pc.in
276 +++ /dev/null
277 @@ -1,11 +0,0 @@
278 -prefix=@ACMLDIR@
279 -exec_prefix=${prefix}
280 -libdir=${prefix}/lib
281 -includedir=${prefix}/include
282 -
283 -Name: lapack
284 -Description: ACML implementation of the F77 Linear Algebra PACKage
285 -Version: @PV@
286 -URL: http://developer.amd.com/acml.jsp
287 -Libs: -Wl,--no-as-needed -L${libdir} @ACMLLIBS@ @EXTLIBS@
288 -Cflags: @EXTFLAGS@
289
290 diff --git a/sci-libs/acml/metadata.xml b/sci-libs/acml/metadata.xml
291 deleted file mode 100644
292 index 79c28083de6..00000000000
293 --- a/sci-libs/acml/metadata.xml
294 +++ /dev/null
295 @@ -1,26 +0,0 @@
296 -<?xml version="1.0" encoding="UTF-8"?>
297 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
298 -<pkgmetadata>
299 - <maintainer type="project">
300 - <email>sci@g.o</email>
301 - <name>Gentoo Science Project</name>
302 - </maintainer>
303 - <longdescription lang="en">
304 - The AMD(R) Core Math Library provides an implementation of the "Basic
305 - Linear Algebra Subprograms" (BLAS) and the "Linear Algebra PACKage"
306 - (LAPACK) as well as a set of "Fast Fourier Transformation" (FFT)
307 - routines, all highly optimized for AMD(R) x86 and amd64 CPUs.
308 -</longdescription>
309 - <longdescription lang="de">
310 - Die AMD(R) Core Math Library ist ein Ersatz für die "Basic Linear
311 - Algebra Subprograms" (BLAS) und das "Linear Algebra PACKage" (LAPACK).
312 - Außerdem enthält sie Routinen zur "Fast Fourier Tranformation" (FFT).
313 - Alle Routinen sind hoch optimiert für AMD(R) x86 und amd64 CPUs.
314 -</longdescription>
315 - <use>
316 - <flag name="gfortran">Fetch and install acml compiled with GNU gfortran</flag>
317 - <flag name="ifc">Fetch and install acml compiled with Intel Fortran Compiler
318 - (<pkg>dev-lang/ifc</pkg>)</flag>
319 - <flag name="int64">Install the 64 bits integer library</flag>
320 - </use>
321 -</pkgmetadata>