diff options
author | 2010-03-18 20:46:19 +0000 | |
---|---|---|
committer | 2010-03-18 20:46:19 +0000 | |
commit | c8338ceb66eab21ef2c4f4c874851af0f5e5d35a (patch) | |
tree | 0a49ecc4d516cbda4be1b0f1b8ecc2b38a98a89c /sci-libs/clapack | |
parent | Version bump. Remove obsolete versions. (diff) | |
download | gentoo-2-c8338ceb66eab21ef2c4f4c874851af0f5e5d35a.tar.gz gentoo-2-c8338ceb66eab21ef2c4f4c874851af0f5e5d35a.tar.bz2 gentoo-2-c8338ceb66eab21ef2c4f4c874851af0f5e5d35a.zip |
We are linking shared libs now
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-libs/clapack')
-rw-r--r-- | sci-libs/clapack/ChangeLog | 8 | ||||
-rw-r--r-- | sci-libs/clapack/clapack-3.2.1-r1.ebuild | 52 | ||||
-rw-r--r-- | sci-libs/clapack/files/3.2.1-solib.patch | 27 |
3 files changed, 86 insertions, 1 deletions
diff --git a/sci-libs/clapack/ChangeLog b/sci-libs/clapack/ChangeLog index ed74fd1aa091..59fbb1e2ca39 100644 --- a/sci-libs/clapack/ChangeLog +++ b/sci-libs/clapack/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sci-libs/clapack # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/clapack/ChangeLog,v 1.1 2010/03/04 09:57:23 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/clapack/ChangeLog,v 1.2 2010/03/18 20:46:18 jlec Exp $ + +*clapack-3.2.1-r1 (18 Mar 2010) + + 18 Mar 2010; Justin Lecher (jlec) <jlec@gentoo.org> + +files/3.2.1-solib.patch, clapack-3.2.1.ebuild, +clapack-3.2.1-r1.ebuild: + We are linking shared libs now *clapack-3.2.1 (04 Mar 2010) diff --git a/sci-libs/clapack/clapack-3.2.1-r1.ebuild b/sci-libs/clapack/clapack-3.2.1-r1.ebuild new file mode 100644 index 000000000000..5ceabbd40ad2 --- /dev/null +++ b/sci-libs/clapack/clapack-3.2.1-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/clapack/clapack-3.2.1-r1.ebuild,v 1.1 2010/03/18 20:46:18 jlec Exp $ + +EAPI="3" + +inherit eutils multilib toolchain-funcs versionator + +DESCRIPTION="f2c'ed version of LAPACK" +HOMEPAGE="http://www.netlib.org/clapack/" +SRC_URI="http://www.netlib.org/${PN}/${P}.tgz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-libs/libf2c-20081126[static]" +DEPEND="${RDEPEND}" +S="${WORKDIR}"/CLAPACK-${PV} + +src_prepare() { + rm -rf F2CLIBS BLAS + + epatch "${FILESDIR}"/${PV}-solib.patch + + sed \ + -e "s:^CC.*$:CC = $(tc-getCC):g" \ + -e "s:^CFLAGS.*$:CFLAGS = ${CFLAGS} -fPIC:g" \ + -e "s:^LOADER.*$:LOADER = $(tc-getCC):g" \ + -e "s:^LOADOPTS.*$:LOADOPTS = ${LDFLAGS} -Wl,-soname,libclapack.so.$(get_version_component_range 1-2):g" \ + -e "s:LAPACKLIB.*$:LAPACKLIB = libclapack.so.${PV}:g" \ + make.inc.example > make.inc + + sed \ + -e 's:"f2c.h":<f2c.h>:g' \ + -i SRC/*.c || die +} + +src_compile() { + emake -C INSTALL F2CLIB="${EPREFIX}"/usr/$(get_libdir)/libf2c.a || die "compile failed" + emake -C SRC || die "compile failed" +} + +src_install() { + insinto /usr/include + doins INCLUDE/${PN}.h || die + dolib.so lib${PN}.so.${PV} || die + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_version_component_range 1-2) || die + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so.$(get_major_version) || die + dosym lib${PN}.so.${PV} /usr/$(get_libdir)/lib${PN}.so || die +} diff --git a/sci-libs/clapack/files/3.2.1-solib.patch b/sci-libs/clapack/files/3.2.1-solib.patch new file mode 100644 index 000000000000..534927baf8a1 --- /dev/null +++ b/sci-libs/clapack/files/3.2.1-solib.patch @@ -0,0 +1,27 @@ +diff --git a/SRC/Makefile b/SRC/Makefile +index 47bea67..bc23ad8 100644 +--- a/SRC/Makefile ++++ b/SRC/Makefile +@@ -367,8 +367,7 @@ ALLOBJ=$(SLASRC) $(DLASRC) $(CLASRC) $(ZLASRC) $(SCLAUX) $(DZLAUX) \ + $(ALLAUX) + + ../$(LAPACKLIB): $(ALLOBJ) $(ALLXOBJ) +- $(ARCH) $(ARCHFLAGS) $@ $(ALLOBJ) $(ALLXOBJ) +- $(RANLIB) $@ ++ $(CC) $(LDFLAGS) -shared -o $@ $(ALLOBJ) $(ALLXOBJ) -lf2c + + single: $(SLASRC) $(ALLAUX) $(SCLAUX) + $(ARCH) $(ARCHFLAGS) ../$(LAPACKLIB) $(SLASRC) $(ALLAUX) \ +diff --git a/make.inc.example b/make.inc.example +index 0ac8bbb..5a0eac6 100644 +--- a/make.inc.example ++++ b/make.inc.example +@@ -27,7 +27,7 @@ CC = gcc + CFLAGS = -O3 + LOADER = gcc + LOADOPTS = +-NOOPT = -O0 ++NOOPT = -O0 -fPIC + DRVCFLAGS = $(CFLAGS) + F2CCFLAGS = $(CFLAGS) + ####################################################################### |