aboutsummaryrefslogtreecommitdiff
blob: 767c7596a6adae34935f7cf9e69d3605385c41f5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit fortran-2 versionator

MPV=$(get_version_component_range 2-)

DESCRIPTION="Virtual Monte Carlo Geant3 implementation"
HOMEPAGE="http://root.cern.ch/root/vmc/VirtualMC.html"
SRC_URI="http://root.cern.ch/download/vmc/geant321+_vmc.${MPV}.tar.gz"

LICENSE="GPL-2"
SLOT="3"

KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="examples"

RDEPEND="
	sci-physics/root:=[pythia6]
	!sci-physics/geant:3"
DEPEND="${RDEPEND}"

S="${WORKDIR}/geant3"

src_install() {
	dolib.so lib/*/*.so
	insinto /usr/include/TGeant3
	doins TGeant3/TGeant3.h
	insinto /usr/include/geant321
	doins geant321/*.inc

	if use examples; then
		insinto /usr/shared/doc/${PF}
		doins -r examples
	fi
}