blob: 0dc98570ec6c4683c9cb350a0e1064dfeb1a2d46 (
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-base/gnome-core/gnome-core-1.4.1.ebuild,v 1.11 2003/09/06 23:51:37 msterret Exp $
IUSE="kde nls cups"
inherit libtool
S=${WORKDIR}/${P}
DESCRIPTION="Core components of the GNOME desktop environment"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/stable/sources/gnome-core/${P}.tar.bz2"
HOMEPAGE="http://www.gnome.org/"
KEYWORDS="x86 ppc sparc "
LICENSE="GPL-2"
SLOT="0"
RDEPEND="=gnome-base/control-center-1.4*
=gnome-base/libglade-0.17*
>=gnome-base/gnome-libs-1.4.1.2-r1
>=media-libs/gdk-pixbuf-0.16.0-r1
cups? ( >=gnome-base/gnome-print-0.35 )
!gnome-base/gnome-session
!x11-terms/gnome-terminal
!gnome-base/gnome-desktop"
# This should not be installed if the user is using Gnome2, as it
# overwrite files from those packages. If some app needs gnome-core
# for the panel-applet, please fix it to use:
#
# DEPEND="<gnome-base/gnome-panel-1.90"
#
# instead. Also, please check with Spider before you change this next time.
DEPEND="${RDEPEND}
>=sys-apps/tcp-wrappers-7.6
>=app-text/scrollkeeper-0.2
nls? ( sys-devel/gettext
>=dev-util/intltool-0.11 )"
src_unpack() {
unpack ${A}
cd ${S}
# Fix build error
patch -p0 <${FILESDIR}/${P}-configure.in.patch || die "failed patch"
# Libtoolize
elibtoolize
aclocal -I macros
automake --add-missing
autoconf
}
src_compile() {
local myconf=""
local myldflags=""
use nls || myconf="${myconf} --disable-nls"
if [ "`use kde`" ]
then
myconf="${myconf} --with-kde-datadir=/usr/share"
fi
# Fix build against gdk-pixbuf-0.12 and later
CFLAGS="${CFLAGS} `gdk-pixbuf-config --cflags`"
./configure --host=${CHOST} \
--prefix=/usr \
--mandir=/usr/share/man \
--sysconfdir=/etc \
--localstatedir=/var/lib \
${myconf} || die
cd panel
cp gnome-panel-screenshot.c gnome-panel-screenshot.c.orig
cat gnome-panel-screenshot.c.orig | \
sed 's:\(^#include <errno.h>\):\1\n#include <locale.h>:' \
> gnome-panel-screenshot.c
cd ${S}
emake || die
}
src_install() {
make prefix=${D}/usr \
mandir=${D}/usr/share/man \
sysconfdir=${D}/etc \
localstatedir=${D}/var/lib \
install || die
# Support for new X session management scheme
exeinto /etc/X11/Sessions
doexe ${FILESDIR}/Gnome
dodoc AUTHORS COPYING* ChangeLog README NEWS
}
|