From 1795cf1a52f0c5fcf50dab73e2bcd1abe2f54f8d Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 25 Dec 2022 21:17:56 +0000 Subject: sys-block/gpart: EAPI 8 Signed-off-by: Sam James --- sys-block/gpart/gpart-0.3-r1.ebuild | 31 +++++++++++++++++++++++++++++++ sys-block/gpart/gpart-0.3.ebuild | 34 ---------------------------------- 2 files changed, 31 insertions(+), 34 deletions(-) create mode 100644 sys-block/gpart/gpart-0.3-r1.ebuild delete mode 100644 sys-block/gpart/gpart-0.3.ebuild (limited to 'sys-block/gpart') diff --git a/sys-block/gpart/gpart-0.3-r1.ebuild b/sys-block/gpart/gpart-0.3-r1.ebuild new file mode 100644 index 000000000000..69972af8e900 --- /dev/null +++ b/sys-block/gpart/gpart-0.3-r1.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools + +DESCRIPTION="Partition table rescue/guessing tool" +HOMEPAGE="https://github.com/baruch/gpart" +SRC_URI="https://github.com/baruch/gpart/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ~hppa x86" + +PATCHES=( + "${FILESDIR}"/${PN}-0.1h-errno.patch + "${FILESDIR}"/${PN}-0.3-build.patch +) + +src_prepare() { + default + + # Fix version string in build environment. + if [[ "$(awk -F , '/^AC_INIT/ {print $2}' configure.ac)" != ${PV} ]] ; then + sed "/^AC_INIT/s@, [[:digit:]\.]\+[[:alnum:]-]*,@, ${PV},@" \ + -i configure.ac || die + fi + + eautoreconf +} diff --git a/sys-block/gpart/gpart-0.3.ebuild b/sys-block/gpart/gpart-0.3.ebuild deleted file mode 100644 index 441fcf000345..000000000000 --- a/sys-block/gpart/gpart-0.3.ebuild +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools - -DESCRIPTION="Partition table rescue/guessing tool" -HOMEPAGE="https://github.com/baruch/gpart" -SRC_URI="https://github.com/baruch/gpart/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~hppa x86" -IUSE="" - -RDEPEND="" - -PATCHES=( - "${FILESDIR}"/${PN}-0.1h-errno.patch - "${FILESDIR}"/${PN}-0.3-build.patch -) - -src_prepare() { - default - - # Fix version string in build environment. - if [[ "$(awk -F , '/^AC_INIT/ {print $2}' configure.ac)" != ${PV} ]] ; then - sed "/^AC_INIT/s@, [[:digit:]\.]\+[[:alnum:]-]*,@, ${PV},@" \ - -i configure.ac || die - fi - - eautoreconf -} -- cgit v1.2.3-65-gdbad