commit: 9344a45969aa7cdc27c86c10c17455fabc6a3437 Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Sun Feb 18 12:17:16 2024 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Mon Feb 19 15:47:17 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=9344a459
sci-physics/hoppet: new package, add 1.2.0 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> Co-authored-by: Andrew Nowa Ammerlaan <andrewammerlaan <AT> gentoo.org> Closes: https://github.com/gentoo/sci/pull/1242 sci-physics/hoppet/hoppet-1.2.0.ebuild | 35 ++++++++++++++++++++++++++++++++++ sci-physics/hoppet/metadata.xml | 19 ++++++++++++++++++ 2 files changed, 54 insertions(+) diff --git a/sci-physics/hoppet/hoppet-1.2.0.ebuild b/sci-physics/hoppet/hoppet-1.2.0.ebuild new file mode 100644 index 000000000..337881026 --- /dev/null +++ b/sci-physics/hoppet/hoppet-1.2.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit fortran-2 + +DESCRIPTION="Higher Order Perturbative Parton Evolution Toolkit" +HOMEPAGE=" + https://hoppet.hepforge.org/ + https://github.com/gavinsalam/hoppet +" +SRC_URI="https://hoppet.hepforge.org/downloads/${P}.tgz" + +SLOT="0" +LICENSE="GPL-3+" +KEYWORDS="~amd64" + + +src_configure() { + default + # own custom configure + ./configure --prefix="${EPREFIX}"/usr FFLAGS="${FFLAGS} -fPIC" || die +} + +src_install() { + # Fix install to ED + sed -i "s#scripts/install-sh hoppet-config#\##g" Makefile || die + sed -i "s#/usr/lib/libhoppet#${ED}/usr/$(get_libdir)/libhoppet#g" src/Makefile || die + sed -i "s#/usr/include/hoppet#${ED}/usr/include/hoppet#g" src/Makefile || die + emake install + emake install-mod + dobin hoppet-config + find "${ED}" -name '*.la' -delete || die +} diff --git a/sci-physics/hoppet/metadata.xml b/sci-physics/hoppet/metadata.xml new file mode 100644 index 000000000..37900a238 --- /dev/null +++ b/sci-physics/hoppet/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>alexan...@neuwirth-informatik.de</email> + <name>Alexander Puck Neuwirth</name> + </maintainer> + <maintainer type="project"> + <email>sci-phys...@gentoo.org</email> + <name>Gentoo Physics Project</name> + </maintainer> + + <longdescription lang="en"> + HOPPET is a Fortran 95 package for carrying out DGLAP evolution and other common manipulations of parton distribution functions (PDFs). + </longdescription> + <upstream> + <remote-id type="github">gavinsalam/hoppet</remote-id> + </upstream> +</pkgmetadata>