1 |
# Copyright 1999-2010 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/app-arch/unlzx/unlzx-1.1.ebuild,v 1.27 2009/10/12 17:03:20 halcy0n Exp $ |
4 |
|
5 |
inherit toolchain-funcs |
6 |
|
7 |
DESCRIPTION="Unarchiver for Amiga LZX archives" |
8 |
SRC_URI="ftp://us.aminet.net/pub/aminet/misc/unix/${PN}.c.gz ftp://us.aminet.net/pub/aminet/misc/unix/${PN}.c.gz.readme" |
9 |
HOMEPAGE="ftp://us.aminet.net/pub/aminet/misc/unix/${PN}.c.gz.readme" |
10 |
|
11 |
SLOT="0" |
12 |
LICENSE="freedist" |
13 |
IUSE="" |
14 |
KEYWORDS="alpha amd64 ~hppa ppc sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos" |
15 |
|
16 |
src_unpack() { |
17 |
mkdir "${S}" |
18 |
gzip -dc "${DISTDIR}"/${PN}.c.gz > "${S}"/unlzx.c |
19 |
cp "${DISTDIR}"/${PN}.c.gz.readme "${S}"/${PN}.c.gz.readme |
20 |
} |
21 |
|
22 |
src_compile() { |
23 |
$(tc-getCC) ${CFLAGS} ${LDFLAGS} -o unlzx unlzx.c || die |
24 |
} |
25 |
|
26 |
src_install() { |
27 |
dobin unlzx |
28 |
dodoc unlzx.c.gz.readme |
29 |
} |