diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 15:03:33 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-10-30 15:03:33 +0000 |
commit | c9388864702fdd7b0b56c049eddb41bdb9054dcb (patch) | |
tree | 3595822471cd11e6f9f92565ab81ab9c5ee39c3f /sci-physics/lhapdf/lhapdf-6.5.3.ebuild | |
parent | a41f630aea0b4b71a6c9a088571f1eaaf8413d53 (diff) |
gentoo auto-resync : 30:10:2022 - 15:03:33
Diffstat (limited to 'sci-physics/lhapdf/lhapdf-6.5.3.ebuild')
-rw-r--r-- | sci-physics/lhapdf/lhapdf-6.5.3.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/sci-physics/lhapdf/lhapdf-6.5.3.ebuild b/sci-physics/lhapdf/lhapdf-6.5.3.ebuild new file mode 100644 index 000000000000..f41aa16191cb --- /dev/null +++ b/sci-physics/lhapdf/lhapdf-6.5.3.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..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=" + dev-libs/boost:= + ${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-6.5.2-py.patch +) + +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 +} |