1 |
commit: f66fc758203a922959b415a3a4e0814aeba74b9f |
2 |
Author: Marius Brehler <marbre <AT> linux <DOT> sungazer <DOT> de> |
3 |
AuthorDate: Mon Feb 2 08:51:43 2015 +0000 |
4 |
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 2 08:51:43 2015 +0000 |
6 |
URL: http://sources.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=f66fc758 |
7 |
|
8 |
sci-libs/acml/acml-6.1.0.3: Version bump |
9 |
|
10 |
--- |
11 |
sci-libs/acml/ChangeLog | 6 +++ |
12 |
sci-libs/acml/acml-6.1.0.31.ebuild | 100 +++++++++++++++++++++++++++++++++++++ |
13 |
2 files changed, 106 insertions(+) |
14 |
|
15 |
diff --git a/sci-libs/acml/ChangeLog b/sci-libs/acml/ChangeLog |
16 |
index 4c6ae9a..97bf101 100644 |
17 |
--- a/sci-libs/acml/ChangeLog |
18 |
+++ b/sci-libs/acml/ChangeLog |
19 |
@@ -2,6 +2,12 @@ |
20 |
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 |
21 |
# $Header: $ |
22 |
|
23 |
+*acml-6.1.0.31 (02 Feb 2015) |
24 |
+ |
25 |
+ 02 Feb 2015; Marius Brehler <marbre@××××××××××××××.de> |
26 |
+ +acml-6.1.0.21.ebuild: |
27 |
+ Version bump |
28 |
+ |
29 |
02 Feb 2015; Marius Brehler <marbre@××××××××××××××.de> |
30 |
acml-5.3.0.ebuild: |
31 |
Convert fma to cpu_flags_x86_fma4 |
32 |
|
33 |
diff --git a/sci-libs/acml/acml-6.1.0.31.ebuild b/sci-libs/acml/acml-6.1.0.31.ebuild |
34 |
new file mode 100644 |
35 |
index 0000000..02dd4fa |
36 |
--- /dev/null |
37 |
+++ b/sci-libs/acml/acml-6.1.0.31.ebuild |
38 |
@@ -0,0 +1,100 @@ |
39 |
+# Copyright 1999-2015 Gentoo Foundation |
40 |
+# Distributed under the terms of the GNU General Public License v2 |
41 |
+# $Header: $ |
42 |
+ |
43 |
+EAPI=5 |
44 |
+ |
45 |
+inherit eutils multilib toolchain-funcs versionator alternatives-2 fortran-2 |
46 |
+ |
47 |
+ACML_INST_DIR=opt/${PN}${PV} |
48 |
+QA_PREBUILT="${ACML_INST_DIR}/*/lib/*" |
49 |
+ |
50 |
+MYP=${PN}-$(replace_all_version_separators -) |
51 |
+ |
52 |
+DESCRIPTION="AMD Core Math Library for amd64 CPUs" |
53 |
+HOMEPAGE="http://developer.amd.com/tools-and-sdks/cpu-development/amd-core-math-library-acml/" |
54 |
+CURI="http://developer.amd.com/tools-and-sdks/cpu-development/amd-core-math-library-acml/acml-downloads-resources/#download" |
55 |
+SRC_URI="gfortran? ( ${P}-gfortran64.tgz )" |
56 |
+ |
57 |
+LICENSE="ACML-EULA" |
58 |
+SLOT="0" |
59 |
+KEYWORDS="-* ~amd64 ~amd64-linux" |
60 |
+IUSE="doc examples cpu_flags_x86_fma4 +gfortran openmp test" |
61 |
+RESTRICT="strip mirror" |
62 |
+ |
63 |
+DEPEND="" |
64 |
+RDEPEND="" |
65 |
+ |
66 |
+S="${WORKDIR}" |
67 |
+ |
68 |
+pkg_nofetch() { |
69 |
+ einfo "Please download" |
70 |
+ einfo "$SRC_URI" |
71 |
+ einfo " ${CURI} and place it in ${DISTDIR}" |
72 |
+} |
73 |
+ |
74 |
+src_unpack() { |
75 |
+ unpack ${A} |
76 |
+ use openmp || rm -rf *_mp* |
77 |
+} |
78 |
+ |
79 |
+src_test() { |
80 |
+ local fdir d |
81 |
+ for fdir in */examples; do |
82 |
+ einfo "Testing acml in ${fdir}" |
83 |
+ pushd ${fdir} > /dev/null |
84 |
+ emake ACMLDIR="${S}/${fdir%/examples}" |
85 |
+ emake clean |
86 |
+ popd > /dev/null |
87 |
+ done |
88 |
+} |
89 |
+ |
90 |
+src_install() { |
91 |
+ # install libraries, pkgconfig file and eselect files for each profile |
92 |
+ local prof libs fdir libdir=$(get_libdir) x |
93 |
+ for fdir in */lib; do |
94 |
+ fdir=$(dirname ${fdir}) |
95 |
+ prof=acml-$(echo ${fdir} | sed \ |
96 |
+ -e 's:mp:openmp:' \ |
97 |
+ -e 's:_:-:g') |
98 |
+ use examples || rm -r ${fdir}/examples |
99 |
+ dodir /${ACML_INST_DIR} |
100 |
+ cp -pPR ${fdir} "${ED}"/${ACML_INST_DIR} || die |
101 |
+ libs="$(find ${fdir} -name \*.so -printf '%f ' | sed -e 's:lib:-l:g' -e 's:\.so::g')" |
102 |
+ cat <<-EOF > ${prof}.pc |
103 |
+ prefix=${EROOT}/${ACML_INST_DIR}/${fdir} |
104 |
+ libdir=\${prefix}/lib |
105 |
+ includedir=\${prefix}/include |
106 |
+ Name: ${prof} |
107 |
+ Description: ${DESCRIPTION} |
108 |
+ Version: ${PV} |
109 |
+ URL: ${HOMEPAGE} |
110 |
+ Libs: -L\${libdir} ${libs} |
111 |
+ Libs.private: -lm -lrt ${threads} |
112 |
+ Cflags: -I\${includedir} |
113 |
+ EOF |
114 |
+ insinto /usr/${libdir}/pkgconfig |
115 |
+ doins ${prof}.pc |
116 |
+ for x in blas lapack; do |
117 |
+ alternatives_for ${x} ${prof} 0 \ |
118 |
+ /usr/${libdir}/pkgconfig/${x}.pc ${prof}.pc \ |
119 |
+ /${ACML_INST_DIR}/${libdir} ${fdir}/lib |
120 |
+ done |
121 |
+ done |
122 |
+ |
123 |
+ echo > 35acml "LDPATH=${EROOT}/${ACML_INST_DIR}/${libdir}" |
124 |
+ doenvd 35acml |
125 |
+ |
126 |
+ # default profile: first one matching use flags |
127 |
+ local opts=gfortran64 |
128 |
+ use cpu_flags_x86_fma4 && opts+="_fma4" |
129 |
+ use openmp && opts+="_mp" |
130 |
+ dosym $(ls -1d */lib | grep ${opts}) /${ACML_INST_DIR}/${libdir} |
131 |
+ |
132 |
+ insinto /${ACML_INST_DIR} |
133 |
+ # info files go to standard /usr/share/info to avoid more env variables |
134 |
+ doinfo Doc/*info* |
135 |
+ rm Doc/*EULA* Doc/*info* || die |
136 |
+ use doc || rm -r Doc/*.pdf Doc/acml.html Doc/html |
137 |
+ doins -r Doc ReleaseNotes* |
138 |
+} |