diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-lang/cfortran/cfortran-4.4-r3.ebuild | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-lang/cfortran/cfortran-4.4-r3.ebuild')
-rw-r--r-- | dev-lang/cfortran/cfortran-4.4-r3.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/dev-lang/cfortran/cfortran-4.4-r3.ebuild b/dev-lang/cfortran/cfortran-4.4-r3.ebuild new file mode 100644 index 000000000000..18edf8e29493 --- /dev/null +++ b/dev-lang/cfortran/cfortran-4.4-r3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils + +DEB_PR="14" + +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}.diff.gz" + +SLOT="0" +LICENSE="LGPL-2" +KEYWORDS="~alpha ~amd64 ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos" +IUSE="examples" + +src_unpack() { + default + if use examples; then + tar xvzf "${S}"/cfortran.examples.tar.gz || die + mv eg examples || die + ln -sfn sz1.c examples/sz1/sz1.C || die + ln -sfn pz.c examples/pz/pz.C || die + fi +} + +src_prepare() { + epatch "${WORKDIR}"/${PN}_${PV}-${DEB_PR}.diff +} + +src_install() { + insinto /usr/include/cfortran + doins cfortran.h + + dosym cfortran/cfortran.h /usr/include/cfortran.h + + dodoc cfortran.doc debian/{NEWS,changelog,copyright} + + dohtml cfortran.html index.htm cfortest.c cfortex.f + + if use examples; then + insinto /usr/share/${PN} + doins -r "${WORKDIR}"/examples + fi +} |