diff options
Diffstat (limited to 'sci-physics/lhapdf')
-rw-r--r-- | sci-physics/lhapdf/Manifest | 4 | ||||
-rw-r--r-- | sci-physics/lhapdf/lhapdf-6.5.5.ebuild | 78 | ||||
-rw-r--r-- | sci-physics/lhapdf/lhapdf-9999.ebuild | 10 |
3 files changed, 88 insertions, 4 deletions
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) } |