blob: c5ebc0a019a4ec1ad8a6b0195b68ac787779e6be (
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/rox-base/rox/rox-2.2.0.ebuild,v 1.9 2006/10/23 14:27:45 lack Exp $
inherit eutils
DESCRIPTION="ROX is a desktop environment, like GNOME, KDE and XFCE. It is an attempt to bring some of the good features from RISC OS to Unix and Linux."
HOMEPAGE="http://rox.sourceforge.net/"
SRC_URI="mirror://sourceforge/rox/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc alpha sparc amd64"
DEPEND=">=x11-libs/gtk+-2.2
>=dev-libs/glib-2.2
>=dev-libs/libxml2-2.4.23
>=x11-misc/shared-mime-info-0.9
>=dev-util/pkgconfig-0.20
svg? ( gnome-base/librsvg )"
RDEPEND=">=x11-libs/gtk+-2.2
>=dev-libs/glib-2.2
>=dev-libs/libxml2-2.4.23
>=x11-misc/shared-mime-info-0.9
svg? ( gnome-base/librsvg )"
IUSE="svg"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/${P}-gcc4.patch
}
src_compile() {
# rm ROX-Filer/src/configure # see bug #26162
# If the env variable PLATFORM is set, rox will build using that
# string. This causes issues as while the package will compile fine,
# it will try to rebuild it the first time rox is run because it will
# not be able to find a proper executable to run.
use sparc && unset PLATFORM
cd ROX-Filer
# 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 "make failed"
(cd src; make clean) > /dev/null
# Restore the original AppRun
mv AppRun.bak AppRun
}
src_install() {
doman rox.1
dodir /usr/bin
cp -rf ROX-Filer/ ${D}/usr/share/
echo "#!/bin/sh" > "${D}/usr/bin/rox"
echo "exec /usr/share/ROX-Filer/AppRun \"\$@\"" >> "${D}/usr/bin/rox"
chmod a+x ${D}/usr/bin/rox
insinto /usr/share/mime/packages
doins rox.xml
dodir /usr/share/
cp -rf Choices ${D}/usr/share/
dodir /usr/share/Choices/Mime-icons
keepdir /usr/share/Choices/Mime-icons
dodir /usr/share/icons
dosym /usr/share/ROX-Filer/ROX /usr/share/icons/ROX
}
pkg_postinst() {
update-mime-database /usr/share/mime
}
|