summaryrefslogtreecommitdiff
blob: 79209005f31d4f0fa9662d4b8a1f20a51ebf9873 (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-2005 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.5 2005/01/01 11:49:58 eradicator 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
}