Gentoo Archives: gentoo-commits

From: Gilles Dartiguelongue <eva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/packagekit-base/
Date: Sun, 03 Jan 2016 13:32:26
Message-Id: 1451827554.92e920fbc8ff23c64d802a81a0818d7f676a67cb.eva@gentoo
1 commit: 92e920fbc8ff23c64d802a81a0818d7f676a67cb
2 Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 3 13:25:54 2016 +0000
4 Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 3 13:25:54 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=92e920fb
7
8 app-admin/packagekit-base: drop old revision
9
10 Package-Manager: portage-2.2.26
11
12 app-admin/packagekit-base/Manifest | 1 -
13 .../packagekit-base/packagekit-base-0.7.4.ebuild | 185 ---------------------
14 2 files changed, 186 deletions(-)
15
16 diff --git a/app-admin/packagekit-base/Manifest b/app-admin/packagekit-base/Manifest
17 index 57f03a2..66a8d6f 100644
18 --- a/app-admin/packagekit-base/Manifest
19 +++ b/app-admin/packagekit-base/Manifest
20 @@ -1,3 +1,2 @@
21 -DIST PackageKit-0.7.4.tar.xz 1493656 SHA256 4112c86d67afbbb9be5d3a706c63c537babbbe1f96e398ae306f5e5e02563a98 SHA512 a2cee60f499ec6c5359f3dc2eddda02cfb9c287f80a6b38aa1d9d87558ce5938ade87ab34f6cb1f9640749a0f19625b44c89f72dea5fbb0cbd5f34aec8dbb9f6 WHIRLPOOL 2827cb038c86164ae58021fafe9f2bbf21e69b5c63c4ef5e0f613806f5725f910af3d5aa51646fd258da9c91b81b086cf9560f66bf042e1cb6d1c25128f984b3
22 DIST PackageKit-0.8.15.tar.xz 1506084 SHA256 76aa44994d63b403b1f1154406539951502f5ab92624a8a7dedbeb5437ed0af5 SHA512 d6a1a4582212b02350b8a5ab8413346b0b33a49d329d3c5c4314e3db0c7c40b891d64d275c3acd8eafc45a59462b537cd031919027db2176502861271ce34a02 WHIRLPOOL bcc75e8a05b5616fbec1a2772af53ae51cf8c44a9feda4ca9cff4567f274aed62d3cf01751ab89834f423b77a74dcc1445c32390c323a46bb4340cde568760ce
23 DIST PackageKit-1.0.11.tar.xz 1427404 SHA256 bbd27bbc77795394f25ab009fe1b3420e365541c99248b18bbaa2fa7f029eaf7 SHA512 9529037685f76e883a71ae502eabd83c3e1e8905f76cfe5e938760677f0224f8758bca59e139588aa06589bcca7a20f13dea0fe419022cb950c7a4c631237bce WHIRLPOOL 8d9bebf55acdff2096bb750bc1f3028cdbbb8e0fd09926de69c7e3dcbd7fe56a2908709be01633dd5a61df80afab05b28d8f424b1bbb79454f503cd03301e56a
24
25 diff --git a/app-admin/packagekit-base/packagekit-base-0.7.4.ebuild b/app-admin/packagekit-base/packagekit-base-0.7.4.ebuild
26 deleted file mode 100644
27 index 405764e..0000000
28 --- a/app-admin/packagekit-base/packagekit-base-0.7.4.ebuild
29 +++ /dev/null
30 @@ -1,185 +0,0 @@
31 -# Copyright 1999-2014 Gentoo Foundation
32 -# Distributed under the terms of the GNU General Public License v2
33 -# $Id$
34 -
35 -EAPI="3"
36 -
37 -# 0.7.x is untested with Python 3.x
38 -PYTHON_DEPEND="2"
39 -
40 -inherit eutils multilib python nsplugins bash-completion-r1
41 -
42 -MY_PN="PackageKit"
43 -MY_P=${MY_PN}-${PV}
44 -
45 -DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API"
46 -HOMEPAGE="http://www.packagekit.org/"
47 -SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz"
48 -
49 -LICENSE="GPL-2"
50 -SLOT="0"
51 -KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~x86"
52 -IUSE="connman cron doc +introspection networkmanager nsplugin pm-utils +policykit entropy static-libs test udev"
53 -
54 -CDEPEND="connman? ( net-misc/connman )
55 - introspection? ( >=dev-libs/gobject-introspection-0.9.9 )
56 - networkmanager? ( >=net-misc/networkmanager-0.6.4 )
57 - nsplugin? (
58 - >=dev-libs/nspr-4.8
59 - x11-libs/cairo
60 - >=x11-libs/gtk+-2.14.0:2
61 - x11-libs/pango
62 - )
63 - policykit? ( >=sys-auth/polkit-0.98 )
64 - udev? ( virtual/libgudev )
65 - dev-db/sqlite:3
66 - >=dev-libs/dbus-glib-0.74
67 - >=dev-libs/glib-2.26.1:2
68 - >=sys-apps/dbus-1.3.0"
69 -DEPEND="${CDEPEND}
70 - doc? ( dev-util/gtk-doc )
71 - nsplugin? ( <net-misc/npapi-sdk-0.27.1 )
72 - dev-libs/libxslt
73 - >=dev-util/intltool-0.35.0
74 - virtual/pkgconfig
75 - sys-devel/gettext"
76 -
77 -RDEPEND="${CDEPEND}
78 - entropy? ( >=sys-apps/entropy-1.0_rc27 )
79 - pm-utils? ( sys-power/pm-utils )
80 - >=app-portage/layman-1.2.3
81 - >=sys-apps/portage-2.1.9
82 - sys-auth/consolekit"
83 -
84 -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
85 -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"
86 -for X in ${APP_LINGUAS}; do
87 - IUSE=" ${IUSE} linguas_${X}"
88 -done
89 -
90 -S="${WORKDIR}/${MY_P}"
91 -RESTRICT="test" # tests are failing atm
92 -
93 -# NOTES:
94 -# do not use a specific user, useless and not more secure according to upstream
95 -# doc is in the tarball and always installed
96 -# mono doesn't install anything (RDEPEND dev-dotnet/gtk-sharp-gapi:2
97 -# (R)DEPEND dev-dotnet/glib-sharp:2 dev-lang/mono), upstream bug 23247
98 -# >=npapi-sdk-0.27.1 has slightly changed API, once it is unmasked in tree
99 -# drop the npapi-api-change patch below and relax the dependency constraints
100 -
101 -# UPSTREAM:
102 -# documentation/website with --enable-doc-install
103 -# failing tests
104 -
105 -src_prepare() {
106 - epatch "${FILESDIR}"/${PN}-0.7.x-npapi-sdk.patch #383141
107 - epatch "${FILESDIR}"/${PN}-0.7.x-npapi-api-change.patch #416711
108 - # http://pkgs.fedoraproject.org/gitweb/?p=PackageKit.git;a=commit;h=0b378668288db34890b82c7be007fc76c7fcd956
109 - sed -i -e '/polkit-backend-1/d' configure || die #423431
110 -}
111 -
112 -src_configure() {
113 - local myconf=""
114 -
115 - if use policykit; then
116 - myconf+=" --with-security-framework=polkit"
117 - else
118 - myconf+=" --with-security-framework=dummy"
119 - fi
120 -
121 - if [[ -z "${LINGUAS}" ]]; then
122 - myconf+=" --disable-nls"
123 - else
124 - myconf+=" --enable-nls"
125 - fi
126 -
127 - # localstatedir: for gentoo it's /var/lib but for $PN it's /var
128 - # dep-tracking,option-check,libtool-lock,strict,local: obvious reasons
129 - # command,debuginfo,gstreamer,service-packs: not supported by backend
130 -
131 - # NOTE: default backend is autodetected at runtime, also
132 - if use entropy; then
133 - myconf+=" --with-default-backend=entropy"
134 - else
135 - myconf+=" --with-default-backend=portage"
136 - fi
137 - econf \
138 - ${myconf} \
139 - --enable-introspection=$(use introspection && echo -n "yes" || echo -n "no") \
140 - --localstatedir=/var \
141 - --disable-dependency-tracking \
142 - --enable-option-checking \
143 - --enable-libtool-lock \
144 - --disable-strict \
145 - --disable-local \
146 - $(use_enable doc gtk-doc) \
147 - --enable-command-not-found \
148 - --disable-debuginfo-install \
149 - --disable-gstreamer-plugin \
150 - --disable-service-packs \
151 - --enable-man-pages \
152 - --enable-portage \
153 - $(use_enable entropy) \
154 - $(use_enable cron) \
155 - --disable-gtk-module \
156 - $(use_enable introspection) \
157 - $(use_enable networkmanager) \
158 - $(use_enable nsplugin browser-plugin) \
159 - $(use_enable connman) \
160 - $(use_enable pm-utils) \
161 - --disable-qt \
162 - $(use_enable static-libs static) \
163 - $(use_enable test tests) \
164 - $(use_enable udev device-rebind)
165 -}
166 -
167 -src_install() {
168 - emake DESTDIR="${D}" install || die "emake install failed"
169 -
170 - dodoc AUTHORS MAINTAINERS NEWS README TODO || die "dodoc failed"
171 - dodoc ChangeLog || die "dodoc failed"
172 -
173 - if use nsplugin; then
174 - dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
175 - mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
176 - "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
177 - fi
178 -
179 - if ! use static-libs; then
180 - find "${D}" -name *.la | xargs rm || die "removing .la files failed"
181 - fi
182 -
183 - # Remove precompiled python modules, we handle byte compiling
184 - rm -f "${D}/$(python_get_sitedir)"/${PN}*.py[co]
185 -
186 - newbashcomp "${S}/contrib/pk-completion.bash" ${PN}
187 - # Remove bashcomp file installed by build-system
188 - rm -f "${D}/bash_completion.d/pk-completion.bash"
189 -
190 - # Remove unwanted PackageKit website stuff
191 - rm -rf "${D}/usr/share/PackageKit/website"
192 -
193 -}
194 -
195 -pkg_postinst() {
196 - python_mod_optimize ${PN/-base}
197 -
198 - if ! use policykit; then
199 - ewarn "You are not using policykit, the daemon can't be considered as secure."
200 - ewarn "All users will be able to do anything through ${MY_PN}."
201 - ewarn "Please, consider rebuilding ${MY_PN} with policykit USE flag."
202 - ewarn "THIS IS A SECURITY ISSUE."
203 - echo
204 - fi
205 -}
206 -
207 -pkg_prerm() {
208 - einfo "Removing downloaded files with ${MY_PN}..."
209 - [[ -d "${ROOT}"/var/cache/${MY_PN}/downloads/ ]] && \
210 - rm -rf /var/cache/PackageKit/downloads/*
211 -}
212 -
213 -pkg_postrm() {
214 - python_mod_cleanup ${PN/-base}
215 -}