blob: b25de3a1f43b15ea3c3db3107915e1ba8571f131 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/ggv/ggv-1.1.94.ebuild,v 1.16 2004/05/29 03:41:54 pvdabeel Exp $
IUSE="nls bonobo"
S=${WORKDIR}/${P}
DESCRIPTION="Gnome Ghostview"
SRC_URI="ftp://ftp.gnome.org/pub/GNOME/unstable/sources/${PN}/${P}.tar.gz"
HOMEPAGE="http://www.gnome.org/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 sparc ppc"
RDEPEND=">=gnome-base/gnome-libs-1.4.1.4
bonobo? ( >=gnome-base/bonobo-1.0.19-r1 )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )"
src_compile() {
local myconf=""
use nls || myconf="--disable-nls"
if use bonobo; then
myconf="${myconf} --with-bonobo"
else
myconf="${myconf} --without-bonobo"
fi
./configure --build=${CHOST} \
--prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var/lib \
--disable-install-schemas \
${myconf} || die
# CFLAGS was slurped up by ./configure above. It's now in the
# Makefiles. We don't want to override it with our own.
unset CFLAGS
emake || die
}
src_install() {
make prefix=${D}/usr \
sysconfdir=${D}/etc \
localstatedir=${D}/var/lib \
install || die
dodoc ABOUT-NLS AUTHORS ChangeLog COPYING COPYING-DOCS NEWS README TODO
}
pkg_postinst() {
# This is from the devhelp ebuild...
# Fix gconf permissions
killall gconfd-1 2>/dev/null >/dev/null
chmod o+rX /etc/gconf -R
# Install schemas
gconftool-1 --shutdown
SOURCE=xml::/etc/gconf/gconf.xml.defaults
GCONF_CONFIG_SOURCE=$SOURCE \
gconftool-1 --makefile-install-rule \
/etc/gconf/schemas/${PN}.schemas
assert "gconftool-1 execution failed"
}
|