summaryrefslogtreecommitdiff
blob: 0cc634dcd45a5769f99b4c6a2f1b3b73847f6d16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/unadf/unadf-0.7.9b.ebuild,v 1.2 2005/07/07 09:04:15 dholm Exp $

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="~ppc ~x86"
IUSE=""
DEPEND="app-arch/unzip"
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/*
}