From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 D1B6E15808B for ; Fri, 27 Sep 2024 09:08:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 32CE7E2A59; Fri, 27 Sep 2024 09:08:56 +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 10332E2A59 for ; Fri, 27 Sep 2024 09:08:56 +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 378A334308F for ; Fri, 27 Sep 2024 09:08:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A140114CA for ; Fri, 27 Sep 2024 09:08:53 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1727427912.f9ad5529344701563fcc3cae7bba77a5ab529be9.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-physics/fastjet/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-physics/fastjet/Manifest sci-physics/fastjet/fastjet-3.4.3.ebuild sci-physics/fastjet/fastjet-9999.ebuild sci-physics/fastjet/metadata.xml X-VCS-Directories: sci-physics/fastjet/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: f9ad5529344701563fcc3cae7bba77a5ab529be9 X-VCS-Branch: master Date: Fri, 27 Sep 2024 09:08:53 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 62ec921b-d231-4a45-b9c0-4ed2749e3ca9 X-Archives-Hash: d1ea1cc721622fafea082965facce78d commit: f9ad5529344701563fcc3cae7bba77a5ab529be9 Author: Alexander Puck Neuwirth neuwirth-informatik de> AuthorDate: Wed Sep 25 15:32:08 2024 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Fri Sep 27 09:05:12 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f9ad5529 sci-physics/fastjet: add 3.4.3, 9999 Signed-off-by: Alexander Puck Neuwirth neuwirth-informatik.de> Closes: https://github.com/gentoo/gentoo/pull/38770 Signed-off-by: Andrew Ammerlaan gentoo.org> sci-physics/fastjet/Manifest | 1 + sci-physics/fastjet/fastjet-3.4.3.ebuild | 89 ++++++++++++++++++++++++++++++++ sci-physics/fastjet/fastjet-9999.ebuild | 89 ++++++++++++++++++++++++++++++++ sci-physics/fastjet/metadata.xml | 3 ++ 4 files changed, 182 insertions(+) diff --git a/sci-physics/fastjet/Manifest b/sci-physics/fastjet/Manifest index 4616587b1dd2..dd9023e15b4d 100644 --- a/sci-physics/fastjet/Manifest +++ b/sci-physics/fastjet/Manifest @@ -1,2 +1,3 @@ DIST fastjet-3.4.0.tar.gz 2959127 BLAKE2B c99e89ee5cea3fd4e3edebdfebb50efd3c58e7ab15215a384c44120ac930882bd2d4e446b61977fe65dcc49056b958c6510abb7c5889024ae49776b1955bd023 SHA512 af8aeb6197f6bd82ec5f127647f49cd5d455c20e614c23d928b850fc97bc12c70cf6e3b09f1bb0308c2a080fcd4fa13416eea0195695060efaa0e400a687d7b7 DIST fastjet-3.4.2.tar.gz 2973605 BLAKE2B f51b26fdb2611084679a79905c6da460edcf3ad3139bdb2384fe95600e474f4bdb028b24c43456e018c5fb9535491c929d1ec2032d184536efd6b2ef16d54ae1 SHA512 e7702699e67ba5af73f1fe931fe5f67b9f52bb2f0cfdc57dbacf408741e6271ed160503fe6142c92621287df49b441ce7562af589353b199fed09a4c4c839f3f +DIST fastjet-3.4.3.tar.gz 2984798 BLAKE2B ba203a21c5658555606e4ed83fce4cb3dc0a077b0407c336255a7be2ea861a196d57c2f7db03dbd4dad946b8c68827d0d967b3c009d62232d39827342c7ae492 SHA512 9df7fb6ea1082473929d5963eb58c3d420557a2f52e793432f5bd838e8f7212d0a3c3606b98c3dfeeb3a76ffac73926cb7822aaf499d64a65b2cb2bb845fdb77 diff --git a/sci-physics/fastjet/fastjet-3.4.3.ebuild b/sci-physics/fastjet/fastjet-3.4.3.ebuild new file mode 100644 index 000000000000..f8b55a9cec69 --- /dev/null +++ b/sci-physics/fastjet/fastjet-3.4.3.ebuild @@ -0,0 +1,89 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED=plugins +PYTHON_COMPAT=( python3_{10..12} ) +DOCS_BUILDER="doxygen" +DOCS_DEPEND=" + media-gfx/graphviz + media-libs/freetype + virtual/latex-base +" + +inherit autotools docs flag-o-matic fortran-2 python-single-r1 + +DESCRIPTION="A software package for jet finding in pp and e+e- collisions" +HOMEPAGE="https://fastjet.fr/" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/fastjet/fastjet" +else + SRC_URI="https://fastjet.fr/repo/${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="cgal examples python +plugins" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# cgal is header-only in version 5.4 and up. We need to use the +# special --enable-cgal-header-only argument to use these versions. +DEPEND=" + cgal? ( >=sci-mathematics/cgal-5.4:=[shared(+)] ) + plugins? ( sci-physics/siscone:= ) + python? ( ${PYTHON_DEPS} ) +" +RDEPEND="${DEPEND}" +BDEPEND="app-shells/bash" + +PATCHES=( + "${FILESDIR}"/${PN}-3.4.0-system-siscone.patch + "${FILESDIR}"/${PN}-3.4.0-gfortran.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + use cgal && \ + has_version 'sci-mathematics/cgal[gmp]' && append-libs -lgmp + # only bash compatible + sed -i 's#/bin/sh#/bin/bash#g' ./configure || die + econf \ + $(use_enable cgal cgal-header-only) \ + $(use_enable plugins allplugins) \ + $(use_enable plugins allcxxplugins) \ + --enable-shared \ + --enable-static=no \ + --disable-static \ + --disable-auto-ptr \ + $(use_enable python pyext) +} + +src_compile() { + default + docs_compile +} + +src_install() { + default + use python && python_optimize + if use examples; then + emake -C example maintainer-clean + find example -iname 'makefile*' -delete || die + + docinto examples + dodoc -r example/. + docompress -x /usr/share/doc/${PF}/examples + fi + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-physics/fastjet/fastjet-9999.ebuild b/sci-physics/fastjet/fastjet-9999.ebuild new file mode 100644 index 000000000000..f8b55a9cec69 --- /dev/null +++ b/sci-physics/fastjet/fastjet-9999.ebuild @@ -0,0 +1,89 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +FORTRAN_NEEDED=plugins +PYTHON_COMPAT=( python3_{10..12} ) +DOCS_BUILDER="doxygen" +DOCS_DEPEND=" + media-gfx/graphviz + media-libs/freetype + virtual/latex-base +" + +inherit autotools docs flag-o-matic fortran-2 python-single-r1 + +DESCRIPTION="A software package for jet finding in pp and e+e- collisions" +HOMEPAGE="https://fastjet.fr/" +if [[ ${PV} == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://gitlab.com/fastjet/fastjet" +else + SRC_URI="https://fastjet.fr/repo/${P}.tar.gz" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +fi + +LICENSE="GPL-2+" +SLOT="0" +IUSE="cgal examples python +plugins" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +# cgal is header-only in version 5.4 and up. We need to use the +# special --enable-cgal-header-only argument to use these versions. +DEPEND=" + cgal? ( >=sci-mathematics/cgal-5.4:=[shared(+)] ) + plugins? ( sci-physics/siscone:= ) + python? ( ${PYTHON_DEPS} ) +" +RDEPEND="${DEPEND}" +BDEPEND="app-shells/bash" + +PATCHES=( + "${FILESDIR}"/${PN}-3.4.0-system-siscone.patch + "${FILESDIR}"/${PN}-3.4.0-gfortran.patch +) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + default + eautoreconf +} + +src_configure() { + use cgal && \ + has_version 'sci-mathematics/cgal[gmp]' && append-libs -lgmp + # only bash compatible + sed -i 's#/bin/sh#/bin/bash#g' ./configure || die + econf \ + $(use_enable cgal cgal-header-only) \ + $(use_enable plugins allplugins) \ + $(use_enable plugins allcxxplugins) \ + --enable-shared \ + --enable-static=no \ + --disable-static \ + --disable-auto-ptr \ + $(use_enable python pyext) +} + +src_compile() { + default + docs_compile +} + +src_install() { + default + use python && python_optimize + if use examples; then + emake -C example maintainer-clean + find example -iname 'makefile*' -delete || die + + docinto examples + dodoc -r example/. + docompress -x /usr/share/doc/${PF}/examples + fi + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-physics/fastjet/metadata.xml b/sci-physics/fastjet/metadata.xml index 8a82eeb2f12f..8e41b6b197d7 100644 --- a/sci-physics/fastjet/metadata.xml +++ b/sci-physics/fastjet/metadata.xml @@ -18,4 +18,7 @@ Use sci-mathematics/cgal instead of bundled algorithms + + fastjet/fastjet +