summaryrefslogtreecommitdiff
blob: 98e0357331eec36f0d3a06a115285fdb4121d95a (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/undms/undms-1.3.ebuild,v 1.6 2009/10/12 17:02:12 halcy0n Exp $

inherit eutils

DESCRIPTION="Decompress Amiga DMS disk images to ADF"
SRC_URI="ftp://us.aminet.net/pub/aminet/misc/unix/${P}.c.Z ftp://us.aminet.net/pub/aminet/misc/unix/${P}.c.Z.readme"
HOMEPAGE="ftp://us.aminet.net/pub/aminet/misc/unix/${P}.c.Z.readme"
LICENSE="freedist"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""

DEPEND="app-arch/ncompress"

src_unpack() {
	mkdir "${S}"
	uncompress -dc "${DISTDIR}"/${P}.c.Z > "${S}"/undms.c
	cp "${DISTDIR}"/${P}.c.Z.readme  "${S}"/${P}.c.Z.readme
}

src_compile() {
	gcc ${CFLAGS} -o undms undms.c || die "Compilation failed"
}

src_install() {
	dobin undms
	dodoc ${P}.c.Z.readme
}