summaryrefslogtreecommitdiff
blob: 56cbda57337576053f7149a284f1d018c00c1ecd (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/open_c-lit/open_c-lit-1.4.ebuild,v 1.4 2004/10/15 16:16:32 dholm Exp $

MY_PV=${PV//.}
DESCRIPTION="Open Convert .LIT tool"
HOMEPAGE="http://www.kyz.uklinux.net/convlit.php"
SRC_URI="http://www.kyz.uklinux.net/downloads/${P}.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
RESTRICT="fetch"

DEPEND=""

S=${WORKDIR}/clit${MY_PV}src

src_unpack() {
	unpack ${A}
	cd ${S}
	sed -i "/^CFLAGS=/s:-O2:${CFLAGS}:" */Makefile
}

src_compile() {
	cd ${S}/lib
	emake || die
	cd ${S}/clit${MY_PV}
	emake || die
}

src_install() {
	dodoc README
	cd clit${MY_PV}
	dobin clit || die "dobin failed"
	dodoc BUGS CHANGES
}