blob: c9f1704f2fccc4d3c8535cd7cb5313de2495424b (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils
MYPN=TAUOLA
DESCRIPTION="tau decay Monte Carlo generator"
HOMEPAGE="http://tauolapp.web.cern.ch/tauolapp/"
SRC_URI="http://tauolapp.web.cern.ch/tauolapp/resources/${MYPN}.${PV}/${MYPN}.${PV}.tar.gz"
#HepMC interface is licensed under GPL, other code under CPC
LICENSE="CPC GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples hepmc tau-spinner"
RDEPEND="
hepmc? ( sci-physics/hepmc )
tau-spinner? ( sci-physics/lhapdf )
"
DEPEND="${RDEPEND}
doc? (
app-doc/doxygen
app-text/ghostscript-gpl
app-text/texlive )
"
S="${WORKDIR}/${MYPN}"
src_prepare() {
epatch \
"${FILESDIR}"/${P}-makefile.patch \
"${FILESDIR}"/${P}-tau-spinner-makefile.patch
}
src_configure() {
econf \
--without-mc-tester \
--without-pythia8 \
$(use_with hepmc hepmc "${EPREFIX}/usr") \
$(use_with tau-spinner) \
$(use_with tau-spinner lhapdf "${EPREFIX}/usr")
}
src_compile() {
emake
if use doc; then
cd "${S}/documentation/doxy_documentation" || die
emake
cd "${S}/documentation/latex_documentation" || die
emake
fi
}
src_install() {
emake PREFIX="${D}/usr" install
if use doc; then
dohtml documentation/doxy_documentation/html/*
dodoc documentation/latex_documentation/Tauola_interface_design.pdf
fi
if use examples; then
dodoc -r examples
use tau-spinner && docinto tau-spinner && dodoc -r TauSpinner/examples
fi
}
|