diff options
author | Gerhard Bräunlich <wippbox@gmx.net> | 2016-11-12 16:32:14 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2016-11-14 08:24:34 +0100 |
commit | 0d13a852787db232a3699632b3f6d4004a1c1738 (patch) | |
tree | 85809ec8ab8533dd0e164db1b00d6a3dbc339bba /sci-physics | |
parent | sci-physics/looptools: Version bump to 2.13 (diff) | |
download | gentoo-0d13a852787db232a3699632b3f6d4004a1c1738.tar.gz gentoo-0d13a852787db232a3699632b3f6d4004a1c1738.tar.bz2 gentoo-0d13a852787db232a3699632b3f6d4004a1c1738.zip |
sci-physics/heppdt-3.04.01-r1: EAPI bump 4 -> 6
Package-Manager: portage-2.3.0
Closes: https://github.com/gentoo/gentoo/pull/2824
Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'sci-physics')
-rw-r--r-- | sci-physics/heppdt/heppdt-3.04.01-r1.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/sci-physics/heppdt/heppdt-3.04.01-r1.ebuild b/sci-physics/heppdt/heppdt-3.04.01-r1.ebuild new file mode 100644 index 000000000000..6680c2339e06 --- /dev/null +++ b/sci-physics/heppdt/heppdt-3.04.01-r1.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +inherit autotools + +MY_P=HepPDT-${PV} + +DESCRIPTION="Data about each particle from the Review of Particle Properties" +HOMEPAGE="http://lcgapp.cern.ch/project/simu/HepPDT/" +SRC_URI="${HOMEPAGE}/download/${MY_P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples static-libs" + +RDEPEND="" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + default + # respect user flags + sed -i \ + -e '/AC_SUBST(AM_CXXFLAGS)/d' \ + configure.ac || die + # directories + sed -i \ + -e 's:$(prefix)/data:$(datadir)/${PN}:g' \ + data/Makefile.am || die + eautoreconf +} + +src_configure() { + econf $(use_enable static-libs static) +} + +src_test() { + LD_LIBRARY_PATH="${S}/src/HepPDT:${S}/src/HepPID" \ + emake check MY_LD=-L SHEXT=so +} + +src_install() { + default + + if use doc; then + mv "${ED%/}"/usr/doc/* "${ED%/}"/usr/share/doc/${PF}/ || die + fi + if use examples; then + mv "${ED%/}"/usr/examples "${ED%/}"/usr/share/doc/${PF}/ || die + docompress -x /usr/share/doc/${PF}/examples + fi + rm -rf "${ED%/}"/usr/{doc,examples} || die +} |