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/lapacke-reference/
Date: Fri, 17 Feb 2012 16:27:02
Message-Id: 1329495926.d1810d4a2fdfc1a2213cc6ad04e2f1a3ce442b15.bicatali@gentoo
1 commit: d1810d4a2fdfc1a2213cc6ad04e2f1a3ce442b15
2 Author: Sébastien Fabbro <sebfabbro <AT> gmail <DOT> com>
3 AuthorDate: Fri Feb 17 16:25:26 2012 +0000
4 Commit: Sebastien Fabbro <bicatali <AT> gentoo <DOT> org>
5 CommitDate: Fri Feb 17 16:25:26 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=d1810d4a
7
8 sci-libs/lapacke-reference: Fixed pkg-config
9
10 (Portage version: 2.1.10.44/git/Linux x86_64, unsigned Manifest commit)
11
12 ---
13 sci-libs/lapacke-reference/ChangeLog | 8 ++
14 .../lapacke-reference-1.0.0.009.ebuild | 84 --------------------
15 ...=> lapacke-reference-3.4.0_p20120215-r1.ebuild} | 0
16 3 files changed, 8 insertions(+), 84 deletions(-)
17
18 diff --git a/sci-libs/lapacke-reference/ChangeLog b/sci-libs/lapacke-reference/ChangeLog
19 index 505dcd0..1b200ba 100644
20 --- a/sci-libs/lapacke-reference/ChangeLog
21 +++ b/sci-libs/lapacke-reference/ChangeLog
22 @@ -2,6 +2,14 @@
23 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
24 # $Header: $
25
26 +*lapacke-reference-3.4.0_p20120215-r1 (17 Feb 2012)
27 +
28 + 17 Feb 2012; Sébastien Fabbro <bicatali@g.o>
29 + -lapacke-reference-1.0.0.009.ebuild,
30 + -lapacke-reference-3.4.0_p20120215.ebuild,
31 + +lapacke-reference-3.4.0_p20120215-r1.ebuild:
32 + Fixed pkg-config
33 +
34 *lapacke-reference-3.4.0_p20120215 (16 Feb 2012)
35
36 16 Feb 2012; Sébastien Fabbro <bicatali@g.o>
37
38 diff --git a/sci-libs/lapacke-reference/lapacke-reference-1.0.0.009.ebuild b/sci-libs/lapacke-reference/lapacke-reference-1.0.0.009.ebuild
39 deleted file mode 100644
40 index e2f2d57..0000000
41 --- a/sci-libs/lapacke-reference/lapacke-reference-1.0.0.009.ebuild
42 +++ /dev/null
43 @@ -1,84 +0,0 @@
44 -# Copyright 1999-2011 Gentoo Foundation
45 -# Distributed under the terms of the GNU General Public License v2
46 -# $Header: $
47 -
48 -EAPI=4
49 -inherit eutils toolchain-funcs versionator alternatives-2
50 -
51 -MYP=lapacke-${PV}
52 -
53 -DESCRIPTION="C Interface to LAPACK"
54 -HOMEPAGE="http://www.netlib.org/lapack/"
55 -SRC_URI="http://www.netlib.org/lapack/lapacke.tgz -> ${MYP}.tar.gz"
56 -
57 -LICENSE="BSD"
58 -SLOT="0"
59 -KEYWORDS="~amd64 ~x86"
60 -IUSE="static-libs"
61 -
62 -RDEPEND=""
63 -DEPEND="test? ( virtual/lapack dev-util/pkgconfig )"
64 -
65 -S="${WORKDIR}/lapacke"
66 -
67 -LIBNAME=reflapacke
68 -
69 -make_shared_lib() {
70 - local libstatic=${1}
71 - local soname=$(basename "${1%.a}").so.$(get_major_version)
72 - shift
73 - einfo "Making ${soname}"
74 - ${LINK:-$(tc-getCC)} ${LDFLAGS} \
75 - -shared -Wl,-soname="${soname}" \
76 - -Wl,--whole-archive "${libstatic}" -Wl,--no-whole-archive \
77 - "$@" -o $(dirname "${libstatic}")/"${soname}" || die "${soname} failed"
78 - ln -s "${soname}" $(dirname "${libstatic}")/"${soname%.*}"
79 -}
80 -
81 -src_prepare() {
82 - cat > make.inc <<-EOF
83 - CC = $(tc-getCC)
84 - CFLAGS = ${CFLAGS}
85 - LINKER = \$(CC)
86 - LDFLAGS = ${LDFLAGS}
87 - ARCH = $(tc-getAR)
88 - ARCHFLAGS = cr
89 - RANLIB = $(tc-getRANLIB)
90 - LAPACKE = lib${LIBNAME}.a
91 - EOF
92 -}
93 -
94 -src_compile() {
95 - emake CFLAGS="${CFLAGS} -fPIC" lapacke
96 - make_shared_lib lib${LIBNAME}.a
97 - if use static-libs; then
98 - emake clean && rm -f lib${LIBNAME}.a
99 - emake lapacke
100 - fi
101 -}
102 -
103 -src_test() {
104 - emake LIBS="$(pkg-config --libs lapack)" lapacke_testing
105 -}
106 -
107 -src_install() {
108 - dolib.so lib${LIBNAME}.so*
109 - use static-libs && dolib.a lib${LIBNAME}.a
110 - insinto /usr/include
111 - doins include/lapacke*h || die
112 - cat <<-EOF > ${LIBNAME}.pc
113 - prefix=${EPREFIX}/usr
114 - libdir=\${prefix}/$(get_libdir)
115 - includedir=\${prefix}/include
116 - Name: LAPACK C Extension - Reference
117 - Description: ${DESCRIPTION}
118 - Version: ${PV}
119 - URL: ${HOMEPAGE}
120 - Libs: -L\${libdir} -l${LIBNAME} -lm
121 - Cflags: -I\${includedir}
122 - EOF
123 - insinto /usr/$(get_libdir)/pkgconfig
124 - doins ${LIBNAME}.pc || die
125 - alternatives_for lapacke reference 0 \
126 - "/usr/$(get_libdir)/pkgconfig/lapacke.pc" "${LIBNAME}.pc"
127 -}
128
129 diff --git a/sci-libs/lapacke-reference/lapacke-reference-3.4.0_p20120215.ebuild b/sci-libs/lapacke-reference/lapacke-reference-3.4.0_p20120215-r1.ebuild
130 similarity index 100%
131 rename from sci-libs/lapacke-reference/lapacke-reference-3.4.0_p20120215.ebuild
132 rename to sci-libs/lapacke-reference/lapacke-reference-3.4.0_p20120215-r1.ebuild