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

/usr/portage/sci-physics/pythia/pythia-8.3.07-r1.ebuild 2023-10-09 14:52:35.260368496 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2022 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
......
13 13
HOMEPAGE="https://pythia.org/"
14 14
SRC_URI="https://pythia.org/download/${PN}${MV//./}/${MY_P}.tgz
15 15
	test? ( lhapdf? (
16
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/CT10.tar.gz
17
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/MRST2007lomod.tar.gz
18
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/NNPDF23_nlo_as_0119_qed_mc.tar.gz
19
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/NNPDF23_nnlo_as_0119_qed_mc.tar.gz
20
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/cteq66.tar.gz
21
		https://lhapdfsets.web.cern.ch/lhapdfsets/current/cteq6l1.tar.gz
22
		https://www.hepforge.org/downloads/lhapdf/pdfsets/v6.backup/${LHA_VER}/MRST2004qed.tar.gz
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 23
	) )"
24 24

  
25 25
SLOT="8"
26 26
LICENSE="GPL-2"
27 27
KEYWORDS="~amd64 ~x86"
28
IUSE="doc examples fastjet +hepmc3 hepmc2 lhapdf root test zlib"
28
IUSE="doc examples fastjet +hepmc lhapdf root test zlib"
29 29
RESTRICT="!test? ( test )"
30
REQUIRED_USE="
31
	?? ( hepmc3 hepmc2 )
32
"
33 30

  
34 31
RDEPEND="
35 32
	fastjet? ( sci-physics/fastjet )
36
	hepmc3? ( sci-physics/hepmc:3= )
37
	hepmc2? ( sci-physics/hepmc:2= )
33
	hepmc? ( sci-physics/hepmc:3= )
38 34
	lhapdf? ( sci-physics/lhapdf:= )
39 35
	zlib? ( sys-libs/zlib )"
40 36
# ROOT is used only when building related tests
......
57 53
}
58 54

  
59 55
src_prepare() {
60
	PYTHIADIR="/usr/share/Pythia8"
56
	PYTHIADIR="/usr/share/pythia8"
61 57
	EPYTHIADIR="${EPREFIX}${PYTHIADIR}"
62 58

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

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

  
136 131
	local tests="$(echo main{{01..32},37,38,61,62,73,80}.out)"
137
	use hepmc3 && tests+=" $(echo main{41,42,85,86}.out)"
138
	use hepmc3 && use lhapdf && tests+=" $(echo main{43,{87..89}}.out)"
132
	use hepmc && tests+=" $(echo main{41,42,85,86}.out)"
133
	use hepmc && use lhapdf && tests+=" $(echo main{43,{87..89}}.out)"
139 134
	use lhapdf && tests+=" $(echo main{51..54}.out)"
140 135
	use fastjet && tests+=" $(echo main{71,72}.out)"
141
	use fastjet && use hepmc3 && use lhapdf && tests+=" $(echo main{81..84}).out"
136
	use fastjet && use hepmc && use lhapdf && tests+=" $(echo main{81..84}).out"
142 137
	use root && tests+=" main91.out"
143 138
	# Disabled tests:
144 139
	# 33	needs PowHEG
......
161 156
	dolib.so lib/libpythia8.so
162 157
	use lhapdf && dolib.so lib/libpythia8lhapdf6.so
163 158
	insinto "${PYTHIADIR}"
164
	doins -r share/Pythia8/xmldoc share/Pythia8/pdfdata examples/Makefile.inc
159
	doins -r share/Pythia8/xmldoc examples/Makefile.inc
165 160

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