Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/lhapdf/
Date: Wed, 06 Jul 2022 12:56:40
Message-Id: 1657112189.3afdcbcc899a99d8bbec5bf8eef5199c022e5ea5.andrewammerlaan@gentoo
1 commit: 3afdcbcc899a99d8bbec5bf8eef5199c022e5ea5
2 Author: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 6 12:52:23 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 6 12:56:29 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3afdcbcc
7
8 sci-physics/lhapdf: add 6.5.1
9
10 Python bindings can't properly be disabled, so enable python unconditionally
11 otherwise it is automagic. Does not currently compile with python3_10+
12
13 Bug: https://bugs.gentoo.org/846290
14 Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>
15
16 sci-physics/lhapdf/Manifest | 1 +
17 sci-physics/lhapdf/lhapdf-6.5.1.ebuild | 57 ++++++++++++++++++++++++++++++++++
18 2 files changed, 58 insertions(+)
19
20 diff --git a/sci-physics/lhapdf/Manifest b/sci-physics/lhapdf/Manifest
21 index 8ec59baa9c17..0686619035e9 100644
22 --- a/sci-physics/lhapdf/Manifest
23 +++ b/sci-physics/lhapdf/Manifest
24 @@ -1 +1,2 @@
25 DIST LHAPDF-6.3.0.tar.gz 770744 BLAKE2B 02b9fe3507b87c6f0c635ceb203304eb9b3ee8ac4d17c8b83578f8c05b78b17035b63b6d3d9a0b9fe3505a3daf8e9376fe25040b8826ea4976d2a717b1447eb9 SHA512 4a5aca6e2f06b59a44acc23ef76f1fae747f38e425803e7625cc68130da0c76d1e0d534b7b1867f09c86ee838d4f769d5097257170740db704c966d91c41f94b
26 +DIST LHAPDF-6.5.1.tar.gz 843942 BLAKE2B 4b86b2b3c32d8c02839946aee831d57657eccc7c80efaa49af9052f8437d1ae86b95a6acc5120e3337d528a184d8af5b4dde75a23ac6deeb85ed0d745f73647b SHA512 eeca814a60d7ae03491e82991f328bc4216d46ad94834ce19fb813e59f2d6e9bb7450678c8f6cdf1aaa3d700e56ef8dfc1363e46120893fa8be4d451c37603d2
27
28 diff --git a/sci-physics/lhapdf/lhapdf-6.5.1.ebuild b/sci-physics/lhapdf/lhapdf-6.5.1.ebuild
29 new file mode 100644
30 index 000000000000..fd63f215565d
31 --- /dev/null
32 +++ b/sci-physics/lhapdf/lhapdf-6.5.1.ebuild
33 @@ -0,0 +1,57 @@
34 +# Copyright 1999-2022 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI=8
38 +
39 +PYTHON_COMPAT=( python3_9 )
40 +DOCS_BUILDER="doxygen"
41 +DOCS_DEPEND="
42 + dev-texlive/texlive-bibtexextra
43 + dev-texlive/texlive-fontsextra
44 + dev-texlive/texlive-fontutils
45 + dev-texlive/texlive-latex
46 + dev-texlive/texlive-latexextra
47 +"
48 +inherit python-single-r1 docs
49 +
50 +MY_PV=$(ver_cut 1-3)
51 +MY_PF=LHAPDF-${MY_PV}
52 +
53 +DESCRIPTION="Les Houches Parton Density Function unified library"
54 +HOMEPAGE="https://lhapdf.hepforge.org/"
55 +SRC_URI="https://www.hepforge.org/downloads/lhapdf/${MY_PF}.tar.gz"
56 +S="${WORKDIR}/${MY_PF}"
57 +
58 +LICENSE="GPL-2"
59 +SLOT="0"
60 +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
61 +IUSE="examples"
62 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
63 +
64 +RDEPEND="
65 + dev-libs/boost:0=
66 + ${PYTHON_DEPS}"
67 +DEPEND="${RDEPEND}"
68 +
69 +src_configure() {
70 + CONFIG_SHELL="${EPREFIX}/bin/bash" \
71 + econf \
72 + --disable-static \
73 + --enable-python
74 +}
75 +
76 +src_compile() {
77 + emake all $(use doc && echo doxy)
78 +}
79 +
80 +src_test() {
81 + emake -C tests
82 +}
83 +
84 +src_install() {
85 + default
86 + use doc && dodoc -r doc/doxygen/.
87 + use examples && dodoc examples/*.cc
88 +
89 + find "${ED}" -name '*.la' -delete || die
90 +}