diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2007-12-19 19:30:47 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2007-12-19 19:30:47 +0000 |
commit | b5165e8b0e394fbd9a84d0748979ead223fc8e2b (patch) | |
tree | 24349a314af34e66ac991011b8315ee2db7d1001 /sci-libs/acml | |
parent | Modify libgcrypt dependency, bug#202783, thanks to Ramon (diff) | |
download | gentoo-2-b5165e8b0e394fbd9a84d0748979ead223fc8e2b.tar.gz gentoo-2-b5165e8b0e394fbd9a84d0748979ead223fc8e2b.tar.bz2 gentoo-2-b5165e8b0e394fbd9a84d0748979ead223fc8e2b.zip |
Fix also older versions for g2c/gfortran libs
(Portage version: 2.1.4_rc9)
Diffstat (limited to 'sci-libs/acml')
-rw-r--r-- | sci-libs/acml/ChangeLog | 6 | ||||
-rw-r--r-- | sci-libs/acml/acml-3.6.0-r1.ebuild | 19 | ||||
-rw-r--r-- | sci-libs/acml/acml-3.6.1-r1.ebuild | 21 |
3 files changed, 26 insertions, 20 deletions
diff --git a/sci-libs/acml/ChangeLog b/sci-libs/acml/ChangeLog index 14c606937bbc..a9484cde0221 100644 --- a/sci-libs/acml/ChangeLog +++ b/sci-libs/acml/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for sci-libs/acml # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/ChangeLog,v 1.28 2007/12/19 13:03:51 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/ChangeLog,v 1.29 2007/12/19 19:30:47 bicatali Exp $ + + 19 Dec 2007; Sébastien Fabbro <bicatali@gentoo.org> acml-3.6.0-r1.ebuild, + acml-3.6.1-r1.ebuild: + Fix also older versions for g2c/gfortran libs 19 Dec 2007; Sébastien Fabbro <bicatali@gentoo.org> acml-4.0.1.ebuild: Fixed directory for acml and forced dynamic linking with gfortran when diff --git a/sci-libs/acml/acml-3.6.0-r1.ebuild b/sci-libs/acml/acml-3.6.0-r1.ebuild index ffc28d381a86..4f34d42d9da8 100644 --- a/sci-libs/acml/acml-3.6.0-r1.ebuild +++ b/sci-libs/acml/acml-3.6.0-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/acml-3.6.0-r1.ebuild,v 1.5 2007/11/21 00:25:36 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/acml-3.6.0-r1.ebuild,v 1.6 2007/12/19 19:30:47 bicatali Exp $ inherit eutils toolchain-funcs fortran @@ -98,9 +98,10 @@ src_install() { local libname=${acmldir}/lib/libacml local extlibs local extflags + [[ ${fort} =~ g77 ]] && extlibs="${extlibs} -lg2c" if [[ ${fort} =~ _mp ]]; then ESELECT_PROF=${ESELECT_PROF}-openmp - extlibs=-lpthread + extlibs="${extlibs} -lpthread" libname=${libname}_mp extflags="${extflags} -openmp" fi @@ -108,7 +109,7 @@ src_install() { # pkgconfig files sed -e "s:@LIBDIR@:$(get_libdir):" \ -e "s:@PV@:${PV}:" \ - -e "s:@ACMLDIR@:${acmldir}:g" \ + -e "s:@ACMLDIR@:${acmldir}/lib:g" \ -e "s:@EXTLIBS@:${extlibs}:g" \ -e "s:@EXTFLAGS@:${extflags}:g" \ "${FILESDIR}"/${l}.pc.in > ${l}.pc \ @@ -117,12 +118,12 @@ src_install() { doins ${l}.pc || die "doins ${l}.pc failed" # eselect files - cat > eselect.${l} << EOF -${libname}.so /usr/@LIBDIR@/lib${l}.so.0 -${libname}.so /usr/@LIBDIR@/lib${l}.so -${libname}.a /usr/@LIBDIR@/lib${l}.a -${acmldir}/lib/${l}.pc /usr/@LIBDIR@/pkgconfig/${l}.pc -EOF + cat > eselect.${l} <<-EOF + ${libname}.so /usr/@LIBDIR@/lib${l}.so.0 + ${libname}.so /usr/@LIBDIR@/lib${l}.so + ${libname}.a /usr/@LIBDIR@/lib${l}.a + ${acmldir}/lib/${l}.pc /usr/@LIBDIR@/pkgconfig/${l}.pc + EOF eselect ${l} add $(get_libdir) eselect.${l} ${ESELECT_PROF} done echo "LDPATH=${instdir}/${fort}/lib" > 35acml diff --git a/sci-libs/acml/acml-3.6.1-r1.ebuild b/sci-libs/acml/acml-3.6.1-r1.ebuild index bf458e89adff..c5b422fcc994 100644 --- a/sci-libs/acml/acml-3.6.1-r1.ebuild +++ b/sci-libs/acml/acml-3.6.1-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/acml-3.6.1-r1.ebuild,v 1.5 2007/11/21 00:25:36 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/acml/acml-3.6.1-r1.ebuild,v 1.6 2007/12/19 19:30:47 bicatali Exp $ inherit eutils toolchain-funcs fortran @@ -62,7 +62,7 @@ src_unpack() { (DISTDIR="${S}" unpack contents-acml-*.tgz) case ${FORTRANC} in gfortran) FORT=gfortran ;; - ifc|ifort) FORT=ifort ;; + if*) FORT=ifort ;; *) eerror "Unsupported fortran compiler: ${FORTRANC}" die ;; esac @@ -114,9 +114,10 @@ src_install() { ESELECT_PROF=${ESELECT_PROF}-int64 extflags="${extflags} -fdefault-integer-8" fi + [[ ${fort} =~ gfortran ]] && extlibs="${extlibs} -lgfortran" if [[ ${fort} =~ _mp ]]; then ESELECT_PROF=${ESELECT_PROF}-openmp - extlibs=-lpthread + extlibs="${extlibs} -lpthread" libname=${libname}_mp extflags="${extflags} -fopenmp" fi @@ -124,7 +125,7 @@ src_install() { # pkgconfig files sed -e "s:@LIBDIR@:$(get_libdir):" \ -e "s:@PV@:${PV}:" \ - -e "s:@ACMLDIR@:${acmldir}:g" \ + -e "s:@ACMLDIR@:${acmldir}/lib:g" \ -e "s:@EXTLIBS@:${extlibs}:g" \ -e "s:@EXTFLAGS@:${extflags}:g" \ "${FILESDIR}"/${l}.pc.in > ${l}.pc \ @@ -133,12 +134,12 @@ src_install() { doins ${l}.pc # eselect files - cat > eselect.${l} << EOF -${libname}.so /usr/@LIBDIR@/lib${l}.so.0 -${libname}.so /usr/@LIBDIR@/lib${l}.so -${libname}.a /usr/@LIBDIR@/lib${l}.a -${acmldir}/lib/${l}.pc /usr/@LIBDIR@/pkgconfig/${l}.pc -EOF + cat > eselect.${l} <<-EOF + ${libname}.so /usr/@LIBDIR@/lib${l}.so.0 + ${libname}.so /usr/@LIBDIR@/lib${l}.so + ${libname}.a /usr/@LIBDIR@/lib${l}.a + ${acmldir}/lib/${l}.pc /usr/@LIBDIR@/pkgconfig/${l}.pc + EOF eselect ${l} add $(get_libdir) eselect.${l} ${ESELECT_PROF} done echo "LDPATH=${acmldir}/lib" > "${S}"/35acml |