mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-24 23:47:14 -08:00
app-cdr/nrg2iso: update EAPI 6 -> 8
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI="6"
|
||||
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
|
||||
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
|
||||
@@ -18,19 +19,22 @@ SLOT="0"
|
||||
KEYWORDS="amd64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~x64-macos"
|
||||
IUSE="test"
|
||||
RESTRICT="!test? ( test )"
|
||||
DOCS=( CHANGELOG )
|
||||
|
||||
src_configure() {
|
||||
tc-export CC
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
$(tc-getCC) ${CFLAGS} ${LDFLAGS} ${PN}.c -o ${PN}
|
||||
emake nrg2iso
|
||||
}
|
||||
|
||||
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"
|
||||
./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 ${PN}
|
||||
dobin nrg2iso
|
||||
einstalldocs
|
||||
}
|
||||
Reference in New Issue
Block a user