blob: 1ed3dc6eb2a0fbac133c38d63b8b7b896b2aa0ed (
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
46
47
48
49
50
51
52
53
54
55
|
# Copyright 1999-2008 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.9-r1.ebuild,v 1.6 2008/05/12 01:11:38 lack Exp $
inherit multilib
MY_PN="ROX-CLib"
DESCRIPTION="A library for ROX applications written in C."
HOMEPAGE="http://rox.sourceforge.net/"
SRC_URI="http://www.kerofin.demon.co.uk/rox/${MY_PN}-${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ~sparc x86"
IUSE=""
RDEPEND=">=x11-libs/gtk+-2.0.1
>=dev-libs/libxml2-2.4.0"
DEPEND="$RDEPEND
>=dev-util/pkgconfig-0.20"
S=${WORKDIR}/ROX-CLib
APPNAME=${MY_PN}
src_compile() {
chmod 0755 AppRun
# 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() {
local baselibdir="/usr/$(get_libdir)"
# clean up source instead of remove it!
( cd src && make clean )
# remove silly .cvs files
find . -name '.cvs*' | xargs rm -f >/dev/null 2>&1
dodoc ${baselibdir}/${APPNAME}
dodir ${baselibdir}/${APPNAME}
cp -r . "${D}${baselibdir}/${APPNAME}"
(
cd Help
dodoc Authors Changes ToDo README Versions
)
}
|