Gentoo Archives: gentoo-commits

From: "Fabio Erculiani (lxnay)" <lxnay@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/packagekit-base: ChangeLog packagekit-base-0.6.18.ebuild
Date: Mon, 05 Sep 2011 15:01:02
Message-Id: 20110905150049.9843C2004C@flycatcher.gentoo.org
1 lxnay 11/09/05 15:00:49
2
3 Modified: ChangeLog
4 Added: packagekit-base-0.6.18.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.0_alpha51/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.4 app-admin/packagekit-base/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/packagekit-base/ChangeLog?rev=1.4&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/packagekit-base/ChangeLog?rev=1.4&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/packagekit-base/ChangeLog?r1=1.3&r2=1.4
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-admin/packagekit-base/ChangeLog,v
20 retrieving revision 1.3
21 retrieving revision 1.4
22 diff -u -r1.3 -r1.4
23 --- ChangeLog 9 Aug 2011 10:54:23 -0000 1.3
24 +++ ChangeLog 5 Sep 2011 15:00:49 -0000 1.4
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-admin/packagekit-base
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-admin/packagekit-base/ChangeLog,v 1.3 2011/08/09 10:54:23 lxnay Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-admin/packagekit-base/ChangeLog,v 1.4 2011/09/05 15:00:49 lxnay Exp $
30 +
31 +*packagekit-base-0.6.18 (05 Sep 2011)
32 +
33 + 05 Sep 2011; Fabio Erculiani <lxnay@g.o>
34 + +packagekit-base-0.6.18.ebuild:
35 + version bump
36
37 *packagekit-base-0.6.17-r1 (09 Aug 2011)
38
39
40
41
42 1.1 app-admin/packagekit-base/packagekit-base-0.6.18.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/packagekit-base/packagekit-base-0.6.18.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/packagekit-base/packagekit-base-0.6.18.ebuild?rev=1.1&content-type=text/plain
46
47 Index: packagekit-base-0.6.18.ebuild
48 ===================================================================
49 # Copyright 1999-2011 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-admin/packagekit-base/packagekit-base-0.6.18.ebuild,v 1.1 2011/09/05 15:00:49 lxnay Exp $
52
53 EAPI="3"
54
55 inherit eutils multilib python nsplugins bash-completion
56
57 MY_PN="PackageKit"
58 MY_P=${MY_PN}-${PV}
59
60 DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API"
61 HOMEPAGE="http://www.packagekit.org/"
62 SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz"
63
64 LICENSE="GPL-2"
65 SLOT="0"
66 KEYWORDS="~amd64 ~x86"
67 IUSE="connman cron doc +introspection networkmanager nsplugin pm-utils +policykit entropy static-libs test udev"
68
69 CDEPEND="connman? ( net-misc/connman )
70 introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
71 networkmanager? ( >=net-misc/networkmanager-0.6.4 )
72 nsplugin? (
73 dev-libs/nspr
74 x11-libs/cairo
75 >=x11-libs/gtk+-2.14.0:2
76 x11-libs/pango
77 )
78 policykit? ( >=sys-auth/polkit-0.94 )
79 udev? ( || ( >=sys-fs/udev-171[gudev] >=sys-fs/udev-145[extras] ) )
80 dev-db/sqlite:3
81 >=dev-libs/dbus-glib-0.74
82 >=dev-libs/glib-2.16.1:2
83 >=sys-apps/dbus-1.3.0"
84 DEPEND="${CDEPEND}
85 doc? ( dev-util/gtk-doc )
86 nsplugin? ( >=net-libs/xulrunner-1.9.1 )
87 dev-libs/libxslt
88 >=dev-util/intltool-0.35.0
89 dev-util/pkgconfig
90 sys-devel/gettext"
91
92 RDEPEND="${CDEPEND}
93 entropy? ( >=sys-apps/entropy-1.0_rc27 )
94 pm-utils? ( sys-power/pm-utils )
95 >=app-portage/layman-1.2.3
96 >=sys-apps/portage-2.1.9
97 sys-auth/consolekit"
98
99 APP_LINGUAS="as bg bn ca cs da de el en_GB es fi fr gu he hi hu it ja kn ko ml mr
100 ms nb nl or pa pl pt pt_BR ro ru sk sr sr@latin sv ta te th tr uk zh_CN zh_TW"
101 for X in ${APP_LINGUAS}; do
102 IUSE=" ${IUSE} linguas_${X}"
103 done
104
105 S="${WORKDIR}/${MY_P}"
106 RESTRICT="test" # tests are failing atm
107
108 # NOTES:
109 # do not use a specific user, useless and not more secure according to upstream
110 # doc is in the tarball and always installed
111 # mono doesn't install anything (RDEPEND dev-dotnet/gtk-sharp-gapi:2
112 # (R)DEPEND dev-dotnet/glib-sharp:2 dev-lang/mono), upstream bug 23247
113
114 # UPSTREAM:
115 # documentation/website with --enable-doc-install
116 # failing tests
117
118 src_prepare() {
119 epatch "${FILESDIR}/${PN}-0.6.17-entropy-extra-downloads-support.patch"
120 }
121
122 src_configure() {
123 local myconf=""
124
125 if use policykit; then
126 myconf+=" --with-security-framework=polkit"
127 else
128 myconf+=" --with-security-framework=dummy"
129 fi
130
131 if [[ -z "${LINGUAS}" ]]; then
132 myconf+=" --disable-nls"
133 else
134 myconf+=" --enable-nls"
135 fi
136
137 # localstatedir: for gentoo it's /var/lib but for $PN it's /var
138 # dep-tracking,option-check,libtool-lock,strict,local: obvious reasons
139 # command,debuginfo,gstreamer,service-packs: not supported by backend
140
141 # NOTE: default backend is autodetected at runtime, also
142 if use entropy; then
143 myconf+=" --with-default-backend=entropy"
144 else
145 myconf+=" --with-default-backend=portage"
146 fi
147 econf \
148 ${myconf} \
149 --enable-introspection=no \
150 --localstatedir=/var \
151 --disable-dependency-tracking \
152 --enable-option-checking \
153 --enable-libtool-lock \
154 --disable-strict \
155 --disable-local \
156 $(use_enable doc gtk-doc) \
157 $(use_enable bash-completion command-not-found) \
158 --disable-debuginfo-install \
159 --disable-gstreamer-plugin \
160 --disable-service-packs \
161 --enable-man-pages \
162 --enable-portage \
163 $(use_enable entropy) \
164 $(use_enable cron) \
165 --disable-gtk-module \
166 $(use_enable introspection) \
167 $(use_enable networkmanager) \
168 $(use_enable nsplugin browser-plugin) \
169 $(use_enable pm-utils) \
170 --disable-qt \
171 $(use_enable static-libs static) \
172 $(use_enable test tests) \
173 $(use_enable udev device-rebind)
174 }
175
176 src_install() {
177 emake DESTDIR="${D}" install || die "emake install failed"
178
179 dodoc AUTHORS MAINTAINERS NEWS README TODO || die "dodoc failed"
180 dodoc ChangeLog || die "dodoc failed"
181
182 if use nsplugin; then
183 src_mv_plugins /usr/$(get_libdir)/mozilla/plugins
184 fi
185
186 if ! use static-libs; then
187 find "${D}" -name *.la | xargs rm || die "removing .la files failed"
188 fi
189
190 # Remove precompiled python modules, we handle byte compiling
191 rm -f "${D}/$(python_get_sitedir)"/${PN}*.py[co]
192
193 dobashcompletion "${S}/contrib/pk-completion.bash" ${PN}
194 # Remove bashcomp file installed by build-system
195 rm -f "${D}/bash_completion.d/pk-completion.bash"
196
197 # Remove unwanted PackageKit website stuff
198 rm -rf "${D}/usr/share/PackageKit/website"
199
200 }
201
202 pkg_postinst() {
203 python_mod_optimize ${PN/-base}
204
205 if ! use policykit; then
206 ewarn "You are not using policykit, the daemon can't be considered as secure."
207 ewarn "All users will be able to do anything through ${MY_PN}."
208 ewarn "Please, consider rebuilding ${MY_PN} with policykit USE flag."
209 ewarn "THIS IS A SECURITY ISSUE."
210 echo
211 ebeep
212 epause 5
213 fi
214 bash-completion_pkg_postinst
215 }
216
217 pkg_prerm() {
218 einfo "Removing downloaded files with ${MY_PN}..."
219 [[ -d "${ROOT}"/var/cache/${MY_PN}/downloads/ ]] && \
220 rm -rf /var/cache/PackageKit/downloads/*
221 }
222
223 pkg_postrm() {
224 python_mod_cleanup ${PN/-base}
225 }