From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1499174-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F391F15A7DB for <garchives@archives.gentoo.org>; Wed, 22 Mar 2023 01:20:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 46B74E08A2; Wed, 22 Mar 2023 01:20:36 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2DDAEE08A2 for <gentoo-commits@lists.gentoo.org>; Wed, 22 Mar 2023 01:20:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3C46D340E51 for <gentoo-commits@lists.gentoo.org>; Wed, 22 Mar 2023 01:20:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BF1D28F0 for <gentoo-commits@lists.gentoo.org>; Wed, 22 Mar 2023 01:20:32 +0000 (UTC) From: "Sam James" <sam@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" <sam@gentoo.org> Message-ID: <1679447806.ef713f0773b8e1922f8ca091f73f5601f7c5f9a9.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/lhapdf/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-physics/lhapdf/lhapdf-9999.ebuild X-VCS-Directories: sci-physics/lhapdf/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ef713f0773b8e1922f8ca091f73f5601f7c5f9a9 X-VCS-Branch: master Date: Wed, 22 Mar 2023 01:20:32 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d469c23d-e57a-4782-a290-45b0c1c44cb4 X-Archives-Hash: d1d5223ca2148cff419ba2278195ebd0 commit: ef713f0773b8e1922f8ca091f73f5601f7c5f9a9 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Mon Mar 20 13:18:37 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Mar 22 01:16:46 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef713f07 sci-physics/lhapdf: add 9999 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> Closes: https://github.com/gentoo/gentoo/pull/30260 Signed-off-by: Sam James <sam <AT> gentoo.org> sci-physics/lhapdf/lhapdf-9999.ebuild | 69 +++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) 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 +}