diff options
author | 2017-05-18 05:02:23 +0300 | |
---|---|---|
committer | 2017-05-31 18:22:51 +0200 | |
commit | 0c565ccf7ff85fef6927960f00c0f4aa33519ccb (patch) | |
tree | 0431f5cb35609efb253ce0c1c99c41c726c963bf /app-cdr/uif2iso/uif2iso-0.1.7c-r1.ebuild | |
parent | dev-lang/gforth: keyword for ~x64-macos. (diff) | |
download | gentoo-0c565ccf7ff85fef6927960f00c0f4aa33519ccb.tar.gz gentoo-0c565ccf7ff85fef6927960f00c0f4aa33519ccb.tar.bz2 gentoo-0c565ccf7ff85fef6927960f00c0f4aa33519ccb.zip |
app-cdr/uif2iso: EAPI="6", fix LICENSE and tests, keyword for ~x64-macos.
Closes: https://github.com/gentoo/gentoo/pull/4668
Diffstat (limited to 'app-cdr/uif2iso/uif2iso-0.1.7c-r1.ebuild')
-rw-r--r-- | app-cdr/uif2iso/uif2iso-0.1.7c-r1.ebuild | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/app-cdr/uif2iso/uif2iso-0.1.7c-r1.ebuild b/app-cdr/uif2iso/uif2iso-0.1.7c-r1.ebuild new file mode 100644 index 000000000000..97d523632af7 --- /dev/null +++ b/app-cdr/uif2iso/uif2iso-0.1.7c-r1.ebuild @@ -0,0 +1,41 @@ +# 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 uif (MagicISO) to iso" +HOMEPAGE="http://aluigi.altervista.org/mytoolz.htm#uif2iso" +SRC_URI="mirror://gentoo/${P}.zip + test? ( https://yegortimoshenko.s3.amazonaws.com/${PN}-test.iso + https://yegortimoshenko.s3.amazonaws.com/${PN}-test.uif )" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="test" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND} + app-arch/unzip" + +S="${WORKDIR}" + +src_compile() { + emake CC="$(tc-getCC)" -C src -f - <<-'EOF' + CPPFLAGS += -DMAGICISO_IS_SHIT + LDLIBS = -lz + uif2iso: $(patsubst %.c,%.o,$(wildcard *.c)) + EOF +} + +src_test() { + einfo "checking that uif -> iso matches the expected output" + src/${PN} "${DISTDIR}/${PN}-test.uif" "${T}/${PN}-test.iso" # always returns 1 + diff "${DISTDIR}/${PN}-test.iso" "${T}/${PN}-test.iso" || die "unexpected iso" +} + +src_install() { + dobin src/${PN} + dodoc ${PN}.txt README +} |