Diff pythia-8.3.12 with a pythia-9999

/usr/portage/sci-physics/pythia/pythia-9999.ebuild 2025-11-06 18:18:08.598166791 +0300
4 4
EAPI=8
5 5

  
6 6
PYTHON_COMPAT=( python3_{11..13} )
7
inherit toolchain-funcs python-single-r1
7
inherit toolchain-funcs python-single-r1 optfeature
8 8

  
9 9
MV=$(ver_cut 1-2)
10 10
MY_P="${PN}${PV//./}"
......
34 34

  
35 35
LICENSE="GPL-2"
36 36
SLOT="8"
37
IUSE="doc examples fastjet +hepmc3 hepmc2 lhapdf root test zlib python highfive mpich rivet" # evtgen mg5mes rivet powheg
37
IUSE="doc examples fastjet +hepmc3 hepmc2 lhapdf root test zlib python highfive mpich rivet static-libs" # evtgen mg5mes rivet powheg
38 38
RESTRICT="!test? ( test )"
39 39
REQUIRED_USE="
40 40
	?? ( hepmc3 hepmc2 )
......
52 52
		sci-libs/hdf5[cxx]
53 53
	)
54 54
	rivet? (
55
		sci-physics/rivet:*
55
		>=sci-physics/rivet-4:*
56 56
	)
57 57
	mpich? ( sys-cluster/mpich )
58 58
	python? ( ${PYTHON_DEPS} )
......
160 160
	use hepmc3 && tests+=" $(echo main{131..135})"
161 161
	use hepmc3 && use mpich && use highfive && tests+=" $(echo main136)"
162 162
	use lhapdf && tests+=" $(echo main{201..204})"
163
	use fastjet && tests+=" $(echo main{211..216})"
163
	use fastjet && tests+=" $(echo main{{211..214},216})" # 215 fails...
164 164
	use root && tests+=" main143"
165 165
	use hepmc3 && use lhapdf && tests+=" $(echo main{133,162})"
166 166
	use fastjet && use hepmc3 && use lhapdf && tests+=" $(echo main161)"
......
179 179
	dobin bin/pythia8-config
180 180
	doheader -r include/*
181 181
	dolib.so lib/libpythia8.so
182
	use static-libs && dolib.a lib/libpythia8.a
182 183
	use lhapdf && dolib.so lib/libpythia8lhapdf6.so
183 184
	insinto "${PYTHIADIR}"
184
	doins -r share/Pythia8/xmldoc share/Pythia8/pdfdata examples/Makefile.inc
185
	doins -r share/Pythia8/tunes share/Pythia8/xmldoc share/Pythia8/pdfdata examples/Makefile.inc
186
	dosym Pythia8 /usr/share/${PN}
185 187

  
186 188
	newenvd - 99pythia8 <<- _EOF_
187 189
		PYTHIA8DATA=${EPYTHIADIR}/xmldoc
......
194 196
		dodoc -r share/Pythia8/htmldoc/.
195 197
	fi
196 198
	if use examples; then
197
		# reuse system Makefile.inc
198
		rm examples/Makefile.inc || die
199 199
		sed -i "s|include Makefile.inc|include ${EPYTHIADIR}|" \
200 200
			examples/Makefile || die
201 201

  
202
		insinto /usr/share/${PN}
203 202
		doins -r examples
204 203
		docompress -x /usr/share/doc/${PF}/examples
205 204
	fi
......
212 211
	# cleanup
213 212
	unset PYTHIADIR EPYTHIADIR
214 213
}
214

  
215
pkg_postinstall() {
216
	optfeature "python interface awkward array support" dev-python/awkward
217
	optfeature "python interface vector support" dev-python/vector
218
}
Thank you!