blob: 4d4742dd15d85658b416d57260f77fe63172f130 (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
MYPN=TAUOLA
DESCRIPTION="Tau decay Monte Carlo generator"
HOMEPAGE="https://tauolapp.web.cern.ch/tauolapp/"
SRC_URI="https://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-text/doxygen[dot]
app-text/ghostscript-gpl
app-text/texlive
)
"
S="${WORKDIR}/${MYPN}"
PATCHES=(
"${FILESDIR}"/${PN}-1.1.3-tau-spinner-makefile.patch
)
src_configure() {
econf \
--without-mc-tester \
--without-pythia8 \
$(use_with hepmc hepmc "${EPREFIX}/usr") \
--without-hepmc3 \
$(use_with tau-spinner) \
$(use_with tau-spinner lhapdf "${EPREFIX}/usr")
}
src_compile() {
emake -j1
if use doc; then
cd "${S}/documentation/doxy_documentation" || die
default
cd "${S}/documentation/latex_documentation" || die
default
fi
}
src_install() {
emake DESTDIR="${ED}" install
if use doc; then
dodoc 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
}
|