diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-26 14:52:16 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-26 14:52:16 +0100 |
commit | c3d998909264b1ff687b9c65cae3046443e66f7e (patch) | |
tree | ed7aa279f601f6c46fb8b7425bd2a051b72be8d6 /sci-physics/hepmc | |
parent | cf91c70bb5a537972156006c46756b9ac75bdb7b (diff) |
gentoo auto-resync : 26:08:2022 - 14:52:16
Diffstat (limited to 'sci-physics/hepmc')
-rw-r--r-- | sci-physics/hepmc/Manifest | 6 | ||||
-rw-r--r-- | sci-physics/hepmc/hepmc-2.06.11.ebuild | 95 | ||||
-rw-r--r-- | sci-physics/hepmc/hepmc-3.2.5.ebuild | 51 | ||||
-rw-r--r-- | sci-physics/hepmc/metadata.xml | 7 |
4 files changed, 157 insertions, 2 deletions
diff --git a/sci-physics/hepmc/Manifest b/sci-physics/hepmc/Manifest index 417240d0fbdb..7a8f07ce96c8 100644 --- a/sci-physics/hepmc/Manifest +++ b/sci-physics/hepmc/Manifest @@ -1,3 +1,7 @@ DIST HepMC-2.06.09.tar.gz 4612637 BLAKE2B 6bbf1a6a8410b6717ddff29fc3643247582f7a61a05fd9e52a0b09f78bf75de587c1c55525f6a1367b306a26a4687ce55b64908c049d91bdb2db3d40467af62b SHA512 1030f31ad9d19d8ae184145a693c4a3092131f485e2ed89598b7172992a825ad9aa46fb44a9199a00c4a6bd7e163daead9452e9bc4fe32cb3b97351cf22906c4 +DIST HepMC3-3.2.5.tar.gz 9217649 BLAKE2B 520e4621cdfa277376e94b87a070f23e6479867bbf696dc972e7496c54504c7da921932fbeaf7713cbaab18c72101ad3fa79396fe8ee1737180946696dcd1fbd SHA512 de60aaa686f6499c62112c265438b9ba41a7ed312b767ddc3409178b6e908e4fffd6a1153bd9f2929cf479074b14bcbec33d377f51a11cfcd4c67e45fc9bb2b9 +DIST hepmc2.06.11.tgz 4893958 BLAKE2B ac8eef250cb330a167c9e0f4bd1aaf8df82e0ffec3557ab5cdaf8bc5b0b7333d6a45f73710ce63abab52d2c5758d5663c15c2a7c940a09504b3ef2fd4517aa0b SHA512 81c100d4931e0e4de62c8ffd18cc06e7996a642fecc092892988bdc0dd0dc3c0f5b336e85f09ceb8f5e0e09456775ae5928d37daf28d82923476089bc0e910f2 EBUILD hepmc-2.06.09-r2.ebuild 1944 BLAKE2B 9c768aae3cb4bcc0d4c6953e7577e0bff407ec61ef1efb9ec34b60944ac8880e832a196c04cb1adcf1539488807af3729db35282cc71383ae560f22473dfca70 SHA512 0c45e436498dea65ea1b801a44b8b4c6e232305dbb7d002656a0f11feb4fb2a0d23cf6a63f0bfd7c711bff6fba60f69367ca7f173a6af0bac54c664bbd0b2cb6 -MISC metadata.xml 1387 BLAKE2B fea7ce2a6373cb4c3dcc91f5cc9f7ddee03e12ae9f35769d949115e8d21e70bca4f2304cb6384d708b447e0e4a5b4bb5713d0abad011e10bacab84b601648b12 SHA512 c82cab58777d4e1ca0fe563e5625cba2cb99edfe27f477c191f5ef0afba40ff62f5d1834e8472294958e6c36f17af10b8da0c91fcb3b147bb3bd8dfda37a79fe +EBUILD hepmc-2.06.11.ebuild 2002 BLAKE2B 3c3fcf14703a96074b0fad4e411beffb3e6cdac9d6b6035c4ae29397c291b880702e0926f2f893f7a0febe88b7c2512c29760e9dc17df6ae26eeae1b44f4adbb SHA512 f3070fdd37b9bd6212687acc0d46d1a64223cfec128db524ae35e2e39745b3ae9abcaaec982352df295d9ada4e23bf5d87b3994b4b7dd078e507664d96767652 +EBUILD hepmc-3.2.5.ebuild 1185 BLAKE2B 95cc8506ea333973f101e2103e8f8a77677d909a53461cdd1498a963f22446e46835aedb693088abf805a4044c38231f25408595dfcd0dd96ac71dba13c33609 SHA512 6191380a1519cf5e696f6b3834d2a00afe19fd0134debc051ea5d18cbccc5d6d4f2aae8c67c088b37c1834a06a2f793eaf422289dde12358e41ce1810059e071 +MISC metadata.xml 1600 BLAKE2B 10b28e9bbb93689a55d60e8af6ca44ea7764b8b309c4dfba81bb11d0ca2cd3aa30ee1df5b9a4a02bd649f64d7624885f10259f4d62c1bdb89b36fa7bb1da8baf SHA512 52c562ae75774076c652072aa1bfbefbbb3fcace04856fea14ce7265e6116bce7bc0fafa24e092cb848cdda980c489ade647ac056a6cd6cc8f077f26994454ae diff --git a/sci-physics/hepmc/hepmc-2.06.11.ebuild b/sci-physics/hepmc/hepmc-2.06.11.ebuild new file mode 100644 index 000000000000..f75ed0d07cf6 --- /dev/null +++ b/sci-physics/hepmc/hepmc-2.06.11.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +MYP=HepMC-${PV} + +DESCRIPTION="Event Record for Monte Carlo Generators" +HOMEPAGE="https://hepmc.web.cern.ch/hepmc/" +SRC_URI="https://hepmc.web.cern.ch/hepmc/releases/hepmc${PV}.tgz" +S="${WORKDIR}/${MYP}" + +LICENSE="GPL-2" +SLOT="2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="cm doc examples gev test" +RESTRICT="!test? ( test )" + +BDEPEND=" + doc? ( + app-doc/doxygen[dot] + dev-texlive/texlive-latex + dev-texlive/texlive-latexextra + dev-texlive/texlive-latexrecommended + )" + +# Block against old slot 0 +RDEPEND="!sci-physics/hepmc:0" + +src_prepare() { + cmake_src_prepare + + sed -i -e '/add_subdirectory(doc)/d' CMakeLists.txt || die + # CMake doc building broken + # gentoo doc directory + #sed -i \ + # -e "s:share/HepMC/doc:share/doc/${PF}:" \ + # doc/CMakeLists.txt || die + + # gentoo examples directory + sed -i \ + -e "s:share/HepMC:share/doc/${PF}:" \ + $(find examples -name CMakeLists.txt) || die + + # respect user's flags + sed -i \ + -e "s/-O -ansi -pedantic -Wall//g" \ + cmake/Modules/HepMCVariables.cmake || die + + # gentoo libdir love + sed -i \ + -e '/DESTINATION/s/lib/lib${LIB_SUFFIX}/g' \ + {src,fio}/CMakeLists.txt || die + + # remove targets if use flags not set + if ! use examples; then + sed -i -e '/add_subdirectory(examples)/d' CMakeLists.txt || die + fi + if ! use test; then + sed -i -e '/add_subdirectory(test)/d' CMakeLists.txt || die + fi + + # remove static libs + sed -i \ + -e '/(HepMC\(fio\|\)S/d' \ + -e '/TARGETS/s/HepMC\(fio\|\)S//' \ + {src,fio}/CMakeLists.txt || die +} + +src_configure() { + # use MeV over GeV and mm over cm + local mycmakeargs=( + -Dlength=$(usex cm CM MM) + -Dmomentum=$(usex gev GEV MEV) + ) + cmake_src_configure +} + +src_compile() { + cmake_src_compile + + if use doc; then + cd doc || die + ./buildDoc.sh || die + ./buildDoxygen.sh || die + HTML_DOCS=( doc/html/. ) + fi +} + +src_install() { + cmake_src_install + use doc && dodoc doc/*.pdf +} diff --git a/sci-physics/hepmc/hepmc-3.2.5.ebuild b/sci-physics/hepmc/hepmc-3.2.5.ebuild new file mode 100644 index 000000000000..6a91e322f3ec --- /dev/null +++ b/sci-physics/hepmc/hepmc-3.2.5.ebuild @@ -0,0 +1,51 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +# python3_11 fails +PYTHON_COMPAT=( python3_{8..10} ) +inherit cmake python-single-r1 + +MYP=HepMC3-${PV} + +DESCRIPTION="Event Record for Monte Carlo Generators" +HOMEPAGE="https://hepmc.web.cern.ch/hepmc/" +SRC_URI="https://hepmc.web.cern.ch/hepmc/releases/${MYP}.tar.gz" +S="${WORKDIR}/${MYP}" + +LICENSE="GPL-3+" +SLOT="3" +KEYWORDS="~amd64" +IUSE="doc test examples python root" +RESTRICT="!test? ( test )" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND}" +BDEPEND=" + root? ( sci-physics/root:= ) + doc? ( + app-doc/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 + python_optimize +} diff --git a/sci-physics/hepmc/metadata.xml b/sci-physics/hepmc/metadata.xml index 568fd23f5361..3e4d21be3b79 100644 --- a/sci-physics/hepmc/metadata.xml +++ b/sci-physics/hepmc/metadata.xml @@ -1,7 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> -<maintainer type="project"> +<maintainer type="person" proxied="yes"> + <email>alexander@neuwirth-informatik.de</email> + <name>Alexander Puck Neuwirth</name> +</maintainer> +<maintainer type="project" proxied="proxy"> <email>sci-physics@gentoo.org</email> <name>Gentoo Physics Project</name> </maintainer> @@ -24,5 +28,6 @@ <use> <flag name="gev">Build with GeV instead of default MeV for momentum units</flag> <flag name="cm">Build with cm instead of default mm for length units</flag> + <flag name="root">Build with ROOTIO enabled</flag> </use> </pkgmetadata> |