blob: 79b474c02c78f729bbf06e47ae2be2f127e50fcc (
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
72
73
74
75
76
|
# Copyright 1999-2013 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=""
#HepMC interface is licensed under GPL, other code under CPC
LICENSE="CPC GPL-2+"
SLOT="0"
KEYWORDS=""
IUSE="doc examples hepmc tau-spinner"
RDEPEND="
hepmc? ( sci-physics/hepmc )
tau-spinner? ( sci-physics/lhapdf )
"
DEPEND="${RDEPEND}
net-misc/wget
doc? (
app-doc/doxygen
app-text/ghostscript-gpl
app-text/texlive )
"
S="${WORKDIR}/${MYPN}"
src_unpack() {
#there is no public svn, just generated tarball, so fetch it
wget "http://tauolapp.web.cern.ch/tauolapp/resources/${MYPN}.development.version/${MYPN}.development.version.tar.gz" || die
unpack "./${MYPN}.development.version.tar.gz"
}
src_prepare() {
epatch "${FILESDIR}/${PN}-1.1.3-makefile.patch" "${FILESDIR}/${PN}-1.1.3-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 -j1
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
}
|