blob: 54836059eb278dd9f83b1e92d85111f20a7e39cb (
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
40
41
42
43
44
45
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/rox-base/rox-clib/rox-clib-2.1.5.ebuild,v 1.3 2006/11/15 15:57:54 lack Exp $
DESCRIPTION="A library for ROX applications written in C."
HOMEPAGE="http://www.kerofin.demon.co.uk/rox/ROX-CLib.html"
MY_PN="ROX-CLib"
SRC_URI="http://www.kerofin.demon.co.uk/rox/${MY_PN}-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc"
IUSE=""
RDEPEND=">=rox-base/rox-2.1.0"
DEPEND="$RDEPEND
>=dev-util/pkgconfig-0.20"
S=${WORKDIR}/ROX-CLib
src_compile() {
# Most rox self-compiles have a 'read' call to wait for the user to
# press return if the compile fails.
# Find and remove this:
sed -i.bak -e 's/\<read WAIT\>/#read/' AppRun
./AppRun --compile || die "Could not make ROX-CLib. Sorry."
# Restore the original AppRun
mv AppRun.bak AppRun
}
src_install() {
rm -rf src || die
dodir /usr/lib/ROX-CLib
cp -rf * ${D}/usr/lib/ROX-CLib
cp -rf .* ${D}/usr/lib/ROX-CLib
}
|