# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=5 inherit versionator MPV=$(get_version_component_range 2-) DESCRIPTION="Virtual Monte Carlo Geant4 implementation" HOMEPAGE="http://root.cern.ch/root/vmc/VirtualMC.html" SRC_URI="ftp://root.cern.ch/root/vmc/geant4_vmc.${MPV}.tar.gz" LICENSE="GPL-2" SLOT="4" KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" IUSE="doc examples vgm" RDEPEND=" sci-physics/root:= >=sci-physics/geant-4.9.6[opengl,geant3,examples?] /dev/null || die emake if use doc; then doxygen || die fi popd > /dev/null done } src_test() { cd examples || die emake ./run_suite.sh || die } src_install() { dolib.so lib/tgt_*/{libg4root,libgeant4vmc}.so doheader -r include/* dodoc README history version_number use doc && dohtml -r Geant4VMC.html doc/* if use examples; then insinto /usr/share/doc/${PF} emake -C examples clean doins -r examples fi }