version bump, fix python dependency, force to 2
authorFabio Erculiani <lxnay@gentoo.org>
Thu, 6 Oct 2011 19:25:14 +0000 (19:25 +0000)
committerFabio Erculiani <lxnay@gentoo.org>
Thu, 6 Oct 2011 19:25:14 +0000 (19:25 +0000)
Package-Manager: portage-2.2.0_alpha51/cvs/Linux x86_64

app-admin/packagekit-base/ChangeLog
app-admin/packagekit-base/Manifest
app-admin/packagekit-base/packagekit-base-0.6.19.ebuild [new file with mode: 0644]

index 995d2247ccd1ec24ddae8b733684db7c383004d7..51ea53c607a562ada7db3d8ef7baee10d8b3409d 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for app-admin/packagekit-base
 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/packagekit-base/ChangeLog,v 1.7 2011/10/05 20:41:49 lxnay Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/packagekit-base/ChangeLog,v 1.8 2011/10/06 19:25:14 lxnay Exp $
+
+*packagekit-base-0.6.19 (06 Oct 2011)
+
+  06 Oct 2011; Fabio Erculiani <lxnay@gentoo.org>
+  +packagekit-base-0.6.19.ebuild:
+  version bump, fix python dependency, force to 2
 
 *packagekit-base-0.6.18-r1 (05 Oct 2011)
 
index b289bca220645bc0fe25e36178d66f9eda8965c0..e1eb887371cbac21a03a966df475256e0b76ccf8 100644 (file)
@@ -3,8 +3,10 @@ AUX packagekit-base-entropy-add-forward-compatibility.patch 3944 RMD160 1d7f51dd
 DIST PackageKit-0.6.16.tar.xz 7900928 RMD160 67a6b0cb37c1d58b8a63391c46ab2de9d84f90f2 SHA1 30ca0c4f9f945abdbeb237256254d32581f8e417 SHA256 28fc2149e2dac4bed5b6b0479488dacc8af7e8a18556851711502b26de567e67
 DIST PackageKit-0.6.17.tar.xz 7890112 RMD160 2121081f2155324c592b3e3c7c8a5ac88c368bf3 SHA1 c538dd1a87eca8a1461dcb5839931bb23f792370 SHA256 7d6e0d0c63d0a0ef9b393a80ae3711e073cd4b884ff4996d5622f688e28d63c3
 DIST PackageKit-0.6.18.tar.xz 7890956 RMD160 221e8dfd5d826075ff30a25dea6d335fb755e2f5 SHA1 904cdf2156dfe7f350b7657fad1e69150243b277 SHA256 38e22db73360b50e4b495d03a8d7e44e1fd1525ac44fb4a3bbac99ad21779c32
+DIST PackageKit-0.6.19.tar.xz 7899600 RMD160 44a77280127aa02cd8dc99d2147f5acc3a3e3c52 SHA1 76dd43832129de9cc9b009d1ed5f74ed2f6f915c SHA256 961c6408de08ebaf15c09e74afd06918d699be8974b5c35c2c9663e5b12b5223
 EBUILD packagekit-base-0.6.16.ebuild 4880 RMD160 4d47b9ff47fc7b2e09cee6c14c2dfc6ab4facd76 SHA1 046c31a7b14060c547fa50b7968d7cd3f7746b12 SHA256 a4146d99dd599f83a811cb121ea76ccde69ba6d60c14515d1c5c87ce06f5f173
 EBUILD packagekit-base-0.6.17-r1.ebuild 4973 RMD160 7b5c5562c63083e3be44b27fa4be5b4685d24878 SHA1 e5f2eb7eedb0d7470eee49fc7ccdc1f637549cf1 SHA256 2cf0e5c3a00d833a4edd8890f18ffdc8a3393f4caf169b7f6c6c15be6df13c0b
 EBUILD packagekit-base-0.6.18-r1.ebuild 5134 RMD160 326631f0679f7e07061873b5fee0b63b6732faad SHA1 cdc94cf16150e4d86d3b27f8c08a404bf1fa4bf1 SHA256 7fc7920dc6241889ed2d7a11b66d9cdee70b5dd3842e0c00a7f4b029d2ad9ac4
-MISC ChangeLog 1449 RMD160 1d8fec8f4bde3806852f7c4a136af428e3b34a41 SHA1 a3b4f0a18c59ff68eebf9084edbc4f92ad9c50bd SHA256 e9b53e03ec48fcc2e7a5f8e1445f517e34289beca53aaf1ac56bb56de10b6d34
+EBUILD packagekit-base-0.6.19.ebuild 5114 RMD160 75197cf0d9cf2cf25ee314966ff6db6fb2bd03f6 SHA1 77ad2d6a3e0fadc77a76eb6ca69cd7f6e8c15be9 SHA256 93bc9b5a627edab5ad834b0663877bf3f5a50d3abadb41f890dda40651d3a9ce
+MISC ChangeLog 1623 RMD160 68396c1a13fd19da20d1151b92afe2967f2b0062 SHA1 4724d9f489f432e0bf876a5874f8be7cda492f9d SHA256 3dd7535c2581613231ba68b0ed46ccfabbb62292aad9d8ce29e446fe21bbe0e3
 MISC metadata.xml 763 RMD160 b680b38a617f54033205bc048adefcbf13aa6887 SHA1 da1a37c2d77ea754fd52efc9537e215118a027a3 SHA256 1c382b6cb0a3c214688642037c1021a7f45c556edbf4631e02f1923e49b371ba
diff --git a/app-admin/packagekit-base/packagekit-base-0.6.19.ebuild b/app-admin/packagekit-base/packagekit-base-0.6.19.ebuild
new file mode 100644 (file)
index 0000000..5955f97
--- /dev/null
@@ -0,0 +1,182 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/packagekit-base/packagekit-base-0.6.19.ebuild,v 1.1 2011/10/06 19:25:14 lxnay Exp $
+
+EAPI="3"
+
+# 0.6.x doesn't work with Python 3.x
+PYTHON_DEPEND="2"
+
+inherit eutils multilib python nsplugins bash-completion
+
+MY_PN="PackageKit"
+MY_P=${MY_PN}-${PV}
+
+DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API"
+HOMEPAGE="http://www.packagekit.org/"
+SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="connman cron doc +introspection networkmanager nsplugin pm-utils +policykit entropy static-libs test udev"
+
+CDEPEND="connman? ( net-misc/connman )
+       introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
+       networkmanager? ( >=net-misc/networkmanager-0.6.4 )
+       nsplugin? (
+               dev-libs/nspr
+               x11-libs/cairo
+               >=x11-libs/gtk+-2.14.0:2
+               x11-libs/pango
+       )
+       policykit? ( >=sys-auth/polkit-0.94 )
+       udev? ( || ( >=sys-fs/udev-171[gudev] >=sys-fs/udev-145[extras] ) )
+       dev-db/sqlite:3
+       >=dev-libs/dbus-glib-0.74
+       >=dev-libs/glib-2.16.1:2
+       >=sys-apps/dbus-1.3.0"
+DEPEND="${CDEPEND}
+       doc? ( dev-util/gtk-doc )
+       nsplugin? ( >=net-libs/xulrunner-1.9.1 )
+       dev-libs/libxslt
+       >=dev-util/intltool-0.35.0
+       dev-util/pkgconfig
+       sys-devel/gettext"
+
+RDEPEND="${CDEPEND}
+       entropy? ( >=sys-apps/entropy-1.0_rc27 )
+       pm-utils? ( sys-power/pm-utils )
+       >=app-portage/layman-1.2.3
+       >=sys-apps/portage-2.1.9
+       sys-auth/consolekit"
+
+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
+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"
+for X in ${APP_LINGUAS}; do
+       IUSE=" ${IUSE} linguas_${X}"
+done
+
+S="${WORKDIR}/${MY_P}"
+RESTRICT="test" # tests are failing atm
+
+# NOTES:
+# do not use a specific user, useless and not more secure according to upstream
+# doc is in the tarball and always installed
+# mono doesn't install anything (RDEPEND dev-dotnet/gtk-sharp-gapi:2
+#      (R)DEPEND dev-dotnet/glib-sharp:2 dev-lang/mono), upstream bug 23247
+
+# UPSTREAM:
+# documentation/website with --enable-doc-install
+# failing tests
+
+src_prepare() {
+       epatch "${FILESDIR}/${PN}-entropy-add-forward-compatibility.patch"
+}
+
+src_configure() {
+       local myconf=""
+
+       if use policykit; then
+               myconf+=" --with-security-framework=polkit"
+       else
+               myconf+=" --with-security-framework=dummy"
+       fi
+
+       if [[ -z "${LINGUAS}" ]]; then
+               myconf+=" --disable-nls"
+       else
+               myconf+=" --enable-nls"
+       fi
+
+       # localstatedir: for gentoo it's /var/lib but for $PN it's /var
+       # dep-tracking,option-check,libtool-lock,strict,local: obvious reasons
+       # command,debuginfo,gstreamer,service-packs: not supported by backend
+
+       # NOTE: default backend is autodetected at runtime, also
+       if use entropy; then
+               myconf+=" --with-default-backend=entropy"
+       else
+               myconf+=" --with-default-backend=portage"
+       fi
+       econf \
+               ${myconf} \
+               --enable-introspection=no \
+               --localstatedir=/var \
+               --disable-dependency-tracking \
+               --enable-option-checking \
+               --enable-libtool-lock \
+               --disable-strict \
+               --disable-local \
+               $(use_enable doc gtk-doc) \
+               $(use_enable bash-completion command-not-found) \
+               --disable-debuginfo-install \
+               --disable-gstreamer-plugin \
+               --disable-service-packs \
+               --enable-man-pages \
+               --enable-portage \
+               $(use_enable entropy) \
+               $(use_enable cron) \
+               --disable-gtk-module \
+               $(use_enable introspection) \
+               $(use_enable networkmanager) \
+               $(use_enable nsplugin browser-plugin) \
+               $(use_enable pm-utils) \
+               --disable-qt \
+               $(use_enable static-libs static) \
+               $(use_enable test tests) \
+               $(use_enable udev device-rebind)
+}
+
+src_install() {
+       emake DESTDIR="${D}" install || die "emake install failed"
+
+       dodoc AUTHORS MAINTAINERS NEWS README TODO || die "dodoc failed"
+       dodoc ChangeLog || die "dodoc failed"
+
+       if use nsplugin; then
+               dodir "/usr/$(get_libdir)/${PLUGINS_DIR}"
+               mv "${D}"/usr/$(get_libdir)/mozilla/plugins/* \
+                       "${D}/usr/$(get_libdir)/${PLUGINS_DIR}/"
+       fi
+
+       if ! use static-libs; then
+               find "${D}" -name *.la | xargs rm || die "removing .la files failed"
+       fi
+
+       # Remove precompiled python modules, we handle byte compiling
+       rm -f "${D}/$(python_get_sitedir)"/${PN}*.py[co]
+
+       dobashcompletion "${S}/contrib/pk-completion.bash" ${PN}
+       # Remove bashcomp file installed by build-system
+       rm -f "${D}/bash_completion.d/pk-completion.bash"
+
+       # Remove unwanted PackageKit website stuff
+       rm -rf "${D}/usr/share/PackageKit/website"
+
+}
+
+pkg_postinst() {
+       python_mod_optimize ${PN/-base}
+
+       if ! use policykit; then
+               ewarn "You are not using policykit, the daemon can't be considered as secure."
+               ewarn "All users will be able to do anything through ${MY_PN}."
+               ewarn "Please, consider rebuilding ${MY_PN} with policykit USE flag."
+               ewarn "THIS IS A SECURITY ISSUE."
+               echo
+               ebeep
+               epause 5
+       fi
+       bash-completion_pkg_postinst
+}
+
+pkg_prerm() {
+       einfo "Removing downloaded files with ${MY_PN}..."
+       [[ -d "${ROOT}"/var/cache/${MY_PN}/downloads/ ]] && \
+               rm -rf /var/cache/PackageKit/downloads/*
+}
+
+pkg_postrm() {
+       python_mod_cleanup ${PN/-base}
+}