diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-07-27 03:00:39 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-07-27 03:00:39 +0100 |
commit | fe618c8b8c934661d2297b2aeb0615a48e787691 (patch) | |
tree | 24a8209687e0ff34205acd703b6b80e7c6897f81 /app-cdr/uif2iso/uif2iso-0.1.7c-r2.ebuild | |
parent | 1d4cc2fdaa7a04ed1fe39b6cf1d892bd83bd8030 (diff) |
gentoo auto-resync : 27:07:2022 - 03:00:38
Diffstat (limited to 'app-cdr/uif2iso/uif2iso-0.1.7c-r2.ebuild')
-rw-r--r-- | app-cdr/uif2iso/uif2iso-0.1.7c-r2.ebuild | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/app-cdr/uif2iso/uif2iso-0.1.7c-r2.ebuild b/app-cdr/uif2iso/uif2iso-0.1.7c-r2.ebuild new file mode 100644 index 000000000000..ae20184cc167 --- /dev/null +++ b/app-cdr/uif2iso/uif2iso-0.1.7c-r2.ebuild @@ -0,0 +1,45 @@ +# 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 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 + )" +S="${WORKDIR}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="sys-libs/zlib" +DEPEND="${RDEPEND}" +BDEPEND="app-arch/unzip" + +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/uif2iso "${DISTDIR}"/uif2iso-test.uif "${T}"/uif2iso-test.iso # always returns 1 + diff "${DISTDIR}"/uif2iso-test.iso "${T}"/uif2iso-test.iso || die "unexpected iso" +} + +src_install() { + dobin src/uif2iso + dodoc uif2iso.txt README +} |