diff options
author | Sebastien Fabbro <bicatali@gentoo.org> | 2008-10-04 10:17:42 +0000 |
---|---|---|
committer | Sebastien Fabbro <bicatali@gentoo.org> | 2008-10-04 10:17:42 +0000 |
commit | 53299ac61de58fb101296a492962cd261e15d4b2 (patch) | |
tree | 340816a0a35011a83307e8d69884301c94f85041 /sci-physics/lhapdf | |
parent | alpha/ia64 stable (diff) | |
download | gentoo-2-53299ac61de58fb101296a492962cd261e15d4b2.tar.gz gentoo-2-53299ac61de58fb101296a492962cd261e15d4b2.tar.bz2 gentoo-2-53299ac61de58fb101296a492962cd261e15d4b2.zip |
Version bump, closing bug #239333
(Portage version: 2.2_rc11/cvs/Linux 2.6.25-gentoo-r7 x86_64)
Diffstat (limited to 'sci-physics/lhapdf')
-rw-r--r-- | sci-physics/lhapdf/ChangeLog | 7 | ||||
-rw-r--r-- | sci-physics/lhapdf/lhapdf-5.5.1.ebuild | 65 |
2 files changed, 71 insertions, 1 deletions
diff --git a/sci-physics/lhapdf/ChangeLog b/sci-physics/lhapdf/ChangeLog index 91e0b434fcc8..694293ac726b 100644 --- a/sci-physics/lhapdf/ChangeLog +++ b/sci-physics/lhapdf/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-physics/lhapdf # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v 1.1 2008/09/07 22:10:27 bicatali Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/ChangeLog,v 1.2 2008/10/04 10:17:42 bicatali Exp $ + +*lhapdf-5.5.1 (04 Oct 2008) + + 04 Oct 2008; Sébastien Fabbro <bicatali@gentoo.org> +lhapdf-5.5.1.ebuild: + Version bump, closing bug #239333 *lhapdf-5.5.0 (07 Sep 2008) diff --git a/sci-physics/lhapdf/lhapdf-5.5.1.ebuild b/sci-physics/lhapdf/lhapdf-5.5.1.ebuild new file mode 100644 index 000000000000..b890df1cacb3 --- /dev/null +++ b/sci-physics/lhapdf/lhapdf-5.5.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-physics/lhapdf/lhapdf-5.5.1.ebuild,v 1.1 2008/10/04 10:17:42 bicatali Exp $ + +inherit eutils fortran + +DESCRIPTION="Les Houches Parton Density Function unified library" +HOMEPAGE="http://projects.hepforge.org/lhapdf/" +SRC_URI="http://www.hepforge.org/archive/lhapdf/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="doc examples python" + +DEPEND="doc? ( app-doc/doxygen ) + python? ( dev-lang/swig )" +RDEPEND="" + +pkg_setup() { + local err + if use python && ! built_with_use dev-lang/swig python; then + eerror "You need USE=python in dev-lang/swig for python support." + err="${err} python" + fi + # this is needed for formulas even with html output only + if use doc && ! built_with_use app-doc/doxygen latex; then + eerror "You need USE=latex in app-doc/doxygen for docs." + err="${err} latex" + fi + + [ -z "${err}" ] || die "Unsatisfied dependencies -- needs manual fix" + + FORTRAN="gfortran ifc" + fortran_pkg_setup +} + +src_unpack() { + unpack ${A} + cd "${S}" + # do not create extra latex docs + sed -i \ + -e 's/GENERATE_LATEX.*=YES/GENERATE_LATEX = NO/g' \ + ccwrap/Doxyfile || die +} + +src_compile() { + econf \ + $(use_enable python pyext) \ + $(use_enable doc doxygen) \ + || die "econf failed" + emake || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + dodoc README TODO AUTHORS ChangeLog + + use doc && mv "${D}"/usr/share/${PN}/doc/html "${D}"/usr/share/doc/${PF} + rm -rf "${D}"/usr/share/${PN}/doc + if use examples; then + insinto /usr/share/doc/${PF} + doins -r examples || die + fi +} |