summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Puck Neuwirth <alexander@neuwirth-informatik.de>2023-03-20 14:18:37 +0100
committerSam James <sam@gentoo.org>2023-03-22 01:16:46 +0000
commitef713f0773b8e1922f8ca091f73f5601f7c5f9a9 (patch)
tree88315d955eff99af93bfe248c0553de2259e76bd /sci-physics
parentsci-physics/lhapdf: add 6.5.4 (diff)
downloadgentoo-ef713f0773b8e1922f8ca091f73f5601f7c5f9a9.tar.gz
gentoo-ef713f0773b8e1922f8ca091f73f5601f7c5f9a9.tar.bz2
gentoo-ef713f0773b8e1922f8ca091f73f5601f7c5f9a9.zip
sci-physics/lhapdf: add 9999
Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de> Closes: https://github.com/gentoo/gentoo/pull/30260 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'sci-physics')
-rw-r--r--sci-physics/lhapdf/lhapdf-9999.ebuild69
1 files changed, 69 insertions, 0 deletions
diff --git a/sci-physics/lhapdf/lhapdf-9999.ebuild b/sci-physics/lhapdf/lhapdf-9999.ebuild
new file mode 100644
index 000000000000..d6db5a753ed2
--- /dev/null
+++ b/sci-physics/lhapdf/lhapdf-9999.ebuild
@@ -0,0 +1,69 @@
+# 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 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"
+ S="${WORKDIR}/${MY_PF}"
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="examples"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ default
+ # live git does not have a configure script
+ eautoreconf
+}
+
+src_configure() {
+ 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
+}