/[gentoo-x86]/gnome-extra/libgsf/libgsf-1.14.23.ebuild
Gentoo

Contents of /gnome-extra/libgsf/libgsf-1.14.23.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.11 - (show annotations) (download)
Sun Oct 28 15:55:49 2012 UTC (20 months, 1 week ago) by armin76
Branch: MAIN
Changes since 1.10: +2 -2 lines
ia64/sh/sparc stable wrt #427544

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/gnome-extra/libgsf/libgsf-1.14.23.ebuild,v 1.10 2012/10/16 04:35:45 blueness Exp $
4
5 EAPI="4"
6 GCONF_DEBUG="no"
7 GNOME2_LA_PUNT="yes"
8 PYTHON_DEPEND="python? 2:2.6"
9 SUPPORT_PYTHON_ABIS="1"
10 RESTRICT_PYTHON_ABIS="2.[45] 3.* *-jython *-pypy-*"
11
12 inherit autotools eutils gnome2 python multilib
13
14 DESCRIPTION="The GNOME Structured File Library"
15 HOMEPAGE="http://projects.gnome.org/libgsf/"
16
17 LICENSE="GPL-2 LGPL-2.1"
18 SLOT="0"
19 KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-freebsd ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris"
20 IUSE="bzip2 doc gtk +introspection python"
21
22 RDEPEND=">=dev-libs/glib-2.26:2
23 >=dev-libs/libxml2-2.4.16:2
24 sys-libs/zlib
25 bzip2? ( app-arch/bzip2 )
26 gtk? ( x11-libs/gtk+:2 )
27 introspection? ( >=dev-libs/gobject-introspection-0.6.4 )
28 python? (
29 >=dev-python/pygobject-2.10:2
30 >=dev-python/pygtk-2.10:2 )"
31
32 DEPEND="${RDEPEND}
33 >=dev-util/intltool-0.35.0
34 dev-util/gtk-doc-am
35 dev-libs/gobject-introspection-common
36 virtual/pkgconfig
37 doc? ( >=dev-util/gtk-doc-1 )"
38
39 pkg_setup() {
40 DOCS="AUTHORS BUGS ChangeLog HACKING NEWS README TODO"
41 G2CONF="${G2CONF}
42 --with-gio
43 --disable-static
44 $(use_with bzip2 bz2)
45 $(use_with python)
46 $(use_with gtk gdk-pixbuf)"
47
48 use python && python_pkg_setup
49 }
50
51 src_prepare() {
52 # Drop DEPRECATED flags
53 sed -i -e "s/ -DG_DISABLE_DEPRECATED//" configure.in configure || die
54
55 # Python bindings are built/installed manually.
56 sed -e "/SUBDIRS += python/d" -i Makefile.am || die
57
58 use python && python_clean_py-compile_files
59
60 # compilation: avoid identifier "clone", fixed in next version
61 epatch "${FILESDIR}/${P}-clone-identifier.patch"
62
63 intltoolize --force --copy --automake || die "intltoolize failed"
64 eautoreconf
65 gnome2_src_prepare
66 }
67
68 src_compile() {
69 gnome2_src_compile
70
71 if use python; then
72 python_copy_sources python
73
74 building() {
75 emake \
76 PYTHON_INCLUDES="-I$(python_get_includedir)" \
77 pyexecdir="$(python_get_sitedir)" \
78 pythondir="$(python_get_sitedir)"
79 }
80 python_execute_function -s --source-dir python building
81 fi
82 }
83
84 src_install() {
85 gnome2_src_install
86
87 if use python; then
88 installation() {
89 emake \
90 DESTDIR="${D}" \
91 pyexecdir="$(python_get_sitedir)" \
92 pythondir="$(python_get_sitedir)" \
93 install
94 }
95 python_execute_function -s --source-dir python installation
96
97 python_clean_installation_image
98 fi
99 }
100
101 pkg_preinst() {
102 gnome2_pkg_preinst
103 preserve_old_lib /usr/$(get_libdir)/libgsf-1.so.1
104 preserve_old_lib /usr/$(get_libdir)/libgsf-gnome-1.so.1
105 }
106
107 pkg_postinst() {
108 gnome2_pkg_postinst
109
110 if use python; then
111 python_mod_optimize gsf
112 fi
113
114 preserve_old_lib_notify /usr/$(get_libdir)/libgsf-1.so.1
115 preserve_old_lib_notify /usr/$(get_libdir)/libgsf-gnome-1.so.1
116 }
117
118 pkg_postrm() {
119 gnome2_pkg_postrm
120
121 if use python; then
122 python_mod_cleanup gsf
123 fi
124 }

  ViewVC Help
Powered by ViewVC 1.1.20