From 58e7ac6cb63f4a2b8ae601781dcbcb2364f99dfe Mon Sep 17 00:00:00 2001 From: David Seifert Date: Tue, 26 Jul 2022 21:27:13 +0200 Subject: app-cdr/nrg2iso: update EAPI 6 -> 8 Signed-off-by: David Seifert --- app-cdr/nrg2iso/nrg2iso-0.4-r2.ebuild | 36 ------------------------------- app-cdr/nrg2iso/nrg2iso-0.4-r3.ebuild | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 36 deletions(-) delete mode 100644 app-cdr/nrg2iso/nrg2iso-0.4-r2.ebuild create mode 100644 app-cdr/nrg2iso/nrg2iso-0.4-r3.ebuild (limited to 'app-cdr/nrg2iso') diff --git a/app-cdr/nrg2iso/nrg2iso-0.4-r2.ebuild b/app-cdr/nrg2iso/nrg2iso-0.4-r2.ebuild deleted file mode 100644 index 16c6a8f6cce1..000000000000 --- a/app-cdr/nrg2iso/nrg2iso-0.4-r2.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI="6" - -inherit toolchain-funcs - -DESCRIPTION="Convert CD images from nrg (Nero) to iso" -HOMEPAGE="http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html" -SRC_URI="http://gregory.kokanosky.free.fr/v4/linux/${P}.tar.gz - test? ( - https://yegortimoshenko.s3.amazonaws.com/${PN}-test.iso - https://yegortimoshenko.s3.amazonaws.com/${PN}-test.nrg - )" - -LICENSE="GPL-2+" -SLOT="0" -KEYWORDS="amd64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-macos" -IUSE="test" -RESTRICT="!test? ( test )" -DOCS=( CHANGELOG ) - -src_compile() { - $(tc-getCC) ${CFLAGS} ${LDFLAGS} ${PN}.c -o ${PN} -} - -src_test() { - einfo "checking that nrg -> iso matches the expected output" - "${S}/${PN}" "${DISTDIR}/${PN}-test.nrg" "${T}/${PN}-test.iso" || die "conversion failed" - diff "${DISTDIR}/${PN}-test.iso" "${T}/${PN}-test.iso" || die "unexpected iso" -} - -src_install() { - dobin ${PN} - einstalldocs -} diff --git a/app-cdr/nrg2iso/nrg2iso-0.4-r3.ebuild b/app-cdr/nrg2iso/nrg2iso-0.4-r3.ebuild new file mode 100644 index 000000000000..487dbc003d53 --- /dev/null +++ b/app-cdr/nrg2iso/nrg2iso-0.4-r3.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Convert CD images from nrg (Nero) to iso" +HOMEPAGE="http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html" +SRC_URI=" + http://gregory.kokanosky.free.fr/v4/linux/${P}.tar.gz + test? ( + https://yegortimoshenko.s3.amazonaws.com/${PN}-test.iso + https://yegortimoshenko.s3.amazonaws.com/${PN}-test.nrg + )" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +src_configure() { + tc-export CC +} + +src_compile() { + emake nrg2iso +} + +src_test() { + einfo "checking that nrg -> iso matches the expected output" + ./nrg2iso "${DISTDIR}"/nrg2iso-test.nrg "${T}"/nrg2iso-test.iso || die "conversion failed" + diff "${DISTDIR}"/nrg2iso-test.iso "${T}"/nrg2iso-test.iso || die "unexpected iso" +} + +src_install() { + dobin nrg2iso + einstalldocs +} -- cgit v1.2.3-65-gdbad