diff options
Diffstat (limited to 'sci-libs/fgsl')
-rw-r--r-- | sci-libs/fgsl/Manifest | 2 | ||||
-rw-r--r-- | sci-libs/fgsl/fgsl-0.9.4.ebuild | 60 | ||||
-rw-r--r-- | sci-libs/fgsl/fgsl-1.3.0.ebuild | 37 | ||||
-rw-r--r-- | sci-libs/fgsl/files/fgsl-0.9.3-sharedlibs.patch | 27 | ||||
-rw-r--r-- | sci-libs/fgsl/metadata.xml | 1 |
5 files changed, 38 insertions, 89 deletions
diff --git a/sci-libs/fgsl/Manifest b/sci-libs/fgsl/Manifest index 3f939f5ef..f9433e48e 100644 --- a/sci-libs/fgsl/Manifest +++ b/sci-libs/fgsl/Manifest @@ -1 +1 @@ -DIST fgsl-0.9.4.tar.gz 999825 BLAKE2B cc30d69d5a52af02f0aad6a5ea11d5b38e42072a8c7ecc5259bca80ccd2711d225800ce2d085d174c7b7e78688536c96b21b1d6e17987b1009ab482d27b57afb SHA512 45186a17d2b7e46968a29e99cbb1c7bb4cb22c14b322337e0166ee2e05e6bd63f709d6da566c30e7b350231dff268e65908e542288bdec7ca88ff1cb505eae3e +DIST fgsl-1.3.0.tar.gz 1756037 BLAKE2B 62cd7df4dd1a73bb24bedb2fe450f4ff147eccfdaa1832778e82083adf0ccf64c1241deb4d44b9d34d19dfd0739c0648ce974a7d0dae03d279fcd0256ff9b43b SHA512 2b13d873a260d6d94d6b0adabf8cd095dc30c458e3cdd86e5f7797aa03959034ef4a9f721221623a0903948ebd0f4e811bf6c1fbe4f82b8319a9517489bb9ad4 diff --git a/sci-libs/fgsl/fgsl-0.9.4.ebuild b/sci-libs/fgsl/fgsl-0.9.4.ebuild deleted file mode 100644 index dc4dc2adf..000000000 --- a/sci-libs/fgsl/fgsl-0.9.4.ebuild +++ /dev/null @@ -1,60 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit eutils fortran-2 multilib toolchain-funcs - -DESCRIPTION="A Fortran interface to the GNU Scientific Library" -HOMEPAGE="http://www.lrz.de/services/software/mathematik/gsl/fortran/" -SRC_URI="http://www.lrz.de/services/software/mathematik/gsl/fortran/${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~amd64-linux" -IUSE="static-libs" - -RDEPEND=">=sci-libs/gsl-1.14" -DEPEND="${RDEPEND} - virtual/pkgconfig" -#TODO: make docs - -FORTRAN_STANDARD=90 - -src_prepare() { - epatch "${FILESDIR}"/${PN}-0.9.3-sharedlibs.patch - if use amd64; then - ln -s interface/integer_ilp64.finc integer.finc || die - elif use x86; then - ln -s interface/integer_ilp32.finc integer.finc || die - else - die "Don't know who you are" - fi - - cat <<- EOF > "${S}/make.inc" - F90 = $(tc-getFC) - CC = $(tc-getCC) - GSL_LIB = $($(tc-getPKG_CONFIG) --libs gsl) - GSL_INC = $($(tc-getPKG_CONFIG) --cflags gsl) - PREFIX = /usr - ARFLAGS = -csrv - FPP = -cpp - LIB = $(get_libdir) - EOF - - use static-libs && echo "STATIC_LIBS = yes" >> "${S}/make.inc" -} - -src_configure() { -: -} - -src_install() { - dodoc NEWS README - ln -s lib${PN}.so.0.0.0 lib${PN}.so.0 || die - ln -s lib${PN}.so.0.0.0 lib${PN}.so || die - dolib.so lib${PN}.so* - doheader ${PN}.mod - use static-libs && \ - newlib.a lib${PN}_$(tc-getFC).a lib${PN}.a -} diff --git a/sci-libs/fgsl/fgsl-1.3.0.ebuild b/sci-libs/fgsl/fgsl-1.3.0.ebuild new file mode 100644 index 000000000..01c415ad2 --- /dev/null +++ b/sci-libs/fgsl/fgsl-1.3.0.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DOCS_BUILDER="doxygen" +DOCS_DEPEND="media-gfx/graphviz" + +inherit docs fortran-2 + +DESCRIPTION="A Fortran interface to the GNU Scientific Library" +HOMEPAGE="https://doku.lrz.de/display/PUBLIC/FGSL+-+A+Fortran+interface+to+the+GNU+Scientific+Library/" +SRC_URI="https://doku.lrz.de/download/attachments/43321199/${P}.tar.gz" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~amd64-linux" +IUSE="static-libs" + +RDEPEND=">=sci-libs/gsl-2.4" +DEPEND="${RDEPEND}" +BDEPEDN="virtual/pkgconfig" + +FORTRAN_STANDARD=90 + +DOCS=( NEWS README ) + +src_compile() { + # With -j higher than 1 we get file not found errors + emake -j1 + docs_compile +} + +src_install() { + default + mv "${ED}/usr/share/doc/fgsl" "${ED}/usr/share/doc/${PF}" || die +} diff --git a/sci-libs/fgsl/files/fgsl-0.9.3-sharedlibs.patch b/sci-libs/fgsl/files/fgsl-0.9.3-sharedlibs.patch deleted file mode 100644 index 401d75098..000000000 --- a/sci-libs/fgsl/files/fgsl-0.9.3-sharedlibs.patch +++ /dev/null @@ -1,27 +0,0 @@ ---- Makefile.orig 2010-05-01 23:35:17.000000000 +0200 -+++ Makefile 2010-08-17 10:15:38.117694977 +0200 -@@ -14,7 +14,23 @@ - @cd tests; $(MAKE) clean; $(MAKE) -j 8 run - - --lib : libfgsl_$(F90).a -+ifeq ($(STATIC_LIBS),) -+lib : libfgsl.so.0.0.0 -+else -+lib : libfgsl_$(F90).a libfgsl.so.0.0.0 -+endif -+ -+libfgsl.so.0.0.0: fgsl.lo fgsl_utils.lo -+ $(F90) -shared $(LDFLAGS) -Wl,-soname,libfgsl.so.0 -o $@ $^ $(GSL_LIB) -+ -+fgsl.lo : fgsl.f90 api/*.finc interface/*.finc -+ $(F90) -fPIC $(FFLAGS) $(DEBUG) -c fgsl.f90 -o $@ -+ -+%.lo: %.f90 -+ $(F90) -fPIC $(FFLAGS) $(DEBUG) -c -o $@ $^ -+ -+%.lo: %.c -+ $(CC) -fPIC -c $(GSL_INC) $(CFLAGS) $(CDEBUG) -o $@ $^ - - libfgsl_$(F90).a : fgsl.o fgsl_utils.o - ar $(ARFLAGS) libfgsl_$(F90).a $^ diff --git a/sci-libs/fgsl/metadata.xml b/sci-libs/fgsl/metadata.xml index 51d30f204..4aad8620d 100644 --- a/sci-libs/fgsl/metadata.xml +++ b/sci-libs/fgsl/metadata.xml @@ -9,5 +9,4 @@ <email>sci@gentoo.org</email> <name>Gentoo Science Project</name> </maintainer> - <longdescription>FGSL: A Fortran interface to the GNU Scientific Library</longdescription> </pkgmetadata> |