diff options
Diffstat (limited to 'sci-physics/lhapdf')
-rw-r--r-- | sci-physics/lhapdf/Manifest | 4 | ||||
-rw-r--r-- | sci-physics/lhapdf/files/lhapdf-6.3.0-egg.patch | 16 | ||||
-rw-r--r-- | sci-physics/lhapdf/files/lhapdf-6.5.2-py.patch | 11 | ||||
-rw-r--r-- | sci-physics/lhapdf/lhapdf-6.2.3.ebuild | 75 | ||||
-rw-r--r-- | sci-physics/lhapdf/lhapdf-6.3.0-r2.ebuild | 85 | ||||
-rw-r--r-- | sci-physics/lhapdf/lhapdf-6.5.3-r1.ebuild | 61 | ||||
-rw-r--r-- | sci-physics/lhapdf/lhapdf-6.5.4-r1.ebuild | 79 | ||||
-rw-r--r-- | sci-physics/lhapdf/lhapdf-9999.ebuild | 78 | ||||
-rw-r--r-- | sci-physics/lhapdf/metadata.xml | 11 |
9 files changed, 342 insertions, 78 deletions
diff --git a/sci-physics/lhapdf/Manifest b/sci-physics/lhapdf/Manifest index 56058d468e3a..33b9d96c1eaa 100644 --- a/sci-physics/lhapdf/Manifest +++ b/sci-physics/lhapdf/Manifest @@ -1 +1,3 @@ -DIST LHAPDF-6.2.3.tar.gz 750659 BLAKE2B a16f67c69f41e96cdb5434cc53658c6b085b94c9ad06443fdfb49aa1de50eeb2a59aa41442a032c29b361bad4f749cef42499f3d16f2774efb0b399f889576e4 SHA512 167064a141f46e5c834d950690a989330b940acec62377b8b4c40e14665503cf7b4ddb79e05c71ebe1f801231192d951e294bec3944ec37b2bca484b2e5ce894 +DIST LHAPDF-6.3.0.tar.gz 770744 BLAKE2B 02b9fe3507b87c6f0c635ceb203304eb9b3ee8ac4d17c8b83578f8c05b78b17035b63b6d3d9a0b9fe3505a3daf8e9376fe25040b8826ea4976d2a717b1447eb9 SHA512 4a5aca6e2f06b59a44acc23ef76f1fae747f38e425803e7625cc68130da0c76d1e0d534b7b1867f09c86ee838d4f769d5097257170740db704c966d91c41f94b +DIST LHAPDF-6.5.3.tar.gz 864918 BLAKE2B 2dd1b5b94523c0cadac2b63d3dcbc73c5d621463ec9a0e6736b40cb24f6f4da744cf74484b6a5cfb1cfc10054171858dfb3968b22da565747d9b0d00cb3f545c SHA512 444e1dd75c087b0618a65b0ebda0d06dac640d75e43de3a2e4cd5733dd2eaa6eeb6cb0aac437ee559b00b60a6b839a4125b3b26d398da81d52a3a97a7b875662 +DIST lhapdf-6.5.4.tar.gz 869707 BLAKE2B 9bd214f29ef0fb662095a045acf449bac60c2f12fb0e182c9c590ec51651f1c08d213a3f9280eda0711ec9a0d5cae620918f048c362838a9de8e69cc84f34798 SHA512 0e39f7f298e8c72eece9c3d19f471f48b3ee045cd54ecd318e0b2d60ada4f01a2151e6b2b5f27fccdf10c1043352a673492f8792be1964df7eafbe931282a83b diff --git a/sci-physics/lhapdf/files/lhapdf-6.3.0-egg.patch b/sci-physics/lhapdf/files/lhapdf-6.3.0-egg.patch new file mode 100644 index 000000000000..9122b8eaf7ff --- /dev/null +++ b/sci-physics/lhapdf/files/lhapdf-6.3.0-egg.patch @@ -0,0 +1,16 @@ +--- a/wrappers/python/Makefile.am 2023-09-01 11:38:37.567370819 +0200 ++++ b/wrappers/python/Makefile.am 2023-09-01 11:37:50.641123445 +0200 +@@ -29,10 +29,10 @@ + + ## Always force setup.py, it's not good at guessing what needs to rebuild + all-local: fix-out-of-source +- $(PYEXT_ENV) $(PYTHON) setup.py install --install-lib=build/ --force ++ $(PYEXT_ENV) $(PYTHON) setup.py install --single-version-externally-managed --root=/ --install-lib=$(S)/build/ --force + + install-exec-local: +- $(PYEXT_ENV) $(PYTHON) setup.py install --prefix=$(DESTDIR)$(prefix) --force ++ $(PYEXT_ENV) $(PYTHON) setup.py install --single-version-externally-managed --root=/ --prefix=$(DESTDIR)$(prefix) --force + + uninstall-local: + rm -f $(DESTDIR)$(PYTHON_PATH)/lhapdf.so + diff --git a/sci-physics/lhapdf/files/lhapdf-6.5.2-py.patch b/sci-physics/lhapdf/files/lhapdf-6.5.2-py.patch new file mode 100644 index 000000000000..e4e6579872e2 --- /dev/null +++ b/sci-physics/lhapdf/files/lhapdf-6.5.2-py.patch @@ -0,0 +1,11 @@ +--- a/wrappers/python/build.py.in 2022-10-16 17:54:18.406418600 +0200 ++++ b/wrappers/python/build.py.in 2022-10-16 17:54:31.926612653 +0200 +@@ -20,7 +20,7 @@ + ## Include args + incargs = " ".join("-I{}".format(d) for d in incdirs) + incargs += " -I@prefix@/include" +-incargs += " @CPPFLAGS@" ++incargs += " @CPPFLAGS@ @CXXFLAGS@ @LDFLAGS@" + + ## Compile args + cmpargs = "" #"@PYEXT_CXXFLAGS@" diff --git a/sci-physics/lhapdf/lhapdf-6.2.3.ebuild b/sci-physics/lhapdf/lhapdf-6.2.3.ebuild deleted file mode 100644 index 4b3de592bb3f..000000000000 --- a/sci-physics/lhapdf/lhapdf-6.2.3.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -AUTOTOOLS_IN_SOURCE_BUILD=yes -PYTHON_COMPAT=( python{3_6,3_7} ) - -inherit distutils-r1 - -MY_PV=$(ver_cut 1-3) -MY_PF=LHAPDF-${MY_PV} - -DESCRIPTION="Les Houches Parton Density Function unified library" -HOMEPAGE="http://lhapdf.hepforge.org/" -SRC_URI="http://www.hepforge.org/archive/lhapdf/${MY_PF}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux" - -IUSE="doc examples python static-libs" -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" - -RDEPEND=" - dev-libs/boost:0= - python? ( ${PYTHON_DEPS} )" -DEPEND="${RDEPEND} - doc? ( - app-doc/doxygen - dev-texlive/texlive-bibtexextra - dev-texlive/texlive-fontsextra - dev-texlive/texlive-fontutils - dev-texlive/texlive-latex - dev-texlive/texlive-latexextra - ) -" - -S="${WORKDIR}/${MY_PF}" - -src_configure() { - econf $(use_enable python) - if use python; then - cd "${S}/wrappers/python" && distutils-r1_src_prepare - fi -} - -src_compile() { - emake all $(use doc && echo doxy) - if use python; then - cd "${S}/wrappers/python" && distutils-r1_src_compile - fi -} - -src_test() { - emake -C tests -} - -src_install() { - emake DESTDIR="${D}" install - use doc && dodoc -r doc/doxygen/* - if use examples; then - insinto /usr/share/doc/${PF}/examples - doins examples/*.cc - fi - if use python; then - cd "${S}/wrappers/python" && distutils-r1_src_install - fi -} - -pkg_postinst() { - elog "Download data files from:" - elog "http://www.hepforge.org/archive/${PN}/pdfsets/$(ver_cut 1-2)" - elog "and untar them into ${EPREFIX}/usr/share/LHAPDF" -} diff --git a/sci-physics/lhapdf/lhapdf-6.3.0-r2.ebuild b/sci-physics/lhapdf/lhapdf-6.3.0-r2.ebuild new file mode 100644 index 000000000000..acccf2facc60 --- /dev/null +++ b/sci-physics/lhapdf/lhapdf-6.3.0-r2.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +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 +" +DISTUTILS_USE_PEP517=setuptools +DISTUTILS_SINGLE_IMPL=1 +DISTUTILS_EXT=1 +inherit distutils-r1 docs autotools + +MY_PV=$(ver_cut 1-3) +MY_PF=LHAPDF-${MY_PV} + +DESCRIPTION="Les Houches Parton Density Function unified library" +HOMEPAGE="https://lhapdf.hepforge.org/" +SRC_URI="https://www.hepforge.org/downloads/lhapdf/${MY_PF}.tar.gz" +S="${WORKDIR}/${MY_PF}" +DOCS_DIR="${S}/doc" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~x86" +IUSE="examples" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +BDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/cython-0.19[${PYTHON_USEDEP}] + ') +" +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-egg.patch +) + +src_prepare() { + default + # Let cython reproduce this for more recent python versions + rm wrappers/python/lhapdf.cpp || die + eautoreconf +} + +src_configure() { + local -x CONFIG_SHELL="${EPREFIX}/bin/bash" + econf \ + --disable-static \ + --enable-python + + cd "${S}"/wrappers/python || die + distutils-r1_src_prepare +} + +src_compile() { + emake all $(use doc && echo doxy) + + cd "${S}"/wrappers/python || die + distutils-r1_src_compile +} + +src_test() { + emake -C tests +} + +src_install() { + default + use doc && dodoc -r doc/doxygen/. + use examples && dodoc examples/*.cc + + cd "${S}"/wrappers/python || die + distutils-r1_src_install + rm -r "${D}/$(python_get_sitedir)"/*.egg-info || die + + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-physics/lhapdf/lhapdf-6.5.3-r1.ebuild b/sci-physics/lhapdf/lhapdf-6.5.3-r1.ebuild new file mode 100644 index 000000000000..fc3184079097 --- /dev/null +++ b/sci-physics/lhapdf/lhapdf-6.5.3-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..11} ) +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/" +SRC_URI="https://www.hepforge.org/downloads/lhapdf/${MY_PF}.tar.gz" +S="${WORKDIR}/${MY_PF}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="examples" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +RDEPEND="${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-6.5.2-py.patch +) + +src_configure() { + local -x CONFIG_SHELL="${EPREFIX}/bin/bash" + econf \ + --disable-static \ + --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 + + python_optimize + + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-physics/lhapdf/lhapdf-6.5.4-r1.ebuild b/sci-physics/lhapdf/lhapdf-6.5.4-r1.ebuild new file mode 100644 index 000000000000..7e3801a3d0e3 --- /dev/null +++ b/sci-physics/lhapdf/lhapdf-6.5.4-r1.ebuild @@ -0,0 +1,79 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..12} ) +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 autotools + +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" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples +python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND}" +BDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/cython-0.19[${PYTHON_USEDEP}] + ') +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + # Let cython reproduce this for more recent python versions + rm wrappers/python/lhapdf.cpp || die + eautoreconf +} + +src_configure() { + local -x CONFIG_SHELL="${EPREFIX}/bin/bash" + econf \ + --disable-static \ + $(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 new file mode 100644 index 000000000000..492a8fed8602 --- /dev/null +++ b/sci-physics/lhapdf/lhapdf-9999.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..12} ) +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 autotools + +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" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples +python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="python? ( ${PYTHON_DEPS} )" +DEPEND="${RDEPEND}" +BDEPEND=" + $(python_gen_cond_dep ' + >=dev-python/cython-0.19[${PYTHON_USEDEP}] + ') +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + # live git does not have a configure script + eautoreconf +} + +src_configure() { + CONFIG_SHELL="${EPREFIX}/bin/bash" \ + econf \ + --disable-static \ + $(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/metadata.xml b/sci-physics/lhapdf/metadata.xml index 8ce35ee2a26c..3c6b42385907 100644 --- a/sci-physics/lhapdf/metadata.xml +++ b/sci-physics/lhapdf/metadata.xml @@ -1,7 +1,11 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!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> @@ -18,4 +22,7 @@ version 4.1 onwards a configuration script facilitates the installation of LHAPDF. </longdescription> +<upstream> + <remote-id type="gitlab">hepcedar/lhapdf</remote-id> +</upstream> </pkgmetadata> |