diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-cdr/nrg2iso/nrg2iso-0.4-r2.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-cdr/nrg2iso/nrg2iso-0.4-r2.ebuild')
-rw-r--r-- | app-cdr/nrg2iso/nrg2iso-0.4-r2.ebuild | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/app-cdr/nrg2iso/nrg2iso-0.4-r2.ebuild b/app-cdr/nrg2iso/nrg2iso-0.4-r2.ebuild new file mode 100644 index 000000000000..30048df034eb --- /dev/null +++ b/app-cdr/nrg2iso/nrg2iso-0.4-r2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2017 Gentoo Foundation +# 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 ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos" +IUSE="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 +} |