commit: e37e23adc7675425c59b79c24c56634ba2793dc9
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 28 07:35:02 2024 +0000
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sun Apr 28 07:35:58 2024 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e37e23ad
sci-physics/heppdt: EAPI 6 -> 8
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>
...-3.04.01-r1.ebuild => heppdt-3.04.01-r2.ebuild} | 25 ++++++++--------------
1 file changed, 9 insertions(+), 16 deletions(-)
diff --git a/sci-physics/heppdt/heppdt-3.04.01-r1.ebuild
b/sci-physics/heppdt/heppdt-3.04.01-r2.ebuild
similarity index 58%
rename from sci-physics/heppdt/heppdt-3.04.01-r1.ebuild
rename to sci-physics/heppdt/heppdt-3.04.01-r2.ebuild
index 9f5e3c36d28e..8751a4c1512d 100644
--- a/sci-physics/heppdt/heppdt-3.04.01-r1.ebuild
+++ b/sci-physics/heppdt/heppdt-3.04.01-r2.ebuild
@@ -1,33 +1,26 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=8
inherit autotools
-MY_P=HepPDT-${PV}
-
DESCRIPTION="Data about each particle from the Review of Particle Properties"
HOMEPAGE="http://lcgapp.cern.ch/project/simu/HepPDT/"
-SRC_URI="http://lcgapp.cern.ch/project/simu/HepPDT/download/${MY_P}.tar.gz"
+SRC_URI="http://lcgapp.cern.ch/project/simu/HepPDT/download/HepPDT-${PV}.tar.gz"
+S=${WORKDIR}/HepPDT-${PV}
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc examples static-libs"
-S="${WORKDIR}/${MY_P}"
-
src_prepare() {
default
# respect user flags
- sed -i \
- -e '/AC_SUBST(AM_CXXFLAGS)/d' \
- configure.ac || die
+ sed -i configure.ac -e '/AC_SUBST(AM_CXXFLAGS)/d' || die
# directories
- sed -i \
- -e 's:$(prefix)/data:$(datadir)/${PN}:g' \
- data/Makefile.am || die
+ sed -i data/Makefile.am -e 's:$(prefix)/data:$(datadir)/${PN}:g' || die
eautoreconf
}
@@ -44,11 +37,11 @@ src_install() {
default
if use doc; then
- mv "${ED%/}"/usr/doc/* "${ED%/}"/usr/share/doc/${PF}/ || die
+ mv "${ED}"/usr/doc/* "${ED}"/usr/share/doc/${PF}/ || die
fi
if use examples; then
- mv "${ED%/}"/usr/examples "${ED%/}"/usr/share/doc/${PF}/ || die
+ mv "${ED}"/usr/examples "${ED}"/usr/share/doc/${PF}/ || die
docompress -x /usr/share/doc/${PF}/examples
fi
- rm -rf "${ED%/}"/usr/{doc,examples} || die
+ rm -rf "${ED}"/usr/{doc,examples} || die
}