diff options
Diffstat (limited to 'dev-libs/xml-fortran/xml-fortran-1.00-r1.ebuild')
-rw-r--r-- | dev-libs/xml-fortran/xml-fortran-1.00-r1.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/dev-libs/xml-fortran/xml-fortran-1.00-r1.ebuild b/dev-libs/xml-fortran/xml-fortran-1.00-r1.ebuild new file mode 100644 index 0000000..e62d406 --- /dev/null +++ b/dev-libs/xml-fortran/xml-fortran-1.00-r1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fortran-2 + +DESCRIPTION="Library and programs to access XML-files in Fortran" +HOMEPAGE="http://xml-fortran.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DEPEND="virtual/fortran" +RDEPEND="${DEPEND}" + +IUSE="static-libs doc examples" +S="${WORKDIR}/${PN}/" + +src_configure() { + cp "${FILESDIR}/makefile" src/ + sed -i "s|^FOPT.*|& ${FCFLAGS}|" src/makefile + sed -i "s|^\t\${FC} -shared |& ${LDFLAGS} |" src/makefile +} + +src_compile() { + cd src/ + emake -j1 || die +} + +src_install() { + cd src/ + # dobin xmlreader + # dobin tstparse + + dolib.so libxmlparse.so + use static-libs && dolib.a libxmlparse.a + insinto "usr/include/${PN}" + doins xmlparse.mod + + cd .. + dodoc CHANGES TODO + use doc && dodoc doc/*.pdf doc/*.html + docinto examples/ + use examples && dodoc examples/* +} |