commit: fded3a905e1414233d7d90fe95ad7e2affdc1bdb Author: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> AuthorDate: Tue Feb 27 14:08:07 2024 +0000 Commit: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik <DOT> de> CommitDate: Tue Feb 27 15:30:41 2024 +0000 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=fded3a90
sci-physics/apfelxx: new package, add 4.8.0 Closes: https://github.com/gentoo/sci/pull/1247 Signed-off-by: Alexander Puck Neuwirth <alexander <AT> neuwirth-informatik.de> sci-physics/apfelxx/apfelxx-4.8.0.ebuild | 39 ++++++++++++++++++++++++++++++++ sci-physics/apfelxx/metadata.xml | 18 +++++++++++++++ 2 files changed, 57 insertions(+) diff --git a/sci-physics/apfelxx/apfelxx-4.8.0.ebuild b/sci-physics/apfelxx/apfelxx-4.8.0.ebuild new file mode 100644 index 000000000..d31224fa3 --- /dev/null +++ b/sci-physics/apfelxx/apfelxx-4.8.0.ebuild @@ -0,0 +1,39 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +CMAKE_MAKEFILE_GENERATOR="emake" +PYTHON_COMPAT=( python3_{10..12} ) + +inherit cmake python-single-r1 + +DESCRIPTION="Object oriented rewriting of the APFEL evolution code" +HOMEPAGE="https://github.com/vbertone/apfelxx" +SRC_URI="https://github.com/vbertone/apfelxx/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RDEPEND="${PYTHON_DEPS}" + +src_prepare() { + default + cmake_src_prepare + sed -i "/prefix./s/\/lib/\/$(get_libdir)/g" CMakeLists.txt || die + sed -i "s#DESTINATION lib#DESTINATION $(get_libdir)#g" CMakeLists.txt || die +} + +src_configure() { + local mycmakeargs=( + -DCMAKE_INSTALL_PREFIX="${EPREFIX}"/usr + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + python_optimize +} diff --git a/sci-physics/apfelxx/metadata.xml b/sci-physics/apfelxx/metadata.xml new file mode 100644 index 000000000..27c6de8e1 --- /dev/null +++ b/sci-physics/apfelxx/metadata.xml @@ -0,0 +1,18 @@ +<?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"> + APFEL++ is a C++ rewriting of the Fortran 77 evolution code APFEL. However, APFEL++ is based on a completely new code design and guarantees a better performance along with a more optimal memory management. The new modular structure allows for better maintainability and easier extensibility. This makes APFEL++ suitable for a wide range of tasks: from the solution of the DGLAP evolution equations to the computation of deep-inelastic-scattering (DIS) and single-inclusive-annihilation cross sections. Also more complex computations, such as differential semi-inclusive DIS and Drell-Yan cross sections, are easily implementable in APFEL++. + </longdescription> + <upstream> + <remote-id type="github">vbertone/apfelxx</remote-id> + </upstream> +</pkgmetadata>