blob: bff0ee6ada4b276b2373452a5fcd8a8de66efea6 (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgsf/libgsf-1.14.3.ebuild,v 1.11 2007/08/25 14:21:29 vapier Exp $
inherit eutils gnome2 python multilib
DESCRIPTION="The GNOME Structured File Library"
HOMEPAGE="http://www.gnome.org/"
LICENSE="GPL-2 LGPL-2.1"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sh sparc x86 ~x86-fbsd"
IUSE="bzip2 doc gnome python"
RDEPEND=">=dev-libs/libxml2-2.4.16
>=dev-libs/glib-2.6
sys-libs/zlib
gnome? ( media-gfx/imagemagick
>=gnome-base/gconf-2
>=gnome-base/libbonobo-2
>=gnome-base/gnome-vfs-2.2 )
bzip2? ( app-arch/bzip2 )
python? ( dev-lang/python
>=dev-python/pygtk-2.8 )"
# This package (currently) needs >=pygobject-2.8 and pygtk-codegen-2.0 for python
# support, which is provided by either pygtk-2.8* or any pygobject version (they were
# separated for pygobject version 2.10 and up). As for codegen we already need
# pygtk, then depending on just >=pygtk-2.8 is sufficient, as 2.8 provides pygobject
# and 2.10 will pull in the pygobject separate package.
DEPEND="${RDEPEND}
dev-util/pkgconfig
>=dev-util/intltool-0.29
doc? ( >=dev-util/gtk-doc-1 )"
G2CONF="${G2CONF} \
$(use_with bzip2 bz2) \
$(use_with gnome) \
$(use_with python)"
DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO"
pkg_preinst() {
preserve_old_lib /usr/$(get_libdir)/libgsf-1.so.1
preserve_old_lib /usr/$(get_libdir)/libgsf-gnome-1.so.1
preserve_old_lib /usr/$(get_libdir)/libgsf-1.so.113
preserve_old_lib /usr/$(get_libdir)/libgsf-gnome-1.so.113
}
pkg_postinst() {
gnome2_pkg_postinst
use python && python_mod_optimize "${ROOT}"usr/$(get_libdir)/python*/site-packages/gsf
preserve_old_lib_notify /usr/$(get_libdir)/libgsf-1.so.1
preserve_old_lib_notify /usr/$(get_libdir)/libgsf-gnome-1.so.1
preserve_old_lib_notify /usr/$(get_libdir)/libgsf-1.so.113
preserve_old_lib_notify /usr/$(get_libdir)/libgsf-gnome-1.so.113
}
pkg_postrm() {
gnome2_pkg_postrm
use python && python_mod_cleanup "${ROOT}"usr/$(get_libdir)/python*/site-packages/gsf
}
|