Сравнение pythia-8.3.07-r1 с pythia-9999

/usr/portage/sci-physics/pythia/pythia-9999.ebuild 2023-10-09 14:52:35.260368496 +0300
11 11

  
12 12
DESCRIPTION="Lund Monte Carlo high-energy physics event generator"
13 13
HOMEPAGE="https://pythia.org/"
14
SRC_URI="https://pythia.org/download/${PN}${MV//./}/${MY_P}.tgz
15
	test? ( lhapdf? (
16
		https://www.hepforge.org/archive/lhapdf/pdfsets/v6.backup/${LHA_VER}/CT10.tar.gz
17
		https://www.hepforge.org/archive/lhapdf/pdfsets/v6.backup/${LHA_VER}/MRST2007lomod.tar.gz
18
		https://www.hepforge.org/archive/lhapdf/pdfsets/v6.backup/${LHA_VER}/NNPDF23_nlo_as_0119_qed_mc.tar.gz
19
		https://www.hepforge.org/archive/lhapdf/pdfsets/v6.backup/${LHA_VER}/NNPDF23_nnlo_as_0119_qed_mc.tar.gz
20
		https://www.hepforge.org/archive/lhapdf/pdfsets/v6.backup/${LHA_VER}/cteq66.tar.gz
21
		https://www.hepforge.org/archive/lhapdf/pdfsets/v6.backup/${LHA_VER}/cteq6l1.tar.gz
22
		https://www.hepforge.org/archive/lhapdf/pdfsets/v6.backup/${LHA_VER}/unvalidated/MRST2004qed.tar.gz
23
	) )"
14

  
15
# just data
16
SRC_URI="test? ( lhapdf? (
17
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/CT10.tar.gz
18
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/MRST2007lomod.tar.gz
19
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/NNPDF23_nlo_as_0119_qed_mc.tar.gz
20
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/NNPDF23_nnlo_as_0119_qed_mc.tar.gz
21
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/cteq66.tar.gz
22
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/cteq6l1.tar.gz
23
		https://www.hepforge.org/downloads/lhapdf/pdfsets/v6.backup/${LHA_VER}/MRST2004qed.tar.gz
24
		) )"
25

  
26
if [[ ${PV} == 9999 ]]; then
27
	inherit git-r3
28
	EGIT_REPO_URI="https://gitlab.com/Pythia8/releases"
29
else
30
	SRC_URI="https://pythia.org/download/${PN}${MV//./}/${MY_P}.tgz
31
	$SRC_URI"
32
	KEYWORDS="~amd64 ~x86"
33
	S="${WORKDIR}/${MY_P}"
34
fi
24 35

  
25 36
SLOT="8"
26 37
LICENSE="GPL-2"
27
KEYWORDS="~amd64 ~x86"
28
IUSE="doc examples fastjet +hepmc lhapdf root test zlib"
38
IUSE="doc examples fastjet +hepmc3 hepmc2 lhapdf root test zlib"
29 39
RESTRICT="!test? ( test )"
40
REQUIRED_USE="
41
	?? ( hepmc3 hepmc2 )
42
"
30 43

  
31 44
RDEPEND="
32 45
	fastjet? ( sci-physics/fastjet )
33
	hepmc? ( sci-physics/hepmc:3= )
46
	hepmc3? ( sci-physics/hepmc:3= )
47
	hepmc2? ( sci-physics/hepmc:2= )
34 48
	lhapdf? ( sci-physics/lhapdf:= )
35 49
	zlib? ( sys-libs/zlib )"
36 50
# ROOT is used only when building related tests
......
43 57
	"${FILESDIR}"/${PN}8209-root-noninteractive.patch
44 58
)
45 59

  
46
S="${WORKDIR}/${MY_P}"
47

  
48 60
pkg_pretend() {
49 61
	if use root && ! use test; then
50 62
		ewarn "ROOT support will only affect examples code build during test stage."
......
53 65
}
54 66

  
55 67
src_prepare() {
56
	PYTHIADIR="/usr/share/pythia8"
68
	PYTHIADIR="/usr/share/Pythia8"
57 69
	EPYTHIADIR="${EPREFIX}${PYTHIADIR}"
58 70

  
59 71
	default
......
105 117
		--arch=Linux \
106 118
		--cxx="$(tc-getCXX)" \
107 119
		--prefix="${EPREFIX}/usr" \
108
		--prefix-lib="$(get_libdir)" \
120
		--prefix-lib="${EPREFIX}/usr/$(get_libdir)" \
109 121
		--prefix-share="${EPYTHIADIR}" \
110 122
		$(usex fastjet "--with-fastjet3" "") \
111 123
		$(usex zlib "--with-gzip" "") \
112
		$(usex hepmc "--with-hepmc3" "") \
124
		$(use_with hepmc3) \
125
		$(use_with hepmc2) \
113 126
		$(usex lhapdf "--with-lhapdf6
114 127
			--with-lhapdf6-plugin=LHAPDF6.h
115 128
			--with-lhapdf6-lib=${EPREFIX}/usr/$(get_libdir)" "") \
......
120 133

  
121 134
	# fix pythia config script
122 135
	sed -i \
123
		-e 's|pythia8/examples/Makefile.inc|pythia8/Makefile.inc|' \
136
		-e 's|Pythia8/examples/Makefile.inc|Pythia8/Makefile.inc|' \
124 137
		-e 's|LINE%=|LINE%%=|' \
125 138
		bin/pythia8-config || die
126 139
}
......
129 142
	cd examples || die
130 143

  
131 144
	local tests="$(echo main{{01..32},37,38,61,62,73,80}.out)"
132
	use hepmc && tests+=" $(echo main{41,42,85,86}.out)"
133
	use hepmc && use lhapdf && tests+=" $(echo main{43,{87..89}}.out)"
145
	use hepmc3 && tests+=" $(echo main{41,42,85,86}.out)"
146
	use hepmc3 && use lhapdf && tests+=" $(echo main{43,{87..89}}.out)"
134 147
	use lhapdf && tests+=" $(echo main{51..54}.out)"
135 148
	use fastjet && tests+=" $(echo main{71,72}.out)"
136
	use fastjet && use hepmc && use lhapdf && tests+=" $(echo main{81..84}).out"
149
	use fastjet && use hepmc3 && use lhapdf && tests+=" $(echo main{81..84}).out"
137 150
	use root && tests+=" main91.out"
138 151
	# Disabled tests:
139 152
	# 33	needs PowHEG
......
156 169
	dolib.so lib/libpythia8.so
157 170
	use lhapdf && dolib.so lib/libpythia8lhapdf6.so
158 171
	insinto "${PYTHIADIR}"
159
	doins -r share/Pythia8/xmldoc examples/Makefile.inc
172
	doins -r share/Pythia8/xmldoc share/Pythia8/pdfdata examples/Makefile.inc
160 173

  
161 174
	newenvd - 99pythia8 <<- _EOF_
162 175
		PYTHIA8DATA=${EPYTHIADIR}/xmldoc
Спасибо!