diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
commit | b49088575eb777ced2551f484da86317332d6087 (patch) | |
tree | bf9a151cf2d61956340d555659ffc098ee1da466 /dev-lang/cfortran/cfortran-20110621.ebuild | |
parent | 514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (diff) |
gentoo resync : 24.07.2021
Diffstat (limited to 'dev-lang/cfortran/cfortran-20110621.ebuild')
-rw-r--r-- | dev-lang/cfortran/cfortran-20110621.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/dev-lang/cfortran/cfortran-20110621.ebuild b/dev-lang/cfortran/cfortran-20110621.ebuild new file mode 100644 index 000000000000..feb93f85b1d4 --- /dev/null +++ b/dev-lang/cfortran/cfortran-20110621.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED=test + +inherit autotools fortran-2 + +DEB_PR="1" + +DESCRIPTION="Header file allowing to call Fortran routines from C and C++" +HOMEPAGE="https://www-zeus.desy.de/~burow/cfortran/" +SRC_URI=" + mirror://debian/pool/main/c/${PN}/${PN}_${PV}.orig.tar.gz + mirror://debian/pool/main/c/${PN}/${PN}_${PV}-${DEB_PR}.debian.tar.xz" + +SLOT="0" +LICENSE="LGPL-2" +KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="examples test" + +RESTRICT="!test? ( test )" + +DOCS=( cfortran.doc ) + +src_prepare() { + eapply "${WORKDIR}"/debian/patches/*.patch + default + eautoreconf + + if use examples; then + # The examples are also used as tests and it's tricky to clean up + # afterwards, just save a clean copy (sans Makefiles, as they only + # cover the test phase) before the tests are run. + cp -ar eg eg_src || die "Failed to preserve a clean copy of examples" + rm -f eg_src/Makefile{,.am,.in} + fi +} + +src_install() { + default + + # For compatibility with older versions + dodir /usr/include/cfortran + dosym -r /usr/include/cfortran.h /usr/include/cfortran/cfortran.h + + docinto debian + dodoc "${WORKDIR}"/debian/{NEWS,changelog,copyright} + docinto html + dodoc cfortran.html index.htm + + if use examples; then + docinto examples + dodoc -r cfortest.c cfortex.f eg_src/* + fi +} |