1 |
commit: 5f7e68e99c5a706b64fd00d7dfc0f55261c58905 |
2 |
Author: Sébastien Fabbro <bicatali <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Dec 9 17:24:10 2013 +0000 |
4 |
Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Dec 9 17:24:10 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=5f7e68e9 |
7 |
|
8 |
fixed src_prepare for reflapacke |
9 |
|
10 |
--- |
11 |
sci-libs/plasma/plasma-2.4.6.ebuild | 125 --------------------- |
12 |
.../{plasma-2.5.1.ebuild => plasma-2.5.2.ebuild} | 0 |
13 |
2 files changed, 125 deletions(-) |
14 |
|
15 |
diff --git a/sci-libs/plasma/plasma-2.4.6.ebuild b/sci-libs/plasma/plasma-2.4.6.ebuild |
16 |
deleted file mode 100644 |
17 |
index e3bd016..0000000 |
18 |
--- a/sci-libs/plasma/plasma-2.4.6.ebuild |
19 |
+++ /dev/null |
20 |
@@ -1,125 +0,0 @@ |
21 |
-# Copyright 1999-2012 Gentoo Foundation |
22 |
-# Distributed under the terms of the GNU General Public License v2 |
23 |
-# $Header: $ |
24 |
- |
25 |
-EAPI=4 |
26 |
-inherit eutils fortran-2 toolchain-funcs versionator multilib |
27 |
- |
28 |
-MYP=${PN}_${PV} |
29 |
- |
30 |
-DESCRIPTION="Parallel Linear Algebra for Scalable Multi-core Architecture" |
31 |
-HOMEPAGE="http://icl.cs.utk.edu/plasma/" |
32 |
-SRC_URI="http://icl.cs.utk.edu/projectsfiles/plasma/pubs/${MYP}.tar.gz" |
33 |
- |
34 |
-LICENSE="BSD" |
35 |
-SLOT="0" |
36 |
-KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
37 |
-IUSE="doc examples fortran static-libs test" |
38 |
- |
39 |
-RDEPEND=" |
40 |
- sys-apps/hwloc |
41 |
- virtual/blas |
42 |
- virtual/cblas |
43 |
- virtual/lapack |
44 |
- virtual/lapacke" |
45 |
-DEPEND="${RDEPEND} |
46 |
- virtual/pkgconfig |
47 |
- test? ( sci-libs/lapacke-reference[tmg] )" |
48 |
- |
49 |
-S="${WORKDIR}/${MYP}" |
50 |
- |
51 |
-# TODO: virtual/{blas,cblas,lapack} serial and threaded. plasma works properly |
52 |
-# with serial blas/lapack (see README). not doable dynamically with atlas |
53 |
- |
54 |
-static_to_shared() { |
55 |
- local libstatic=${1}; shift |
56 |
- local libname=$(basename ${libstatic%.a}) |
57 |
- local soname=${libname}$(get_libname $(get_version_component_range 1-2)) |
58 |
- local libdir=$(dirname ${libstatic}) |
59 |
- |
60 |
- einfo "Making ${soname} from ${libstatic}" |
61 |
- if [[ ${CHOST} == *-darwin* ]] ; then |
62 |
- ${LINK:-$(tc-getCC)} ${LDFLAGS} \ |
63 |
- -dynamiclib -install_name "${EPREFIX}"/usr/lib/"${soname}" \ |
64 |
- -Wl,-all_load -Wl,${libstatic} \ |
65 |
- "$@" -o ${libdir}/${soname} || die "${soname} failed" |
66 |
- else |
67 |
- ${LINK:-$(tc-getCC)} ${LDFLAGS} \ |
68 |
- -shared -Wl,-soname=${soname} \ |
69 |
- -Wl,--whole-archive ${libstatic} -Wl,--no-whole-archive \ |
70 |
- "$@" -o ${libdir}/${soname} || die "${soname} failed" |
71 |
- [[ $(get_version_component_count) -gt 1 ]] && \ |
72 |
- ln -s ${soname} ${libdir}/${libname}$(get_libname $(get_major_version)) |
73 |
- ln -s ${soname} ${libdir}/${libname}$(get_libname) |
74 |
- fi |
75 |
-} |
76 |
- |
77 |
-src_prepare() { |
78 |
- # distributed pc file not so useful |
79 |
- cat <<-EOF > ${PN}.pc |
80 |
- prefix=${EPREFIX}/usr |
81 |
- libdir=\${prefix}/$(get_libdir) |
82 |
- includedir=\${prefix}/include/${PN} |
83 |
- Name: ${PN} |
84 |
- Description: ${DESCRIPTION} |
85 |
- Version: ${PV} |
86 |
- URL: ${HOMEPAGE} |
87 |
- Libs: -L\${libdir} -lplasma -lcoreblas -lquark |
88 |
- Libs.private: -lm |
89 |
- Cflags: -I\${includedir} |
90 |
- Requires: blas cblas lapack lapacke hwloc |
91 |
- EOF |
92 |
-} |
93 |
- |
94 |
-src_configure() { |
95 |
- cat <<-EOF > make.inc |
96 |
- ARCH = $(tc-getAR) |
97 |
- ARCHFLAGS = cr |
98 |
- RANLIB = $(tc-getRANLIB) |
99 |
- CC = $(tc-getCC) |
100 |
- FC = $(tc-getFC) |
101 |
- CFLAGS = ${CFLAGS} -DADD_ -fPIC |
102 |
- FFLAGS = ${FFLAGS} -fPIC |
103 |
- LOADER = $(tc-getFC) |
104 |
- LIBBLAS = $($(tc-getPKG_CONFIG) --libs blas) |
105 |
- LIBCBLAS = $($(tc-getPKG_CONFIG) --libs cblas) |
106 |
- LIBLAPACK = $($(tc-getPKG_CONFIG) --libs lapack) |
107 |
- LIBCLAPACK = $($(tc-getPKG_CONFIG) --libs lapacke) |
108 |
- $(use fortran && echo "PLASMA_F90 = 1") |
109 |
- EOF |
110 |
-} |
111 |
- |
112 |
-src_compile() { |
113 |
- emake lib |
114 |
- static_to_shared quark/libquark.a $($(tc-getPKG_CONFIG --libs hwloc)) -pthread |
115 |
- static_to_shared lib/libcoreblas.a quark/libquark.so $($(tc-getPKG_CONFIG --libs cblas lapacke)) |
116 |
- static_to_shared lib/libplasma.a quark/libquark.so lib/libcoreblas.so |
117 |
- if use static-libs; then |
118 |
- emake cleanall |
119 |
- sed 's/-fPIC//g' make.inc |
120 |
- emake lib |
121 |
- fi |
122 |
-} |
123 |
- |
124 |
-src_test() { |
125 |
- emake test |
126 |
- cd testing |
127 |
- LD_LIBRARY_PATH="../lib:../quark:${LD_LIBRARY_PATH}" ./plasma_testing.py || die |
128 |
-} |
129 |
- |
130 |
-src_install() { |
131 |
- dolib.so lib/lib*$(get_libname)* quark/libquark$(get_libname)* |
132 |
- use static-libs && dolib.a lib/lib*.a quark/libquark.a |
133 |
- insinto /usr/include/${PN} |
134 |
- doins quark/quark{,_unpack_args}.h quark/icl_{hash,list}.h include/*.h |
135 |
- use fortran && doins include/*.mod |
136 |
- insinto /usr/$(get_libdir)/pkgconfig |
137 |
- doins ${PN}.pc |
138 |
- dodoc README ToDo ReleaseNotes |
139 |
- use doc && dodoc docs/pdf/*.pdf && dohtml docs/doxygen/out/html/* |
140 |
- if use examples; then |
141 |
- emake -C examples cleanall |
142 |
- insinto /usr/share/doc/${PF} |
143 |
- doins -r examples |
144 |
- fi |
145 |
-} |
146 |
|
147 |
diff --git a/sci-libs/plasma/plasma-2.5.1.ebuild b/sci-libs/plasma/plasma-2.5.2.ebuild |
148 |
similarity index 100% |
149 |
rename from sci-libs/plasma/plasma-2.5.1.ebuild |
150 |
rename to sci-libs/plasma/plasma-2.5.2.ebuild |