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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Sep 15 09:28:36 2012 UTC (3 years, 10 months ago) by pacho
Branch: MAIN
Version bump, drop old.

(Portage version: 2.1.11.17/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.3 2012/05/05 02:16:32 tetromino 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-1.0.0 )
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.12 )"
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 eautoreconf
61 gnome2_src_prepare
62 }
63
64 src_compile() {
65 gnome2_src_compile
66
67 if use python; then
68 python_copy_sources python
69
70 building() {
71 emake \
72 PYTHON_INCLUDES="-I$(python_get_includedir)" \
73 pyexecdir="$(python_get_sitedir)" \
74 pythondir="$(python_get_sitedir)"
75 }
76 python_execute_function -s --source-dir python building
77 fi
78 }
79
80 src_install() {
81 gnome2_src_install
82
83 if use python; then
84 installation() {
85 emake \
86 DESTDIR="${D}" \
87 pyexecdir="$(python_get_sitedir)" \
88 pythondir="$(python_get_sitedir)" \
89 install
90 }
91 python_execute_function -s --source-dir python installation
92
93 python_clean_installation_image
94 fi
95 }
96
97 pkg_preinst() {
98 gnome2_pkg_preinst
99 preserve_old_lib /usr/$(get_libdir)/libgsf-1.so.1
100 preserve_old_lib /usr/$(get_libdir)/libgsf-gnome-1.so.1
101 }
102
103 pkg_postinst() {
104 gnome2_pkg_postinst
105
106 if use python; then
107 python_mod_optimize gsf
108 fi
109
110 preserve_old_lib_notify /usr/$(get_libdir)/libgsf-1.so.1
111 preserve_old_lib_notify /usr/$(get_libdir)/libgsf-gnome-1.so.1
112 }
113
114 pkg_postrm() {
115 gnome2_pkg_postrm
116
117 if use python; then
118 python_mod_cleanup gsf
119 fi
120 }

  ViewVC Help
Powered by ViewVC 1.1.20