blob: 2870fc212c3b458fa5c369c18176ccc1c82670cb (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgsf/libgsf-1.6.0.ebuild,v 1.3 2003/02/10 14:34:27 agriffis Exp $
inherit gnome2
IUSE="gnome doc"
S=${WORKDIR}/${P}
DESCRIPTION="The GNOME Structured File Library"
HOMEPAGE="http://www.gnome.org/"
SLOT="0"
LICENSE="GPL-2 LGPL-2"
KEYWORDS="x86 ~sparc ~ppc ~alpha"
RDEPEND=">=dev-libs/libxml2-2.4.16
>=dev-libs/glib-2
>=sys-libs/zlib-1.1.4
gnome? ( >=gnome-base/libbonobo-2
>=gnome-base/gnome-vfs-2 )"
DEPEND=">=dev-util/pkgconfig-0.9
doc? ( dev-util/gtk-doc )"
src_unpack() {
unpack ${A}
cd ${S}/doc/
# little hack to fix bug 7570
cp Makefile.in Makefile.in.orig
sed -e "s:doc\$(TARGET_DIR):\$(TARGET_DIR):" \
Makefile.in.orig > Makefile.in
}
src_compile() {
local myconf
use gnome \
&& myconf="--with-gnome" \
|| myconf="--without-gnome"
use doc \
&& myconf="${myconf} --enable-gtk-doc" \
|| myconf="${myconf} --disable-gtk-doc"
econf ${myconf} --with-zlib || die
emake || die
}
DOCS="dodoc AUTHORS COPYING* ChangeLog INSTALL NEWS README"
|