summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-arch/unadf')
-rw-r--r--app-arch/unadf/Manifest2
-rw-r--r--app-arch/unadf/files/no.in_path.patch39
-rw-r--r--app-arch/unadf/metadata.xml7
-rw-r--r--app-arch/unadf/unadf-0.7.12.ebuild34
-rw-r--r--app-arch/unadf/unadf-0.7.9b.ebuild40
5 files changed, 122 insertions, 0 deletions
diff --git a/app-arch/unadf/Manifest b/app-arch/unadf/Manifest
new file mode 100644
index 000000000000..d27aa86899a8
--- /dev/null
+++ b/app-arch/unadf/Manifest
@@ -0,0 +1,2 @@
+DIST adflib-0.7.12.tar.bz2 135412 SHA256 41c4d0bd369f789a615118b9206905fcd07241d486cda6dece71384dbb42a1bb SHA512 d63846f0780bd57cae5ff667eb70f98a0ba3659cfd0b12b3ae2f29ac96631e522088f911b1ba6e5ee3b00620a28a802f14d93cdf8462e18a7e3f749915ab5af3 WHIRLPOOL 78399e5f9d4554bf46c1c40e0502fdc317173c36eec6196972babf9ba97a207cfd39ba3e992260528a927fe57869cbc6a875ed24e9f0797d33bd5b901b57211b
+DIST adflib.zip 254914 SHA256 d78dbc554e6bf0465ad3cf075968f5479b2a983fc1f29b482500b9f9eebb42df SHA512 fe8edf5247ba82e475f62f96fcb72d50bf80641e14e957c99694def98735eb327a67208e3460504a0d109c9497d6e81f0cd8ce07ddc73486adc9e7070a75074a WHIRLPOOL f071b5d4f6131f01db132015783f59fa680391a2fe0e8e9bc7fcb79c6b2e745ec26e1369b3e8b5e2b8ac7b8842afb2f42b4f85eab068abf10b13b8d1afbf1633
diff --git a/app-arch/unadf/files/no.in_path.patch b/app-arch/unadf/files/no.in_path.patch
new file mode 100644
index 000000000000..51de8f989fa1
--- /dev/null
+++ b/app-arch/unadf/files/no.in_path.patch
@@ -0,0 +1,39 @@
+diff -r -u ../unchanged/Lib/Makefile ./Lib/Makefile
+--- ../unchanged/Lib/Makefile 2004-08-26 00:39:58.847605592 +1000
++++ ./Lib/Makefile 2004-08-26 00:41:12.307438000 +1000
+@@ -41,7 +41,7 @@
+ # to define LITT_ENDIAN on little endian machines (intel)
+ # checks for sizeof(long)=4, sizeof(short)=2, sizeof(int)=4
+ defendian.h: myconf
+- myconf
++ ./myconf
+
+ adf_nativ.o: ${NATIV_DIR}/adf_nativ.c ${NATIV_DIR}/adf_nativ.h
+ $(CC) ${CFLAGS} -c ${NATIV_DIR}/adf_nativ.c
+Only in ../unchanged/Lib: Makefile.orig
+Only in ../unchanged/Lib: Makefile.rej
+diff -r -u ../unchanged/Lib/myconf ./Lib/myconf
+--- ../unchanged/Lib/myconf 2000-08-19 11:08:08.000000000 +1000
++++ ./Lib/myconf 2004-08-26 00:41:28.344000072 +1000
+@@ -31,17 +31,17 @@
+ gcc myctest.c -o myctest
+ rm myctest.c
+
+-if [ `myctest |cut -d' ' -f 1` != 4 ]
++if [ `./myctest |cut -d' ' -f 1` != 4 ]
+ then echo "Error : sizeof(long)!=4"
+ fi
+-if [ `myctest |cut -d' ' -f 2` != 2 ]
++if [ `./myctest |cut -d' ' -f 2` != 2 ]
+ then echo "Error : sizeof(short)!=2"
+ fi
+-if [ `myctest |cut -d' ' -f 3` != 4 ]
++if [ `./myctest |cut -d' ' -f 3` != 4 ]
+ then echo "Error :sizeof(int)!=4"
+ fi
+
+-if [ `myctest |cut -d' ' -f 4` = LITTLE ]
++if [ `./myctest |cut -d' ' -f 4` = LITTLE ]
+ then
+ echo "#ifndef LITT_ENDIAN" >defendian.h
+ echo "#define LITT_ENDIAN 1" >>defendian.h
diff --git a/app-arch/unadf/metadata.xml b/app-arch/unadf/metadata.xml
new file mode 100644
index 000000000000..c6d862855eb5
--- /dev/null
+++ b/app-arch/unadf/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>robbat2@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-arch/unadf/unadf-0.7.12.ebuild b/app-arch/unadf/unadf-0.7.12.ebuild
new file mode 100644
index 000000000000..2743c89d23fb
--- /dev/null
+++ b/app-arch/unadf/unadf-0.7.12.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils
+
+MY_PN="adflib"
+
+DESCRIPTION="Extract files from Amiga adf disk images"
+SRC_URI="http://lclevy.free.fr/${MY_PN}/${MY_PN}-${PV}.tar.bz2"
+HOMEPAGE="http://lclevy.free.fr/adflib/"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~ppc-macos ~sparc-solaris ~x86 ~x86-interix ~x86-linux ~x86-solaris"
+IUSE="static-libs"
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+src_prepare() {
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable static-libs static)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+}
diff --git a/app-arch/unadf/unadf-0.7.9b.ebuild b/app-arch/unadf/unadf-0.7.9b.ebuild
new file mode 100644
index 000000000000..f79f9060faa5
--- /dev/null
+++ b/app-arch/unadf/unadf-0.7.9b.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="Extract files from Amiga adf disk images"
+SRC_URI="http://perso.club-internet.fr/lclevy/adflib/adflib.zip"
+HOMEPAGE="http://perso.club-internet.fr/lclevy/adflib/adflib.html"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="hppa ppc x86 ~x86-interix ~x86-linux ~ppc-macos ~sparc-solaris ~x86-solaris"
+IUSE=""
+DEPEND="app-arch/unzip
+ x11-misc/makedepend"
+RDEPEND=""
+
+src_unpack() {
+ mkdir "${S}"
+ cd "${S}"
+ unzip "${DISTDIR}"/adflib.zip
+ epatch "${FILESDIR}"/no.in_path.patch
+}
+
+src_compile() {
+ cd "${S}"/Lib && make depend || die "make failed"
+ cd "${S}"/Demo && make depend || die "make failed"
+ cd "${S}" && emake lib demo || die "emake failed"
+}
+
+src_install() {
+ dobin Demo/unadf
+ dodoc README CHANGES Faq/adf_info.txt
+ docinto Docs
+ dodoc Docs/*
+ docinto Faq
+ dodoc Faq/*
+ docinto Faq/image
+ dodoc Faq/image/*
+}