From f8bb2d659372d0add11c589dcb006d0b7f8822ae Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Thu, 19 Dec 2024 06:30:51 +0000 Subject: gentoo auto-resync : 19:12:2024 - 06:30:51 --- sci-physics/Manifest.gz | Bin 4206 -> 4211 bytes sci-physics/lhapdf/Manifest | 4 +- sci-physics/lhapdf/lhapdf-6.5.5.ebuild | 78 ++++++++ sci-physics/lhapdf/lhapdf-9999.ebuild | 10 +- sci-physics/root/Manifest | 4 +- sci-physics/root/root-6.34.00.ebuild | 326 --------------------------------- sci-physics/root/root-6.34.02.ebuild | 326 +++++++++++++++++++++++++++++++++ 7 files changed, 416 insertions(+), 332 deletions(-) create mode 100644 sci-physics/lhapdf/lhapdf-6.5.5.ebuild delete mode 100644 sci-physics/root/root-6.34.00.ebuild create mode 100644 sci-physics/root/root-6.34.02.ebuild (limited to 'sci-physics') diff --git a/sci-physics/Manifest.gz b/sci-physics/Manifest.gz index 47ef225f180f..a7fec1ab4d5f 100644 Binary files a/sci-physics/Manifest.gz and b/sci-physics/Manifest.gz differ diff --git a/sci-physics/lhapdf/Manifest b/sci-physics/lhapdf/Manifest index 01c316b8df76..ca37a040fe13 100644 --- a/sci-physics/lhapdf/Manifest +++ b/sci-physics/lhapdf/Manifest @@ -3,8 +3,10 @@ AUX lhapdf-6.5.4-cxxflags.patch 658 BLAKE2B b3ea7f0c0c72daaa5ed3f99def182796737b AUX lhapdf-6.5.4-include-cstdint.patch 1081 BLAKE2B 7e197ae51621a0984f74530240270fa845d35a739bd36264028f1bb975c2bfb04088c93c982d3866e847c64153517a181f95c3b518fd53e5f297a325d0a76e5f SHA512 204ab268e97600e7f2cfde1842d958cbfb8e77633c341a8cde304c846e59ffa6215cfaee7e1435a26d9dec8e0f30a8744fe30f6b866b301004e593a48fc58010 DIST LHAPDF-6.3.0.tar.gz 770744 BLAKE2B 02b9fe3507b87c6f0c635ceb203304eb9b3ee8ac4d17c8b83578f8c05b78b17035b63b6d3d9a0b9fe3505a3daf8e9376fe25040b8826ea4976d2a717b1447eb9 SHA512 4a5aca6e2f06b59a44acc23ef76f1fae747f38e425803e7625cc68130da0c76d1e0d534b7b1867f09c86ee838d4f769d5097257170740db704c966d91c41f94b DIST lhapdf-6.5.4.tar.gz 869707 BLAKE2B 9bd214f29ef0fb662095a045acf449bac60c2f12fb0e182c9c590ec51651f1c08d213a3f9280eda0711ec9a0d5cae620918f048c362838a9de8e69cc84f34798 SHA512 0e39f7f298e8c72eece9c3d19f471f48b3ee045cd54ecd318e0b2d60ada4f01a2151e6b2b5f27fccdf10c1043352a673492f8792be1964df7eafbe931282a83b +DIST lhapdf-6.5.5.tar.gz 946776 BLAKE2B 14677cfb0e40e61006eb2cd69373a14d8c4049a6c19d2a504b736c733be35c25a11362e5aa0d0fe233d7c477fe5f9ef60084ca71330566b2728908017ccf90e7 SHA512 80012d5eab1b09a38d8e65bc45f012125508f8d43d1ffcaa76976970f1a3d36305ad29c620715c676cd3c5d6f8bb4c0b55444c952059a742052d9c8bfd5866ac EBUILD lhapdf-6.3.0-r2.ebuild 1714 BLAKE2B d800df7bdce87a40b72cf735ab6cb1c57f31385b38ee658478f08042316c1549712693a7ccc97cb119d6fc156bc4b55f89b20dd1484900843fa2e7801763a696 SHA512 b9660c65fe43c6ca0337c9faac28ae989f96845df722860f0e5c757128a98106867bd02cebbfb47b4461088c22367386d2e260104ff5c47a4b22ceb3f0b9b102 EBUILD lhapdf-6.5.4-r1.ebuild 1651 BLAKE2B 009ca7a9ead036af3cb3372329ea52f5e7f66824332b36de9922f1511d893649d8e50f537fba6c2a9a3c80a0cea904db4dea1de78fb187d49a79c647892038ea SHA512 585d8f58f3ba53ebaf6bc18dba9a2935d08f8be0536fe05b9235dacec47ac4bef773c3dd9616752df374dbeb68902a091e67774088ebf34bfa8173ef75e6b0c2 EBUILD lhapdf-6.5.4-r2.ebuild 1816 BLAKE2B 2902772c1edf208c7f3636c401f6d9c617c3d0bb3a64493f32a444a84b1644ae3c3891f6d11148c66d6a9a2a97f58da28a33319f1d4c788115e7efadf5f26733 SHA512 66bf759057aabba5fbf73a5ec3198655a682cf29f56b77ddcd523a720df06b73b498c2dbdd857bb33b5204da01fbf4ea0290910ffa31cbd4b8ab664d8c2456e6 -EBUILD lhapdf-9999.ebuild 1545 BLAKE2B 6a5602032c79b0ef7fbd0ce5f86ebc58e0918d210011836e361c3e83c0bd85f0d86f216e7a9d7f769a4f0595265bc2a0733fa3c7bdaa7703081990ed91b82d6c SHA512 b489b1ade1e82f44b31971c5ea179e24cbb646a3d1c70a71ea708748dcdcbf797878b58c7157bbb7ff67939872801c0685549f50f149167aa50887f72f62e6da +EBUILD lhapdf-6.5.5.ebuild 1520 BLAKE2B 49918961eb0d1e0659463993520d8b65aa87bf049ddc6284adcb5d6001f2eb843ba48295a7f2e87ec8ac3ef00818a4476873683d18039017cc2514a339fe5e68 SHA512 f0700686f87516d26b187ab105f4883bff53577c3405893bc20f23f6604c191346f6212e8f35c8d6cf97d63a206dd51e4e0b0ea681d506287974c2b9bf4312a5 +EBUILD lhapdf-9999.ebuild 1616 BLAKE2B ef664d61073f5e4fdb2174cdfa66b0431f5864e1d9c2937d50802fc899d691ac37a4cae2dd5eb9cac600174fd068552187d4795a1f1732cd792731d4c3774b86 SHA512 e643efa278ff69b21237d8b4f3c1377f559c9c8081b17bf3a489c617c4942fbbb7828d5b2e31692c9333896aeb7bd07d2d68aed3deffa68114c04281f9cb849c MISC metadata.xml 1234 BLAKE2B 059e7abca0dd0583b71bbc3b48c3125952c1642c4bad30d2776b2d6a5ea44eaee0ce6f1ac44e92a7c179b11d50bbe24ed2f947bf870ebee51c6c3d49a6a6b98e SHA512 2c94513c3e3287fe186b6212e48b9aa09fee0da5bee50887432a985b1466aa40b3d2086955ee0b9d03b70bdb615b72caa3e0c74ca1d0c32590f7ad1d31a45a0e diff --git a/sci-physics/lhapdf/lhapdf-6.5.5.ebuild b/sci-physics/lhapdf/lhapdf-6.5.5.ebuild new file mode 100644 index 000000000000..5146d3cd56fc --- /dev/null +++ b/sci-physics/lhapdf/lhapdf-6.5.5.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +DOCS_BUILDER="doxygen" +DOCS_DEPEND=" + dev-texlive/texlive-bibtexextra + dev-texlive/texlive-fontsextra + dev-texlive/texlive-fontutils + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra +" +inherit python-single-r1 docs + +MY_PV=$(ver_cut 1-3) +MY_PF=LHAPDF-${MY_PV} + +DESCRIPTION="Les Houches Parton Density Function unified library" +HOMEPAGE="https://lhapdf.hepforge.org/" + +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/hepcedar/lhapdf" +else + SRC_URI="https://www.hepforge.org/downloads/lhapdf/${MY_PF}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/${MY_PF}" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples +python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-cpp/yaml-cpp + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + python? ( + $(python_gen_cond_dep ' + >=dev-python/cython-0.19[${PYTHON_USEDEP}] + ') + ) +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + local -x CONFIG_SHELL="${EPREFIX}/bin/bash" + econf \ + --disable-static \ + --with-yaml-cpp="${EPREFIX}/usr" \ + $(use_enable python) +} + +src_compile() { + emake all $(use doc && echo doxy) +} + +src_test() { + emake -C tests +} + +src_install() { + default + use doc && dodoc -r doc/doxygen/. + use examples && dodoc examples/*.cc + + use python && python_optimize + + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-physics/lhapdf/lhapdf-9999.ebuild b/sci-physics/lhapdf/lhapdf-9999.ebuild index d950f1329d20..c0934bb24f79 100644 --- a/sci-physics/lhapdf/lhapdf-9999.ebuild +++ b/sci-physics/lhapdf/lhapdf-9999.ebuild @@ -26,7 +26,7 @@ if [[ ${PV} == 9999 ]]; then else SRC_URI="https://www.hepforge.org/downloads/lhapdf/${MY_PF}.tar.gz -> ${P}.tar.gz" S="${WORKDIR}/${MY_PF}" - KEYWORDS="amd64" + KEYWORDS="~amd64 ~x86" fi LICENSE="GPL-2" @@ -34,7 +34,10 @@ SLOT="0" IUSE="examples +python" REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" -RDEPEND="python? ( ${PYTHON_DEPS} )" +RDEPEND=" + dev-cpp/yaml-cpp + python? ( ${PYTHON_DEPS} ) +" DEPEND="${RDEPEND}" BDEPEND=" python? ( @@ -55,9 +58,10 @@ src_prepare() { } src_configure() { - CONFIG_SHELL="${EPREFIX}/bin/bash" \ + local -x CONFIG_SHELL="${EPREFIX}/bin/bash" econf \ --disable-static \ + --with-yaml-cpp="${EPREFIX}/usr" \ $(use_enable python) } diff --git a/sci-physics/root/Manifest b/sci-physics/root/Manifest index 8b0a8ddf2c5f..8edce7343df6 100644 --- a/sci-physics/root/Manifest +++ b/sci-physics/root/Manifest @@ -2,11 +2,11 @@ AUX root-6.12.06_cling-runtime-sysroot.patch 989 BLAKE2B 8202cc8f2bf72cc25642d0a DIST root_v6.30.08.source.tar.gz 184887777 BLAKE2B 730bce87e343e0b84bd1f53c03527a1953d6915cfd63393ed1eee1f9e19a795b6e6a7149a511ed3b8cd17380acbbc4956d031169d571f9685e920f0c73fc67c8 SHA512 08da422cfbd879e1601064f04210db52c571545cca534dc37d67a190ccea948af0af01a67dcee553fb557fe0fb290a062f7905e413ebc1b15c2f32a5adff93cb DIST root_v6.32.06.source.tar.gz 192918335 BLAKE2B 2d0553048c6ee4c107329655b8bc812135059f13b180c1278361b2ec16131e1efa03b6c3fb72fa8d44cee8c6c52573473fd262202c9a2aeb6b74dd4a01238398 SHA512 e8507bd18e7e580d597ef91fc56ab62b7c5becaed5b1f10d18e2715703232a88e05c6e008066c6600a4dc14c676f8c3e904b75e95047697c2abd26b7a2f4a928 DIST root_v6.32.08.source.tar.gz 192930079 BLAKE2B 8810322ea518607a81cddeec41645ced272ca0ddbb2bc36a7710d49b6d52a4d897fd369d4f201653a6c7a6ef278121a529b69e62e99c49f13dc0a9ca224ef07d SHA512 fd4f66a4dcf577e5103a99c6d859e832597680f46af420eac2b50d5cf57c745046b1600f0c48f2b2a4d0f26c5ddd1a3bb8159df742363d28a6c6a12efc4224db -DIST root_v6.34.00.source.tar.gz 197286622 BLAKE2B c954cd7e6d95e4a251d16ba03a00e89b6b88f0cb7ca6650051d322413237ecc862ce403466fe9272b43fcd4345f31fe9b7563324d98417c23228b56ccd3a3dbc SHA512 5b97c9966bb3892c6d7c0444dbe1c2da66560f8f9443218b60dd3e1cb27ddba983dd512b150e542800a1ed1bf727bb6fc73f528ec7f0264c3a3b0a3600742f8b +DIST root_v6.34.02.source.tar.gz 197303012 BLAKE2B f595944583e2ea2d92a46fcdb35dc2c7583027851216e2df54596cfe1753d200947a501a219dffbadd35f517a684c232cfdd74eb6fbb8060dafdce38956f4239 SHA512 fa5cd4eb152f11a9386cf9b4b5162614edc38b491892f98722e968b237386886ec799e0d978e289caf4b5c5f712db347007561a753e8897fc601e5fe0515fab6 EBUILD root-6.30.08.ebuild 8363 BLAKE2B 9767aa6ea3a4cebbcf46d7a1a3d6caa3090406dd16e7508343ee5db98e277fa101e6df71ab1b71586192af913311f05c78465a19ac120eb0b17085d6d93b893d SHA512 6cc91fbba264b29908ad65e5cf0b0d15923ff900451cabbc09ce055f002d74f1204326a5984f485780f3ef317f64007efce8b404d89d51c8a2d269d16a1bc9af EBUILD root-6.32.06.ebuild 7997 BLAKE2B ef822afbf13a90ba8c38f4a405d9827a07abbb1df38fe0feb4f1bfecd1a0cd0bff4594c3d9c87d0d7d66ba0fc49161842a03480f3e0a2a3a0c52a64a0bec046a SHA512 83cf3fd144f5b4928316dc19d221a27377ddbd50ab20682f655db0204068118b4ee2164bdc9391942fd6fdd5343c65a75ba5fdc6dd8bdfba57a948c0f8ef4c61 EBUILD root-6.32.08.ebuild 7997 BLAKE2B ef822afbf13a90ba8c38f4a405d9827a07abbb1df38fe0feb4f1bfecd1a0cd0bff4594c3d9c87d0d7d66ba0fc49161842a03480f3e0a2a3a0c52a64a0bec046a SHA512 83cf3fd144f5b4928316dc19d221a27377ddbd50ab20682f655db0204068118b4ee2164bdc9391942fd6fdd5343c65a75ba5fdc6dd8bdfba57a948c0f8ef4c61 -EBUILD root-6.34.00.ebuild 7908 BLAKE2B cb7c66ad08fdbc66ce0bcf2ab85278e46e071165d983743d612cd38c58511b95d6401dd5cb363119e3b44fd9416cfd7f43e5f1267c9485457d783c52ed7b130a SHA512 b5afad77e18c1d0845e53de3d2b035c53b3132bae5657ee32b52a99a6e138d00cd3f8d00e88ccc0fc871aa2cfbeda210118406b80f7e2434095eeb7bb90e8119 +EBUILD root-6.34.02.ebuild 7908 BLAKE2B cb7c66ad08fdbc66ce0bcf2ab85278e46e071165d983743d612cd38c58511b95d6401dd5cb363119e3b44fd9416cfd7f43e5f1267c9485457d783c52ed7b130a SHA512 b5afad77e18c1d0845e53de3d2b035c53b3132bae5657ee32b52a99a6e138d00cd3f8d00e88ccc0fc871aa2cfbeda210118406b80f7e2434095eeb7bb90e8119 EBUILD root-6.34.9999.ebuild 7908 BLAKE2B cb7c66ad08fdbc66ce0bcf2ab85278e46e071165d983743d612cd38c58511b95d6401dd5cb363119e3b44fd9416cfd7f43e5f1267c9485457d783c52ed7b130a SHA512 b5afad77e18c1d0845e53de3d2b035c53b3132bae5657ee32b52a99a6e138d00cd3f8d00e88ccc0fc871aa2cfbeda210118406b80f7e2434095eeb7bb90e8119 EBUILD root-9999.ebuild 7908 BLAKE2B cb7c66ad08fdbc66ce0bcf2ab85278e46e071165d983743d612cd38c58511b95d6401dd5cb363119e3b44fd9416cfd7f43e5f1267c9485457d783c52ed7b130a SHA512 b5afad77e18c1d0845e53de3d2b035c53b3132bae5657ee32b52a99a6e138d00cd3f8d00e88ccc0fc871aa2cfbeda210118406b80f7e2434095eeb7bb90e8119 MISC metadata.xml 3034 BLAKE2B d0e87f6a16ad358fbf907583ca86b00e2f8662257f11722d6bf6f830fce10e0991ff5c69ad70e87d02b9d24afcc189f8091dee0544feac6205a3ba4c417d446d SHA512 e3b87e0f013eb8ebd2b3618a27d98d6386a9e61f9c4a367bda64c3b98be2053ed81efdb83b3b0170cf49a65825ad7814c3fb6d95df9be84e2b8efc014d8f8573 diff --git a/sci-physics/root/root-6.34.00.ebuild b/sci-physics/root/root-6.34.00.ebuild deleted file mode 100644 index 453459c31cfb..000000000000 --- a/sci-physics/root/root-6.34.00.ebuild +++ /dev/null @@ -1,326 +0,0 @@ -# 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_{10..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 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 !qt6 ) - davix? ( ssl xml ) - jupyter? ( python ) - python? ( ${PYTHON_REQUIRED_USE} ) - 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= - ) - 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? ( llvm-runtimes/libcxx ) - unuran? ( sci-mathematics/unuran:0= ) - 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=OFF # $(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-6.34.02.ebuild b/sci-physics/root/root-6.34.02.ebuild new file mode 100644 index 000000000000..453459c31cfb --- /dev/null +++ b/sci-physics/root/root-6.34.02.ebuild @@ -0,0 +1,326 @@ +# 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_{10..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 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 !qt6 ) + davix? ( ssl xml ) + jupyter? ( python ) + python? ( ${PYTHON_REQUIRED_USE} ) + 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= + ) + 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? ( llvm-runtimes/libcxx ) + unuran? ( sci-mathematics/unuran:0= ) + 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=OFF # $(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 +} -- cgit v1.2.3