summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/geant4_vmc/geant4_vmc-6.3_p2-r1.ebuild2
-rw-r--r--sci-physics/geant4_vmc/geant4_vmc-6.5.ebuild2
-rw-r--r--sci-physics/geant4_vmc/geant4_vmc-6.6_p1.ebuild2
-rw-r--r--sci-physics/geant4_vmc/geant4_vmc-9999.ebuild2
-rw-r--r--sci-physics/hepmc/Manifest1
-rw-r--r--sci-physics/hepmc/hepmc-3.3.0.ebuild63
-rw-r--r--sci-physics/pythia/Manifest1
-rw-r--r--sci-physics/pythia/pythia-8.3.11.ebuild188
-rw-r--r--sci-physics/root/Manifest1
-rw-r--r--sci-physics/root/root-6.32.02.ebuild332
-rw-r--r--sci-physics/root/root-9999.ebuild17
-rw-r--r--sci-physics/vgm/files/vgm-5.2-r1-root-6.32-TesselatedSolid.patch31
-rw-r--r--sci-physics/vgm/vgm-5.2-r1.ebuild4
13 files changed, 627 insertions, 19 deletions
diff --git a/sci-physics/geant4_vmc/geant4_vmc-6.3_p2-r1.ebuild b/sci-physics/geant4_vmc/geant4_vmc-6.3_p2-r1.ebuild
index aa30ec7126ab..f4dbca031918 100644
--- a/sci-physics/geant4_vmc/geant4_vmc-6.3_p2-r1.ebuild
+++ b/sci-physics/geant4_vmc/geant4_vmc-6.3_p2-r1.ebuild
@@ -27,7 +27,7 @@ RDEPEND="
>=sci-physics/geant-4.11.1:=[opengl,geant3?]
sci-physics/root:=
>=sci-physics/vmc-2.0:=
- vgm? ( >=sci-physics/vgm-5.1:= )"
+ vgm? ( >=sci-physics/vgm-5.1:=[geant4,root] )"
DEPEND="${RDEPEND}
test? ( >=sci-physics/geant-4.11.1:=[gdml] )"
BDEPEND="doc? ( app-text/doxygen[dot] )"
diff --git a/sci-physics/geant4_vmc/geant4_vmc-6.5.ebuild b/sci-physics/geant4_vmc/geant4_vmc-6.5.ebuild
index aa30ec7126ab..f4dbca031918 100644
--- a/sci-physics/geant4_vmc/geant4_vmc-6.5.ebuild
+++ b/sci-physics/geant4_vmc/geant4_vmc-6.5.ebuild
@@ -27,7 +27,7 @@ RDEPEND="
>=sci-physics/geant-4.11.1:=[opengl,geant3?]
sci-physics/root:=
>=sci-physics/vmc-2.0:=
- vgm? ( >=sci-physics/vgm-5.1:= )"
+ vgm? ( >=sci-physics/vgm-5.1:=[geant4,root] )"
DEPEND="${RDEPEND}
test? ( >=sci-physics/geant-4.11.1:=[gdml] )"
BDEPEND="doc? ( app-text/doxygen[dot] )"
diff --git a/sci-physics/geant4_vmc/geant4_vmc-6.6_p1.ebuild b/sci-physics/geant4_vmc/geant4_vmc-6.6_p1.ebuild
index bd0afea138b9..a55c3bef5369 100644
--- a/sci-physics/geant4_vmc/geant4_vmc-6.6_p1.ebuild
+++ b/sci-physics/geant4_vmc/geant4_vmc-6.6_p1.ebuild
@@ -27,7 +27,7 @@ RDEPEND="
>=sci-physics/geant-4.11.1:=[opengl,geant3?]
sci-physics/root:=
>=sci-physics/vmc-2.0:=
- vgm? ( >=sci-physics/vgm-5.1:= )"
+ vgm? ( >=sci-physics/vgm-5.1:=[geant4,root] )"
DEPEND="${RDEPEND}
test? ( >=sci-physics/geant-4.11.1:=[gdml] )"
BDEPEND="doc? ( app-text/doxygen[dot] )"
diff --git a/sci-physics/geant4_vmc/geant4_vmc-9999.ebuild b/sci-physics/geant4_vmc/geant4_vmc-9999.ebuild
index 34671a5023e8..a89d55af53cd 100644
--- a/sci-physics/geant4_vmc/geant4_vmc-9999.ebuild
+++ b/sci-physics/geant4_vmc/geant4_vmc-9999.ebuild
@@ -27,7 +27,7 @@ RDEPEND="
sci-physics/geant:=[opengl,geant3?]
sci-physics/root:=
sci-physics/vmc:=
- vgm? ( sci-physics/vgm:= )"
+ vgm? ( sci-physics/vgm:=[geant4,root] )"
DEPEND="${RDEPEND}
test? ( sci-physics/geant:=[gdml] )"
BDEPEND="doc? ( app-text/doxygen[dot] )"
diff --git a/sci-physics/hepmc/Manifest b/sci-physics/hepmc/Manifest
index 30595c7ac5f7..62e31256e57e 100644
--- a/sci-physics/hepmc/Manifest
+++ b/sci-physics/hepmc/Manifest
@@ -1,4 +1,5 @@
DIST HepMC3-3.2.6.tar.gz 9344806 BLAKE2B da478157ad73915d77851e9da7b236a052cb32e98103c2701f874a81ed62cbc4397489e3a2f64cd25a46c9704ccfcaac4d854357251d8bbb4120cbc1f5149374 SHA512 d8a50f081db109c9c18e4aaee60230be062eaa2947dadfb14759649eb1c504975802b2c822b1fe024d4e73f703e9f399161fa4fe38b526722dda33c2ff2e8fab
DIST HepMC3-3.2.7.tar.gz 9345591 BLAKE2B e053b9d91552e1e969742a4e3295e233afba1a9f37bc33474f9b8faeda69f3dccddf3fa0aa7d23e6620df1a321c2d8eab51fce08da6fb8f68de130fc5f90ece9 SHA512 c4072fe4e3d80b90f5e5437781d2c7e1439b777318eecd1202cf7611d1ba2910394d72280873c6f897c43f2dd274ebb7cb77f43b223efb13c823aeaef6ba0e71
+DIST HepMC3-3.3.0.tar.gz 9341637 BLAKE2B ce02d0c3b103c634bcde80040ae82682a8f0b622c6dd0ed97cf915ef0b026976ed852c69a469d7a27a39746ab9fb660b307c2fe11b4844a42973f8590e828296 SHA512 2d99880a99ec028013622460580409ecc99e3395cb2acef51fa4c6d629f42ee4044e78048314fd21be6a8b462ea01a4e161bc65fa279d6468325fc9e5ef110fb
DIST HepMC3-e05d32ebac8705c0097e9e7d00ce815a205110db.tar.gz 9346161 BLAKE2B 9304d329332c2d4eb0ef6526a3308aecd29a38c569d3ba57d94767fd38ad052514f75a7a90f301c54185230d7693a67e48d59b66b12f42626a7ef900e309f743 SHA512 45f9edc6c56f9f8494b416bff147dccca64c52a90e0e169ede560ae8cf9e9255258b7af1586dd1c856f4010c22b2e668511bab160487a3ba802b629d03015e55
DIST hepmc2.06.11.tgz 4893958 BLAKE2B ac8eef250cb330a167c9e0f4bd1aaf8df82e0ffec3557ab5cdaf8bc5b0b7333d6a45f73710ce63abab52d2c5758d5663c15c2a7c940a09504b3ef2fd4517aa0b SHA512 81c100d4931e0e4de62c8ffd18cc06e7996a642fecc092892988bdc0dd0dc3c0f5b336e85f09ceb8f5e0e09456775ae5928d37daf28d82923476089bc0e910f2
diff --git a/sci-physics/hepmc/hepmc-3.3.0.ebuild b/sci-physics/hepmc/hepmc-3.3.0.ebuild
new file mode 100644
index 000000000000..788d8d48adf5
--- /dev/null
+++ b/sci-physics/hepmc/hepmc-3.3.0.ebuild
@@ -0,0 +1,63 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..12} )
+inherit fortran-2 cmake python-single-r1
+
+MYP=HepMC3-${PV}
+
+DESCRIPTION="Event Record for Monte Carlo Generators"
+HOMEPAGE="https://hepmc.web.cern.ch/hepmc/"
+
+if [[ ${PV} == 9999 ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://gitlab.cern.ch/hepmc/HepMC3"
+else
+ SRC_URI="https://hepmc.web.cern.ch/hepmc/releases/${MYP}.tar.gz"
+ S="${WORKDIR}/${MYP}"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="3"
+IUSE="doc test examples python root"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="
+ python? (
+ ${PYTHON_DEPS}
+ $(python_gen_cond_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ ')
+ )
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+ root? ( sci-physics/root:= )
+ doc? (
+ app-text/doxygen[dot]
+ dev-texlive/texlive-latex
+ dev-texlive/texlive-latexextra
+ dev-texlive/texlive-latexrecommended
+ )
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DHEPMC3_ENABLE_ROOTIO=$(usex root ON OFF)
+ -DHEPMC3_ENABLE_PYTHON=$(usex python ON OFF)
+ -DHEPMC3_ENABLE_TEST=$(usex test ON OFF)
+ -DHEPMC3_BUILD_DOCS=$(usex doc ON OFF)
+ -DHEPMC3_BUILD_EXAMPLES=$(usex examples ON OFF)
+ )
+ cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+ use examples && docompress -x /usr/share/doc/${PF}/examples
+ use python && python_optimize
+}
diff --git a/sci-physics/pythia/Manifest b/sci-physics/pythia/Manifest
index f3de451fdba1..79a364ae3853 100644
--- a/sci-physics/pythia/Manifest
+++ b/sci-physics/pythia/Manifest
@@ -12,3 +12,4 @@ DIST pythia6428-split.tgz 689807 BLAKE2B 5acb53a75db22509e3def7d0a2fa31672e50f8d
DIST pythia8245.tgz 23605527 BLAKE2B 1007c2f8b50a115d29fe1b0363a187feca717cb2147ef759e999aeaf51ac457e9edbbdc78be47ed57d008e572b99fb327823249b31596241ee72ff587b81c8f1 SHA512 1cc579581475bfe2381059cc4789069041fa63649c86353f65cc2baa12c85142fb6c087e1607c2004b6284a21cada30a172da9853a71afa01c787272a7534574
DIST pythia8307.tgz 26016414 BLAKE2B 0253309d71ca4e46183de80396c3a226d072ea2e8aeaf87da33994b3303017a6ca567f6731902aba43c20fec2c0aeace0728f2ce725f9221f161a70055fa6043 SHA512 63e7a3e76f8bfe0cd7b34ef523d8bbcfa50ee780c8437384ef7eb208f0f682481b0166673647db98468baeb6df855fdbf0cbb1509dcc5eda39c90f3f3461fd2a
DIST pythia8309.tgz 28407620 BLAKE2B 0ef226e2e65829952d670b57c24bff2108d916ca547233041e97dabb81d9616be3e404da7225f9cb4a2c9773c0c22939d813eaed92560e01c6fbe37e4690c232 SHA512 c7d99a9a1f7bf1441532720667ab224283b866e7f3ea9e730c839ac62e3b8b9e5c01471fb94a4a48d481635544e4ed230796a710531650bfffde96f0f78590bf
+DIST pythia8311.tgz 28757044 BLAKE2B 93a7cc26682bc6418f85e41def94a8cdfe39e180fa9fec2a6e47e9237fc2d42800dca2b76f54e2d56cb1d3a2b9a0008baf7b77610aabac2a6505fe08b2b4ffe2 SHA512 e0ae6cb444f11f3e3cf84d738b8c135f07ceafb28911b855bb63e3c596c5b9fd312a1f4ff78a098b707bfbb8f517a46177c4dbc57b4882cf03b12b0be49e2885
diff --git a/sci-physics/pythia/pythia-8.3.11.ebuild b/sci-physics/pythia/pythia-8.3.11.ebuild
new file mode 100644
index 000000000000..291b7e736a10
--- /dev/null
+++ b/sci-physics/pythia/pythia-8.3.11.ebuild
@@ -0,0 +1,188 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+MV=$(ver_cut 1-2)
+MY_P="${PN}${PV//./}"
+LHA_VER="6.2.1"
+
+DESCRIPTION="Lund Monte Carlo high-energy physics event generator"
+HOMEPAGE="https://pythia.org/"
+SRC_URI="https://pythia.org/download/${PN}${MV//./}/${MY_P}.tgz
+ test? ( lhapdf? (
+ https://lhapdfsets.web.cern.ch/lhapdfsets/current/CT10.tar.gz
+ https://lhapdfsets.web.cern.ch/lhapdfsets/current/MRST2007lomod.tar.gz
+ https://lhapdfsets.web.cern.ch/lhapdfsets/current/NNPDF23_nlo_as_0119_qed_mc.tar.gz
+ https://lhapdfsets.web.cern.ch/lhapdfsets/current/NNPDF23_nnlo_as_0119_qed_mc.tar.gz
+ https://lhapdfsets.web.cern.ch/lhapdfsets/current/cteq66.tar.gz
+ https://lhapdfsets.web.cern.ch/lhapdfsets/current/cteq6l1.tar.gz
+ https://www.hepforge.org/downloads/lhapdf/pdfsets/v6.backup/${LHA_VER}/MRST2004qed.tar.gz
+ ) )
+"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="GPL-2"
+SLOT="8"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples fastjet +hepmc3 hepmc2 lhapdf root test zlib"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="
+ ?? ( hepmc3 hepmc2 )
+"
+
+RDEPEND="
+ fastjet? ( sci-physics/fastjet )
+ hepmc3? ( sci-physics/hepmc:3= )
+ hepmc2? ( sci-physics/hepmc:2= )
+ lhapdf? ( sci-physics/lhapdf:= )
+ zlib? ( sys-libs/zlib )"
+DEPEND="${RDEPEND}"
+# ROOT is used only when building related tests
+BDEPEND="
+ test? (
+ root? ( sci-physics/root:= )
+ )
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}8209-root-noninteractive.patch
+)
+
+pkg_pretend() {
+ if use root && ! use test; then
+ ewarn "ROOT support will only affect examples code build during test stage."
+ ewarn "Since you have tests disabled, this is a no-op."
+ fi
+}
+
+src_prepare() {
+ PYTHIADIR="/usr/share/Pythia8"
+ EPYTHIADIR="${EPREFIX}${PYTHIADIR}"
+
+ default
+ # set datadir for xmldor in include file
+ sed -i \
+ -e "s|../share/Pythia8/xmldoc|${EPYTHIADIR}/xmldoc|" \
+ include/Pythia8/Pythia.h || die
+ # respect libdir, prefix, flags
+ sed -i \
+ -e "s|/lib|/$(get_libdir)|g" \
+ -e "s|/usr|${EPREFIX}/usr|g" \
+ -e "s|-O2|${CXXFLAGS}|g" \
+ -e "s|Cint|Core|g" \
+ configure || die
+ # we use lhapdf6 instead of lhapdf5
+ # some PDFs changed, use something similar
+ sed -i \
+ -e "s|LHAPDF5|LHAPDF6|g" \
+ -e "s|\.LHgrid||g" \
+ -e "s|\.LHpdf||g" \
+ -e "s|MRST2001lo|MRST2007lomod|g" \
+ -e "s|cteq6ll|cteq6l1|g" \
+ -e "s|cteq6m|cteq66|g" \
+ examples/*.{cc,cmnd} || die
+ # After lhapdf5->6 migration PDFs are identical within ~1/1000
+ # https|//www.hepforge.org/archive/lhapdf/pdfsets/6.1/README
+ sed -i \
+ -e "s|1e-8|3e-1|g" \
+ -e "s|nlo_as_0119_qed|nlo_as_0119_qed_mc|g" \
+ -e "s|xmldoc|share/Pythia8/xmldoc|g" \
+ examples/main54.cc || die
+ # ask cflags from root
+ sed -i "s|root-config|root-config --cflags|g" examples/Makefile || die
+
+ sed -i 's|libpythia8\.a|libpythia8$(LIB_SUFFIX)|g' \
+ examples/Makefile || die
+}
+
+# TODO: the following optional packages are out of Gentoo tree:
+# - EvtGen http://atlas-computing.web.cern.ch/atlas-computing/links/externalDirectory/EvtGen/
+# - PowHEG http://powhegbox.mib.infn.it/
+# - ProMC https://github.com/Argonne-National-Laboratory/ProMC/
+src_configure() {
+ # homemade configure script
+ local -x CXX="$(tc-getCXX) ${CXXFLAGS} ${LDFLAGS}"
+ ./configure \
+ --arch=Linux \
+ --prefix="${EPREFIX}/usr" \
+ --prefix-lib="${EPREFIX}/usr/$(get_libdir)" \
+ --prefix-share="${EPYTHIADIR}" \
+ $(usex fastjet "--with-fastjet3" "") \
+ $(usex zlib "--with-gzip" "") \
+ $(use_with hepmc3) \
+ $(use_with hepmc2) \
+ $(usex lhapdf "--with-lhapdf6
+ --with-lhapdf6-plugin=LHAPDF6.h
+ --with-lhapdf6-lib=${EPREFIX}/usr/$(get_libdir)" "") \
+ $(usex root "--with-root
+ --with-root-include=${EPREFIX}/usr/include/root
+ --with-root-lib=${EPREFIX}/usr/$(get_libdir)/root" "") \
+ || die
+
+ # fix pythia config script
+ sed -i \
+ -e 's|Pythia8/examples/Makefile.inc|Pythia8/Makefile.inc|' \
+ -e "s|CFG_FILE=.*|CFG_FILE=${EPYTHIADIR}/Makefile.inc|" \
+ -e 's|LINE%=|LINE%%=|' \
+ bin/pythia8-config || die
+}
+
+src_test() {
+ cd examples || die
+
+ local tests="$(echo main{{01..32},37,38,61,62,73,80}.out)"
+ use hepmc3 && tests+=" $(echo main{41,42,85,86}.out)"
+ use hepmc3 && use lhapdf && tests+=" $(echo main{43,{87..89}}.out)"
+ use lhapdf && tests+=" $(echo main{51..54}.out)"
+ use fastjet && tests+=" $(echo main{71,72}.out)"
+ use fastjet && use hepmc3 && use lhapdf && tests+=" $(echo main{81..84}).out"
+ use root && tests+=" main91.out"
+ # Disabled tests:
+ # 33 needs PowHEG
+ # 46 needs ProMC
+ # 48 needs EvtGen
+ # 92 generated ROOT dictionary is badly broken
+
+ # use emake for parallel instead of long runmains
+ LD_LIBRARY_PATH="${S}/$(get_libdir):${LD_LIBRARY_PATH}" \
+ PYTHIA8DATA="../share/Pythia8/xmldoc/" \
+ LHAPDF_DATA_PATH="${WORKDIR}" \
+ emake ${tests}
+ emake clean
+}
+
+src_install() {
+ # make install is too broken, much easier to install manually
+ dobin bin/pythia8-config
+ doheader -r include/*
+ dolib.so lib/libpythia8.so
+ use lhapdf && dolib.so lib/libpythia8lhapdf6.so
+ insinto "${PYTHIADIR}"
+ doins -r share/Pythia8/xmldoc share/Pythia8/pdfdata examples/Makefile.inc
+
+ newenvd - 99pythia8 <<- _EOF_
+ PYTHIA8DATA=${EPYTHIADIR}/xmldoc
+ _EOF_
+
+ dodoc AUTHORS GUIDELINES README
+ if use doc; then
+ dodoc -r share/Pythia8/pdfdoc/.
+ dodoc -r share/Pythia8/htmldoc/.
+ fi
+ if use examples; then
+ # reuse system Makefile.inc
+ rm examples/Makefile.inc || die
+ sed -i "s|include Makefile.inc|include ${EPYTHIADIR}|" \
+ examples/Makefile || die
+
+ insinto /usr/share/${PN}
+ doins -r examples
+ docompress -x /usr/share/doc/${PF}/examples
+ fi
+
+ # cleanup
+ unset PYTHIADIR EPYTHIADIR
+}
diff --git a/sci-physics/root/Manifest b/sci-physics/root/Manifest
index 80009b14b3e7..035a25a69923 100644
--- a/sci-physics/root/Manifest
+++ b/sci-physics/root/Manifest
@@ -1,2 +1,3 @@
DIST root_v6.28.12.source.tar.gz 185351881 BLAKE2B 623897580edaf91870be8f894df1a36582f9d0e066dcf025fa9143ee9e30100b8b1bc952659f44f87af78b0815cb1cef602c8620a61d5abad015eb74ac3b62fb SHA512 b8b3d918245340ef4657c96580227a74d11042c2f2ed58e33946b8b42ed7d1acae9ff3ec8f537c725bd527adf7e386bbeab40be1b535bb3008a3cad3f8d56cfc
DIST root_v6.30.06.source.tar.gz 184791201 BLAKE2B 02830a683971fd55578dad6daf513e947ff9630af919c5f95af33959c9e99bcb01d9db3c589e037b7af56c2689f3085ca69e4353e9ea2a4648d98fa12145ccea SHA512 4ebdb1bd610b3611e2c9bdb776dce2efdb243c41558bde42961548eea751df85aad66f30f7c1e99d97024bf581b727d75710a67b6e5e630131fc3fdc4bdfb3bf
+DIST root_v6.32.02.source.tar.gz 192892722 BLAKE2B b1a3ad870a064158351425d11b385366d5133dcc861b8b9ef8a692e45cad33361fb2e08eb94f1cc6d2eab13cf0632f0e4dac5694b129d64a37fd31d7aa695d9c SHA512 d3869ddb49a8afc753c144f1a5e09010ad7c1980ef2e13d7379ce25b19152ac83c660c3e21212cf70e2afb9c308cff96e320b93e029284d9480a5a79e7e2a24b
diff --git a/sci-physics/root/root-6.32.02.ebuild b/sci-physics/root/root-6.32.02.ebuild
new file mode 100644
index 000000000000..fa797d38a0aa
--- /dev/null
+++ b/sci-physics/root/root-6.32.02.ebuild
@@ -0,0 +1,332 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+# ninja does not work due to fortran
+CMAKE_MAKEFILE_GENERATOR=emake
+FORTRAN_NEEDED="fortran"
+PYTHON_COMPAT=( python3_{9..12} )
+
+inherit cmake cuda flag-o-matic fortran-2 python-single-r1 toolchain-funcs
+
+DESCRIPTION="C++ data analysis framework and interpreter from CERN"
+HOMEPAGE="https://root.cern"
+LICENSE="LGPL-2.1 freedist MSttfEULA LGPL-3 libpng UoI-NCSA"
+
+IUSE="+X aqua +asimage cuda cudnn +davix debug +examples fits fftw fortran
+ +gdml graphviz +gsl +http jupyter libcxx +minuit mpi mysql odbc +opengl
+ postgres pythia8 +python qt5 qt6 R +roofit +root7 shadow sqlite +ssl
+ +tbb test +tmva +unuran uring vc +xml xrootd"
+
+if [[ ${PV} =~ "9999" ]] ; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/root-project/root.git"
+ if [[ ${PV} == "9999" ]]; then
+ SLOT="6/9999"
+ else
+ SLOT="6/$(ver_cut 1-3)"
+ EGIT_BRANCH="v$(ver_cut 1)-$(ver_cut 2)-00-patches"
+ fi
+else
+ SLOT="6/$(ver_cut 1-3)"
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://root.cern/download/${PN}_v${PV}.source.tar.gz"
+fi
+
+RESTRICT="test"
+PROPERTIES="test_network"
+
+REQUIRED_USE="
+ cuda? ( tmva )
+ cudnn? ( cuda )
+ !X? ( !asimage !opengl !qt5 !qt6 )
+ davix? ( ssl xml )
+ jupyter? ( python )
+ python? ( ${PYTHON_REQUIRED_USE} )
+ qt5? ( root7 http )
+ qt6? ( root7 http )
+ roofit? ( minuit )
+ tmva? ( gsl python )
+ uring? ( root7 )
+"
+
+CDEPEND="
+ app-arch/lz4
+ app-arch/zstd
+ app-arch/xz-utils
+ fortran? ( dev-lang/cfortran )
+ dev-cpp/nlohmann_json
+ dev-libs/libpcre:3
+ dev-libs/xxhash
+ media-fonts/dejavu
+ media-libs/freetype:2
+ media-libs/libpng:0=
+ virtual/libcrypt:=
+ sys-libs/ncurses:=
+ sys-libs/zlib
+ X? (
+ x11-libs/libX11:0
+ x11-libs/libXext:0
+ x11-libs/libXft:0
+ x11-libs/libXpm:0
+ opengl? (
+ media-libs/ftgl:0=
+ media-libs/glew:0=
+ virtual/opengl
+ virtual/glu
+ x11-libs/gl2ps:0=
+ )
+ qt5? (
+ dev-qt/qtcore:5
+ dev-qt/qtwebengine:5[widgets]
+ )
+ qt6? (
+ dev-qt/qtbase:6
+ dev-qt/qtwebengine:6[widgets]
+ )
+ )
+ cuda? ( >=dev-util/nvidia-cuda-toolkit-9.0 )
+ cudnn? ( dev-libs/cudnn )
+ davix? ( net-libs/davix )
+ fftw? ( sci-libs/fftw:3.0= )
+ fits? ( sci-libs/cfitsio:0= )
+ graphviz? ( media-gfx/graphviz )
+ gsl? ( sci-libs/gsl:= )
+ http? ( dev-libs/fcgi:0= )
+ libcxx? ( sys-libs/libcxx )
+ unuran? ( sci-mathematics/unuran:0= )
+ minuit? ( !sci-libs/minuit )
+ mpi? ( virtual/mpi[fortran?] )
+ mysql? ( dev-db/mysql-connector-c )
+ odbc? (
+ || (
+ dev-db/libiodbc
+ dev-db/unixODBC
+ )
+ )
+ postgres? ( dev-db/postgresql:= )
+ pythia8? ( sci-physics/pythia:8 )
+ python? ( ${PYTHON_DEPS} )
+ R? ( dev-lang/R )
+ shadow? ( sys-apps/shadow )
+ sqlite? ( dev-db/sqlite:3 )
+ ssl? ( dev-libs/openssl:0= )
+ tbb? ( dev-cpp/tbb:= )
+ tmva? (
+ $(python_gen_cond_dep '
+ dev-python/numpy[${PYTHON_USEDEP}]
+ ')
+ )
+ uring? ( sys-libs/liburing:= )
+ vc? ( >=dev-libs/vc-1.4.4:= )
+ xml? ( dev-libs/libxml2:2= )
+ xrootd? ( net-libs/xrootd:0= )
+"
+
+DEPEND="${CDEPEND}
+ virtual/pkgconfig"
+
+RDEPEND="${CDEPEND}
+ jupyter? (
+ $(python_gen_cond_dep '
+ dev-python/jupyter[${PYTHON_USEDEP}]
+ dev-python/notebook[${PYTHON_USEDEP}]
+ dev-python/metakernel[${PYTHON_USEDEP}]
+ ')
+ )
+"
+
+BDEPEND="${PYTHON_DEPS}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-6.12.06_cling-runtime-sysroot.patch
+)
+
+pkg_setup() {
+ use fortran && fortran-2_pkg_setup
+ python-single-r1_pkg_setup
+
+ elog "There are extra options on packages not available in Gentoo."
+ elog "You can use the environment variable MYCMAKEARGS to enable"
+ elog "these packages. For example, for Vdt you would set:"
+ elog "MYCMAKEARGS=\"-Dbuiltin_vdt=ON -Dvdt=ON\""
+}
+
+src_prepare() {
+ use cuda && cuda_src_prepare
+
+ cmake_src_prepare
+
+ sed -i "/CLING_BUILD_PLUGINS/d" interpreter/CMakeLists.txt || die
+
+ # CSS should use local images
+ sed -i -e 's,http://.*/,,' etc/html/ROOT.css || die "html sed failed"
+
+ eapply_user
+}
+
+# Note: ROOT uses bundled clang because it is patched and API-incompatible
+# with vanilla clang. The patches enable the C++ interpreter to work.
+
+src_configure() {
+
+ filter-lto # https://bugs.gentoo.org/879323
+
+ local mycmakeargs=(
+ -DCMAKE_C_COMPILER="$(tc-getCC)"
+ -DCMAKE_CXX_COMPILER="$(tc-getCXX)"
+ -DCMAKE_CUDA_HOST_COMPILER="$(tc-getCXX)"
+ -DCMAKE_C_FLAGS="${CFLAGS}"
+ -DCMAKE_CXX_FLAGS="${CXXFLAGS}"
+ # set build type flags to empty to avoid overriding CXXFLAGS
+ -UCMAKE_C_FLAGS_RELEASE
+ -UCMAKE_C_FLAGS_RELWITHDEBINFO
+ -UCMAKE_CXX_FLAGS_RELEASE
+ -UCMAKE_CXX_FLAGS_RELWITHDEBINFO
+ # enable debug info in LLVM as well with USE=debug
+ -DLLVM_BUILD_TYPE=$(usex debug RelWithDebInfo Release)
+ -DPYTHON_EXECUTABLE="${EPREFIX}/usr/bin/${EPYTHON}"
+ -DDEFAULT_SYSROOT="${EPREFIX}"
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DCMAKE_INSTALL_CMAKEDIR="$(get_libdir)/cmake/ROOT"
+ -DCMAKE_INSTALL_DATADIR="share/root"
+ -DCMAKE_INSTALL_DOCDIR="share/doc/${PF}"
+ -DCMAKE_INSTALL_FONTDIR="share/fonts/root"
+ -DCMAKE_INSTALL_INCLUDEDIR="include/root"
+ -DCMAKE_INSTALL_LIBDIR="$(get_libdir)/root"
+ -DCMAKE_INSTALL_PYTHONDIR="${EPREFIX}/usr/lib/${EPYTHON}/site-packages"
+ -DCMAKE_INSTALL_SRCDIR="${EPREFIX}/usr/src/debug/${CATEGORY}/${PF}"
+ -DCMAKE_INSTALL_SYSCONFDIR="share/root"
+ -DCMAKE_INSTALL_TUTDIR="share/root/tutorials"
+ -DCLING_BUILD_PLUGINS=OFF
+ -Dasan=OFF
+ -Dasserts=$(usex debug)
+ -Dccache=OFF # use ccache via portage
+ -Dcoverage=OFF
+ -Ddev=OFF
+ -Ddistcc=OFF
+ -Dfail-on-missing=ON
+ -Dgnuinstall=ON
+ -Dgminimal=OFF
+ -Dshared=ON
+ -Dsoversion=ON
+ -Dbuiltin_llvm=ON
+ -Dbuiltin_clang=ON
+ -Dbuiltin_cling=ON
+ -Dbuiltin_openui5=ON
+ -Dbuiltin_cfitsio=OFF
+ -Dbuiltin_cppzmq=OFF
+ -Dbuiltin_davix=OFF
+ -Dbuiltin_fftw3=OFF
+ -Dbuiltin_freetype=OFF
+ -Dbuiltin_ftgl=OFF
+ -Dbuiltin_gl2ps=OFF
+ -Dbuiltin_glew=OFF
+ -Dbuiltin_gsl=OFF
+ -Dbuiltin_gtest=OFF
+ -Dbuiltin_lz4=OFF
+ -Dbuiltin_lzma=OFF
+ -Dbuiltin_nlohmannjson=OFF
+ -Dbuiltin_openssl=OFF
+ -Dbuiltin_pcre=OFF
+ -Dbuiltin_tbb=OFF
+ -Dbuiltin_unuran=OFF
+ -Dbuiltin_vc=OFF
+ -Dbuiltin_vdt=OFF
+ -Dbuiltin_veccore=OFF
+ -Dbuiltin_xrootd=OFF
+ -Dbuiltin_xxhash=OFF
+ -Dbuiltin_zeromq=OFF
+ -Dbuiltin_zlib=OFF
+ -Dbuiltin_zstd=OFF
+ -Darrow=OFF
+ -Dasimage=$(usex asimage)
+ -Dcefweb=OFF
+ -Dclad=OFF
+ -Dcocoa=$(usex aqua)
+ -Dcuda=$(usex cuda)
+ -Dcudnn=$(usex cudnn)
+ -Dcxxmodules=OFF # requires clang, unstable
+ -Ddaos=OFF # not in gentoo
+ -Ddataframe=ON
+ -Ddavix=$(usex davix)
+ -Ddcache=OFF
+ -Dfcgi=$(usex http)
+ -Dfftw3=$(usex fftw)
+ -Dfitsio=$(usex fits)
+ -Dfortran=$(usex fortran)
+ -Dgdml=$(usex gdml)
+ -Dgviz=$(usex graphviz)
+ -Dhttp=$(usex http)
+ -Dimt=$(usex tbb)
+ -Dlibcxx=$(usex libcxx)
+ -Dmathmore=$(usex gsl)
+ -Dminuit=$(usex minuit)
+ -Dmlp=$(usex tmva)
+ -Dmpi=$(usex mpi)
+ -Dmysql=$(usex mysql)
+ -Dodbc=$(usex odbc)
+ -Dopengl=$(usex opengl)
+ -Dpgsql=$(usex postgres)
+ -Dpyroot=$(usex python) # python was renamed to pyroot
+ -Dpythia8=$(usex pythia8)
+ -Dqt5web=$(usex qt5)
+ -Dqt6web=$(usex qt6)
+ -Dr=$(usex R)
+ -Droofit=$(usex roofit)
+ -Droofit_multiprocess=OFF
+ -Droofit_hs3_ryml=OFF
+ -Droot7=$(usex root7)
+ -Drootbench=OFF
+ -Droottest=OFF
+ -Drpath=OFF
+ -Druntime_cxxmodules=ON
+ -Dshadowpw=$(usex shadow)
+ -Dspectrum=ON
+ -Dsqlite=$(usex sqlite)
+ -Dssl=$(usex ssl)
+ -Dtest_distrdf_dask=OFF
+ -Dtest_distrdf_pyspark=OFF
+ -Dtesting=$(usex test)
+ -Dtmva=$(usex tmva)
+ -Dtmva-cpu=$(usex tmva)
+ -Dtmva-gpu=$(usex cuda)
+ -Dtmva-pymva=$(usex tmva)
+ -Dtmva-rmva=$(usex R)
+ -Dtmva-sofie=OFF
+ -Dunuran=$(usex unuran)
+ -During=$(usex uring)
+ -Dvc=$(usex vc)
+ -Dvdt=OFF
+ -Dveccore=OFF
+ -Dvecgeom=OFF
+ -Dwebgui=$(usex http)
+ -Dx11=$(usex X)
+ -Dxml=$(usex xml)
+ -Dxrootd=$(usex xrootd)
+ )
+
+ # Needs to be here, otherwise gets overriden by cmake.eclass
+ DCMAKE_BUILD_TYPE=$(usex debug RelWithDebInfo Release) cmake_src_configure
+}
+
+src_install() {
+ cmake_src_install
+
+ newenvd - 99root <<- EOF || die
+ LDPATH="${EPREFIX}/usr/$(get_libdir)/root"
+ EOF
+
+ pushd "${ED}/usr" > /dev/null
+
+ rm bin/*.{csh,sh,fish} || die
+
+ if ! use examples; then
+ rm -r share/root/tutorials || die
+ fi
+
+ popd
+
+ use python && python_optimize
+}
diff --git a/sci-physics/root/root-9999.ebuild b/sci-physics/root/root-9999.ebuild
index 1c6e78d4b623..fa797d38a0aa 100644
--- a/sci-physics/root/root-9999.ebuild
+++ b/sci-physics/root/root-9999.ebuild
@@ -16,8 +16,8 @@ LICENSE="LGPL-2.1 freedist MSttfEULA LGPL-3 libpng UoI-NCSA"
IUSE="+X aqua +asimage cuda cudnn +davix debug +examples fits fftw fortran
+gdml graphviz +gsl +http jupyter libcxx +minuit mpi mysql odbc +opengl
- oracle postgres pythia6 pythia8 +python qt5 qt6 R +roofit +root7 shadow
- sqlite +ssl +tbb test +tmva +unuran uring vc +xml xrootd"
+ postgres pythia8 +python qt5 qt6 R +roofit +root7 shadow sqlite +ssl
+ +tbb test +tmva +unuran uring vc +xml xrootd"
if [[ ${PV} =~ "9999" ]] ; then
inherit git-r3
@@ -86,7 +86,6 @@ CDEPEND="
dev-qt/qtwebengine:6[widgets]
)
)
- asimage? ( media-libs/libafterimage[gif,jpeg,png,tiff] )
cuda? ( >=dev-util/nvidia-cuda-toolkit-9.0 )
cudnn? ( dev-libs/cudnn )
davix? ( net-libs/davix )
@@ -106,9 +105,7 @@ CDEPEND="
dev-db/unixODBC
)
)
- oracle? ( dev-db/oracle-instantclient[sdk] )
postgres? ( dev-db/postgresql:= )
- pythia6? ( sci-physics/pythia:6 )
pythia8? ( sci-physics/pythia:8 )
python? ( ${PYTHON_DEPS} )
R? ( dev-lang/R )
@@ -209,7 +206,6 @@ src_configure() {
-Dcoverage=OFF
-Ddev=OFF
-Ddistcc=OFF
- -Dexceptions=ON
-Dfail-on-missing=ON
-Dgnuinstall=ON
-Dgminimal=OFF
@@ -219,7 +215,6 @@ src_configure() {
-Dbuiltin_clang=ON
-Dbuiltin_cling=ON
-Dbuiltin_openui5=ON
- -Dbuiltin_afterimage=OFF
-Dbuiltin_cfitsio=OFF
-Dbuiltin_cppzmq=OFF
-Dbuiltin_davix=OFF
@@ -262,26 +257,19 @@ src_configure() {
-Dfitsio=$(usex fits)
-Dfortran=$(usex fortran)
-Dgdml=$(usex gdml)
- -Dgfal=OFF
-Dgviz=$(usex graphviz)
-Dhttp=$(usex http)
-Dimt=$(usex tbb)
- -Djemalloc=OFF
-Dlibcxx=$(usex libcxx)
-Dmathmore=$(usex gsl)
-Dminuit=$(usex minuit)
- -Dminuit2=$(usex minuit)
-Dmlp=$(usex tmva)
- -Dmonalisa=OFF
-Dmpi=$(usex mpi)
-Dmysql=$(usex mysql)
-Dodbc=$(usex odbc)
-Dopengl=$(usex opengl)
- -Doracle=$(usex oracle)
-Dpgsql=$(usex postgres)
-Dpyroot=$(usex python) # python was renamed to pyroot
- -Dpyroot_legacy=OFF
- -Dpythia6=$(usex pythia6)
-Dpythia8=$(usex pythia8)
-Dqt5web=$(usex qt5)
-Dqt6web=$(usex qt6)
@@ -298,7 +286,6 @@ src_configure() {
-Dspectrum=ON
-Dsqlite=$(usex sqlite)
-Dssl=$(usex ssl)
- -Dtcmalloc=OFF
-Dtest_distrdf_dask=OFF
-Dtest_distrdf_pyspark=OFF
-Dtesting=$(usex test)
diff --git a/sci-physics/vgm/files/vgm-5.2-r1-root-6.32-TesselatedSolid.patch b/sci-physics/vgm/files/vgm-5.2-r1-root-6.32-TesselatedSolid.patch
new file mode 100644
index 000000000000..2c1bfc92a349
--- /dev/null
+++ b/sci-physics/vgm/files/vgm-5.2-r1-root-6.32-TesselatedSolid.patch
@@ -0,0 +1,31 @@
+adapt RootGM::TessellatedSolid for ROOT 6.32.00
+
+Bug: https://github.com/vmc-project/vgm/pull/16
+---
+ packages/RootGM/source/solids/TessellatedSolid.cxx | 13 ++++++++-----
+ 1 file changed, 8 insertions(+), 5 deletions(-)
+
+--- a/packages/RootGM/source/solids/TessellatedSolid.cxx
++++ b/packages/RootGM/source/solids/TessellatedSolid.cxx
+@@ -178,13 +178,16 @@ VGM::ThreeVector RootGM::TessellatedSolid::Vertex(int ifacet, int index) const
+ {
+ CheckVertexIndex(ifacet, index);
+
+- const TGeoFacet& facet = fTessellated->GetFacet(ifacet);
++#if ROOT_VERSION_CODE > ROOT_VERSION(6, 30, 4)
++ const auto& rvertex = fTessellated->GetVertex((fTessellated->GetFacet(ifacet))[index]);
++#else
++ const auto& rvertex = fTessellated->GetFacet(ifacet).GetVertex(index);
++#endif
+
+ VGM::ThreeVector vertex;
+- vertex.push_back(facet.GetVertex(index).fVec[0] * RootGM::Units::Length());
+- vertex.push_back(facet.GetVertex(index).fVec[1] * RootGM::Units::Length());
+- vertex.push_back(facet.GetVertex(index).fVec[2] * RootGM::Units::Length());
++ vertex.push_back(rvertex.fVec[0] * RootGM::Units::Length());
++ vertex.push_back(rvertex.fVec[1] * RootGM::Units::Length());
++ vertex.push_back(rvertex.fVec[2] * RootGM::Units::Length());
+
+ return vertex;
+ }
+-
diff --git a/sci-physics/vgm/vgm-5.2-r1.ebuild b/sci-physics/vgm/vgm-5.2-r1.ebuild
index 6e5f9a755e9c..ff3c18921bb1 100644
--- a/sci-physics/vgm/vgm-5.2-r1.ebuild
+++ b/sci-physics/vgm/vgm-5.2-r1.ebuild
@@ -45,6 +45,10 @@ DOCS=(
doc/VGMhistory.txt
)
+PATCHES=(
+ "${FILESDIR}"/${PN}-5.2-r1-root-6.32-TesselatedSolid.patch
+)
+
src_configure() {
local mycmakeargs=(
-DCLHEP_DIR="${EPREFIX}/usr"