diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-19 06:30:51 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-19 06:30:51 +0000 |
commit | f8bb2d659372d0add11c589dcb006d0b7f8822ae (patch) | |
tree | 5d64f4f593db363260360200660abcd8ff00d1c6 /sci-physics/lhapdf/lhapdf-6.5.5.ebuild | |
parent | f57e008aa126ccdca95f7424e4d24a1a83a49682 (diff) |
Diffstat (limited to 'sci-physics/lhapdf/lhapdf-6.5.5.ebuild')
-rw-r--r-- | sci-physics/lhapdf/lhapdf-6.5.5.ebuild | 78 |
1 files changed, 78 insertions, 0 deletions
diff --git a/sci-physics/lhapdf/lhapdf-6.5.5.ebuild b/sci-physics/lhapdf/lhapdf-6.5.5.ebuild new file mode 100644 index 000000000000..5146d3cd56fc --- /dev/null +++ b/sci-physics/lhapdf/lhapdf-6.5.5.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..13} ) +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/" + +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 ~x86" +fi + +LICENSE="GPL-2" +SLOT="0" +IUSE="examples +python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-cpp/yaml-cpp + python? ( ${PYTHON_DEPS} ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + python? ( + $(python_gen_cond_dep ' + >=dev-python/cython-0.19[${PYTHON_USEDEP}] + ') + ) +" + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + local -x CONFIG_SHELL="${EPREFIX}/bin/bash" + econf \ + --disable-static \ + --with-yaml-cpp="${EPREFIX}/usr" \ + $(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 +} |