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