/[gentoo-x86]/gnome-base/gnome-panel/gnome-panel-2.32.1-r2.ebuild
Gentoo

Contents of /gnome-base/gnome-panel/gnome-panel-2.32.1-r2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Tue Oct 16 03:47:52 2012 UTC (6 years, 8 months ago) by tetromino
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
Fix linking failure with gold (bug #384533, thanks to Naohiro Aota). Drop useless USE=doc, it only regenerated documentation. Update license. Drop old.

(Portage version: 2.2.0_alpha137/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-base/gnome-panel/gnome-panel-2.32.1-r2.ebuild,v 1.12 2012/05/05 05:38:11 jdhore Exp $
4
5 EAPI="3"
6 GCONF_DEBUG="no"
7 PYTHON_DEPEND="2:2.5"
8
9 inherit gnome2 python eutils autotools
10
11 DESCRIPTION="The GNOME panel"
12 HOMEPAGE="http://www.gnome.org/"
13 SRC_URI="${SRC_URI} mirror://gentoo/introspection-20110205.m4.tar.bz2
14 http://dev.gentoo.org/~pacho/gnome/${P}-patches.tar.bz2"
15
16 LICENSE="GPL-2 FDL-1.1 LGPL-2"
17 SLOT="0"
18 KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sh sparc x86 ~x86-fbsd ~x86-interix ~amd64-linux ~x86-linux ~x86-solaris"
19 IUSE="+bonobo doc eds +introspection networkmanager"
20
21 RDEPEND=">=gnome-base/gnome-desktop-2.26:2
22 >=x11-libs/pango-1.15.4[introspection?]
23 >=dev-libs/glib-2.25.12:2
24 >=x11-libs/gtk+-2.22:2[introspection?]
25 >=dev-libs/libgweather-2.27.90:2
26 <dev-libs/libgweather-2.90.1:2
27 dev-libs/libxml2:2
28 >=gnome-base/gconf-2.6.1:2[introspection?]
29 >=media-libs/libcanberra-0.23[gtk]
30 >=gnome-base/gnome-menus-2.27.92:0
31 gnome-base/librsvg:2
32 >=dev-libs/dbus-glib-0.80
33 >=sys-apps/dbus-1.1.2
34 >=x11-libs/cairo-1
35 x11-libs/libXau
36 >=x11-libs/libXrandr-1.2
37 bonobo? (
38 >=gnome-base/libbonobo-2.20.4
39 >=gnome-base/libbonoboui-2.1.1
40 >=gnome-base/orbit-2.4
41 >=x11-libs/libwnck-2.19.5:1 )
42 eds? ( >=gnome-extra/evolution-data-server-1.6 )
43 introspection? ( >=dev-libs/gobject-introspection-0.6.7 )
44 networkmanager? ( >=net-misc/networkmanager-0.6.7 )"
45 DEPEND="${RDEPEND}
46 >=dev-lang/perl-5
47 >=app-text/gnome-doc-utils-0.3.2
48 virtual/pkgconfig
49 >=dev-util/intltool-0.40
50 ~app-text/docbook-xml-dtd-4.1.2
51 doc? ( >=dev-util/gtk-doc-1 )
52 gnome-base/gnome-common
53 dev-util/gtk-doc-am"
54 # eautoreconf needs
55 # gnome-base/gnome-common
56 # dev-util/gtk-doc-am
57
58 pkg_setup() {
59 G2CONF="${G2CONF}
60 --disable-deprecation-flags
61 --disable-static
62 --disable-scrollkeeper
63 --disable-schemas-install
64 $(use_enable bonobo)
65 $(use_enable networkmanager network-manager)
66 $(use_enable introspection)
67 $(use_enable eds)"
68 DOCS="AUTHORS ChangeLog HACKING NEWS README"
69 python_set_active_version 2
70 }
71
72 src_unpack() {
73 # If gobject-introspection is installed, we don't need the extra .m4
74 if has_version "dev-libs/gobject-introspection"; then
75 unpack ${P}.tar.bz2 ${P}-patches.tar.bz2
76 else
77 unpack ${A}
78 fi
79 }
80
81 src_prepare() {
82 # List the objects before the libraries to fix build with --as-needed
83 epatch "${FILESDIR}/${P}-as-needed.patch"
84
85 # Try to improve panel behavior on multiscreen systems, bug #348253, upstream #632369
86 epatch "${FILESDIR}/${PN}-2.32.1-fix-multiscreen.patch"
87 epatch "${FILESDIR}/${PN}-2.32.1-fix-multiscreen2.patch"
88
89 # Apply multiple bugfixes from 2.32 and master branches
90 # Also use gnome-applications.menu instead of applications.menu as it's the default value for us.
91 epatch "${WORKDIR}/${P}-patches"/*.patch
92
93 intltoolize --force --copy --automake || die "intltoolize failed"
94 AT_M4DIR=${WORKDIR} eautoreconf
95 gnome2_src_prepare
96 }
97
98 src_install() {
99 gnome2_src_install
100 find "${ED}" -name '*.la' -exec rm -f {} +
101 }
102
103 pkg_postinst() {
104 local entries="${EROOT}etc/gconf/schemas/panel-default-setup.entries"
105 local gconftool="${EROOT}usr/bin/gconftool-2"
106
107 if [ -e "$entries" ]; then
108 einfo "Setting panel gconf defaults..."
109
110 GCONF_CONFIG_SOURCE="$("${gconftool}" --get-default-source | sed "s;:/;:${ROOT};")"
111
112 "${gconftool}" --direct --config-source \
113 "${GCONF_CONFIG_SOURCE}" --load="${entries}"
114 fi
115
116 # Calling this late so it doesn't process the GConf schemas file we already
117 # took care of.
118 gnome2_pkg_postinst
119 }

  ViewVC Help
Powered by ViewVC 1.1.20