diff options
Diffstat (limited to 'sci-physics/heppdt/heppdt-3.04.01-r2.ebuild')
-rw-r--r-- | sci-physics/heppdt/heppdt-3.04.01-r2.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/sci-physics/heppdt/heppdt-3.04.01-r2.ebuild b/sci-physics/heppdt/heppdt-3.04.01-r2.ebuild new file mode 100644 index 000000000000..8751a4c1512d --- /dev/null +++ b/sci-physics/heppdt/heppdt-3.04.01-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Data about each particle from the Review of Particle Properties" +HOMEPAGE="http://lcgapp.cern.ch/project/simu/HepPDT/" +SRC_URI="http://lcgapp.cern.ch/project/simu/HepPDT/download/HepPDT-${PV}.tar.gz" +S=${WORKDIR}/HepPDT-${PV} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="doc examples static-libs" + +src_prepare() { + default + # respect user flags + sed -i configure.ac -e '/AC_SUBST(AM_CXXFLAGS)/d' || die + # directories + sed -i data/Makefile.am -e 's:$(prefix)/data:$(datadir)/${PN}:g' || 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 +} |