/[gentoo-x86]/gnome-extra/gnome-packagekit/gnome-packagekit-3.4.2.ebuild
Gentoo

Contents of /gnome-extra/gnome-packagekit/gnome-packagekit-3.4.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat May 19 22:57:05 2012 UTC (23 months ago) by tetromino
Branch: MAIN
Version bump for gnome-3.4 (bug #416313), now with optional systemd support.

(Portage version: 2.2.0_alpha107/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/gnome-packagekit/gnome-packagekit-3.2.1.ebuild,v 1.4 2012/05/05 06:25:16 jdhore Exp $
4
5 EAPI="4"
6 GCONF_DEBUG="no"
7 PYTHON_DEPEND="2"
8
9 inherit eutils gnome2 python virtualx
10
11 DESCRIPTION="PackageKit client for the GNOME desktop"
12 HOMEPAGE="http://www.packagekit.org/"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="doc nls systemd test udev"
18
19 # gdk-pixbuf ised in gpk-animated-icon
20 # pango used on gpk-common
21 RDEPEND="
22 >=dev-libs/glib-2.25.9:2
23 x11-libs/gdk-pixbuf:2
24 >=x11-libs/gtk+-2.91.0:3
25 >=x11-libs/libnotify-0.7.0
26 x11-libs/pango
27 >=dev-libs/dbus-glib-0.73
28
29 >=app-admin/packagekit-base-0.7.2[udev]
30 >=app-admin/packagekit-gtk-0.7.2
31 >=media-libs/libcanberra-0.10[gtk3]
32 >=sys-apps/dbus-1.1.2
33 >=sys-power/upower-0.9.0
34
35 media-libs/fontconfig
36 x11-libs/libX11
37
38 systemd? ( >=sys-apps/systemd-42 )
39 !systemd? ( sys-auth/consolekit )
40 udev? ( >=sys-fs/udev-171[gudev] )"
41 DEPEND="${RDEPEND}
42 app-text/docbook-sgml-utils
43 >=app-text/gnome-doc-utils-0.3.2
44 >=dev-util/intltool-0.35
45 dev-libs/libxslt
46 sys-devel/gettext
47 virtual/pkgconfig
48 doc? ( >=dev-util/gtk-doc-1.9 )"
49
50 # NOTES:
51 # app-text/docbook-sgml-utils required for man pages
52 # app-text/gnome-doc-utils and dev-libs/libxslt required for gnome help files
53 # gtk-doc is generating a useless file, don't need it
54
55 # UPSTREAM:
56 # misuse of CPPFLAGS/CXXFLAGS ?
57 # see if tests can forget about display (use eclass for that ?)
58 # intltool and gettext only with +nls
59
60 pkg_setup() {
61 DOCS="AUTHORS MAINTAINERS NEWS README TODO"
62 # localstatedir: /var for upstream /var/lib for gentoo
63 # scrollkeeper and schemas-install: managed by gnome2 eclass
64 # tests: not working (need DISPLAY)
65 # gtk-doc: not needed (builded file is useless)
66 # --enable-libtool-lock
67 # --disable-dependency-tracking
68 # --enable-option-checking
69 G2CONF="${G2CONF}
70 --localstatedir=/var
71 --enable-compile-warnings=yes
72 --enable-iso-c
73 --disable-scrollkeeper
74 --disable-schemas-compile
75 --disable-strict
76 $(use_enable nls)
77 $(use_enable systemd)
78 $(use_enable test tests)
79 $(use_enable udev gudev)"
80 python_set_active_version 2
81 python_pkg_setup
82 }
83
84 src_prepare() {
85 # Regenerate marshalers for <glib-2.31 compat
86 rm -v src/gpk-marshal.{c,h} || die
87
88 gnome2_src_prepare
89
90 python_clean_py-compile_files
91
92 # disable tests with graphical dialogs and that require packagekitd to be
93 # run with the dummy backend
94 epatch "${FILESDIR}/${PN}-3.1.90-tests.patch"
95
96 # Fails every time packagekit developers make a tiny change to headers
97 sed -e '/gpk_enum_test (test)/ d' -i src/gpk-self-test.c || die
98 }
99
100 src_test() {
101 unset DISPLAY
102 Xemake check
103 }
104
105 pkg_postinst() {
106 gnome2_pkg_postinst
107 python_need_rebuild
108 python_mod_optimize packagekit
109 }
110
111 pkg_postrm() {
112 gnome2_pkg_postrm
113 python_mod_cleanup packagekit
114 }

  ViewVC Help
Powered by ViewVC 1.1.20