From: "Nirbheek Chauhan" <nirbheek@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: app-portage/packagekit/
Date: Wed, 16 Feb 2011 00:48:56 +0000 (UTC) [thread overview]
Message-ID: <52caaaebc50f0c754993634d415538c51ecb4768.nirbheek@gentoo> (raw)
commit: 52caaaebc50f0c754993634d415538c51ecb4768
Author: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 16 00:29:05 2011 +0000
Commit: Nirbheek Chauhan <nirbheek <AT> gentoo <DOT> org>
CommitDate: Wed Feb 16 00:39:34 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=52caaaeb
app-portage/packagekit: bump to 0.6.12, update live
---
...agekit-9999.ebuild => packagekit-0.6.12.ebuild} | 114 +++++++++----------
app-portage/packagekit/packagekit-9999.ebuild | 114 +++++++++----------
2 files changed, 108 insertions(+), 120 deletions(-)
diff --git a/app-portage/packagekit/packagekit-9999.ebuild b/app-portage/packagekit/packagekit-0.6.12.ebuild
similarity index 55%
copy from app-portage/packagekit/packagekit-9999.ebuild
copy to app-portage/packagekit/packagekit-0.6.12.ebuild
index 01c97a4..b3d6fc7 100644
--- a/app-portage/packagekit/packagekit-9999.ebuild
+++ b/app-portage/packagekit/packagekit-0.6.12.ebuild
@@ -1,31 +1,43 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
-inherit autotools eutils git python nsplugins
+inherit eutils multilib python nsplugins
MY_PN="PackageKit"
DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API"
HOMEPAGE="http://www.packagekit.org/"
-EGIT_REPO_URI="git://anongit.freedesktop.org/git/${PN}/${MY_PN}"
+
+if [[ ${PV} = 9999 ]]; then
+ inherit autotools git
+ EGIT_REPO_URI="git://anongit.freedesktop.org/git/${PN}/${MY_PN}"
+ KEYWORDS=""
+ DEPEND=">=dev-util/gtk-doc-1.9"
+ RESTRICT="test" # tests are failing atm
+ DOCS="AUTHORS MAINTAINERS NEWS README TODO"
+else
+ MY_P=${MY_PN}-${PV}
+ SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.gz"
+ KEYWORDS="~amd64 ~ppc ~x86"
+ S="${WORKDIR}/${MY_P}"
+ DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO"
+fi
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="" # live ebuild
-IUSE="connman +consolekit cron doc gtk mono networkmanager nls nsplugin pm-utils
-+policykit qt4 static-libs test udev"
+IUSE="connman cron gtk +introspection networkmanager nls nsplugin pm-utils qt4
+test udev"
CDEPEND="
connman? ( net-misc/connman )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
gtk? ( dev-libs/dbus-glib
media-libs/fontconfig
- >=x11-libs/gtk+-2.14.0:2
+ >=x11-libs/gtk+-2.91.0:3
x11-libs/pango )
- mono? ( dev-dotnet/glib-sharp:2
- dev-lang/mono )
networkmanager? ( >=net-misc/networkmanager-0.6.4 )
nsplugin? ( dev-libs/dbus-glib
dev-libs/glib:2
@@ -33,60 +45,60 @@ CDEPEND="
x11-libs/cairo
>=x11-libs/gtk+-2.14.0:2
x11-libs/pango )
- policykit? ( >=sys-auth/polkit-0.92 )
qt4? ( >=x11-libs/qt-core-4.4.0
>=x11-libs/qt-dbus-4.4.0
>=x11-libs/qt-sql-4.4.0 )
udev? ( >=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"
+ >=dev-libs/glib-2.22:2
+ >=sys-apps/dbus-1.1.0
+ >=sys-auth/polkit-0.97"
RDEPEND="${CDEPEND}
- consolekit? ( sys-auth/consolekit )
pm-utils? ( sys-power/pm-utils )
>=app-portage/layman-1.2.3
- >=sys-apps/portage-2.2_rc39"
-DEPEND="${CDEPEND}
- doc? ( >=dev-util/gtk-doc-1.9 )
- mono? ( dev-dotnet/gtk-sharp-gapi:2 )
+ >=sys-apps/portage-2.2_rc39
+ sys-auth/consolekit"
+DEPEND="${CDEPEND} ${DEPEND}
nsplugin? ( >=net-libs/xulrunner-1.9.1 )
test? ( qt4? ( dev-util/cppunit >=x11-libs/qt-gui-4.4.0 ) )
dev-libs/libxslt
- dev-util/gtk-doc
>=dev-util/intltool-0.35.0
dev-util/pkgconfig
sys-devel/gettext"
-RESTRICT="test" # tests in live ebuild is not a good idea
-
# NOTES:
-# gtk-doc, gettext and intltool are mandatory for eautoreconf
+# doc is in the tarball and always installed
+# using >=dbus-1.3.0 instead of >=dbus-1.1.1 because of a bug fixed in 1.3.0
+
+# TODO:
+# gettext is probably needed only if +nls but too long to fix
+# +doc to install doc/website
+# check if test? qt? ( really needs qt-gui)
+
+# UPSTREAM:
+# documentation/website with --enable-doc-install
+# failing tests
src_prepare() {
- gtkdocize || die "gtkdocize failed"
- eautoreconf
- intltoolize || die "intltoolize failed"
+ if [[ ${PV} = 9999 ]]; then
+ gtkdocize || die
+ intltoolize --force || die
+ eautoreconf
+ fi
# prevent pyc/pyo generation
- rm py-compile || die "rm py-compile failed"
- ln -s $(type -P true) py-compile
+ ln -sfn $(type -P true) py-compile
}
src_configure() {
local myconf=""
- if use policykit; then
- myconf="${myconf} --with-security-framework=polkit"
- else
- myconf="${myconf} --with-security-framework=dummy"
- fi
-
# localstatedir: for gentoo it's /var/lib but for $PN it's /var
# dep-tracking,option-check,libtool-lock,strict,local: obvious reasons
# gtk-doc: doc already built
# command,debuginfo,gstreamer,service-packs: not supported by backend
- # man-pages: we want them
+ # managed: failing (see UPSTREAM in ebuild header)
econf \
${myconf} \
--localstatedir=/var \
@@ -95,25 +107,26 @@ src_configure() {
--enable-libtool-lock \
--disable-strict \
--disable-local \
+ --disable-gtk-doc \
--disable-command-not-found \
--disable-debuginfo-install \
--disable-gstreamer-plugin \
--disable-service-packs \
+ --disable-static \
+ --enable-man-pages \
--disable-dummy \
--enable-portage \
--with-default-backend=portage \
- --enable-man-pages \
+ --with-security-framework=polkit \
$(use_enable connman) \
$(use_enable cron) \
- $(use_enable doc gtk-doc) \
$(use_enable gtk gtk-module) \
- $(use_enable mono managed) \
+ $(use_enable introspection) \
$(use_enable networkmanager) \
$(use_enable nls) \
$(use_enable nsplugin browser-plugin) \
$(use_enable pm-utils) \
$(use_enable qt4 qt) \
- $(use_enable static-libs static) \
$(use_enable test tests) \
$(use_enable udev device-rebind)
}
@@ -121,38 +134,19 @@ src_configure() {
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
- dodoc AUTHORS MAINTAINERS NEWS README RELEASE TODO || die "dodoc failed"
+ dodoc ${DOCS} || die "dodoc failed"
if use nsplugin; then
src_mv_plugins /usr/$(get_libdir)/mozilla/plugins
fi
- if ! use static-libs; then
- find "${D}" -name *.la | xargs rm || die "removing .la files failed"
- fi
+ ebegin "Removing .la files"
+ find "${D}" -name '*.la' -exec rm -f '{}' + || die
+ eend
}
pkg_postinst() {
python_mod_optimize $(python_get_sitedir)/${PN}
-
- 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."
- ewarn ""
- ebeep
- epause 5
- fi
-
- if ! use consolekit; then
- ewarn "You have disabled consolekit support."
- ewarn "Even if you can run ${MY_PN} without a running ConsoleKit daemon,"
- ewarn "it is not recommanded nor supported upstream."
- ewarn ""
- fi
-
- ewarn "${MY_PN} live ebuild could be broken because of need of SVN version of portage."
}
pkg_prerm() {
diff --git a/app-portage/packagekit/packagekit-9999.ebuild b/app-portage/packagekit/packagekit-9999.ebuild
index 01c97a4..b3d6fc7 100644
--- a/app-portage/packagekit/packagekit-9999.ebuild
+++ b/app-portage/packagekit/packagekit-9999.ebuild
@@ -1,31 +1,43 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
-inherit autotools eutils git python nsplugins
+inherit eutils multilib python nsplugins
MY_PN="PackageKit"
DESCRIPTION="Manage packages in a secure way using a cross-distro and cross-architecture API"
HOMEPAGE="http://www.packagekit.org/"
-EGIT_REPO_URI="git://anongit.freedesktop.org/git/${PN}/${MY_PN}"
+
+if [[ ${PV} = 9999 ]]; then
+ inherit autotools git
+ EGIT_REPO_URI="git://anongit.freedesktop.org/git/${PN}/${MY_PN}"
+ KEYWORDS=""
+ DEPEND=">=dev-util/gtk-doc-1.9"
+ RESTRICT="test" # tests are failing atm
+ DOCS="AUTHORS MAINTAINERS NEWS README TODO"
+else
+ MY_P=${MY_PN}-${PV}
+ SRC_URI="http://www.packagekit.org/releases/${MY_P}.tar.gz"
+ KEYWORDS="~amd64 ~ppc ~x86"
+ S="${WORKDIR}/${MY_P}"
+ DOCS="AUTHORS ChangeLog MAINTAINERS NEWS README TODO"
+fi
LICENSE="GPL-2"
SLOT="0"
-KEYWORDS="" # live ebuild
-IUSE="connman +consolekit cron doc gtk mono networkmanager nls nsplugin pm-utils
-+policykit qt4 static-libs test udev"
+IUSE="connman cron gtk +introspection networkmanager nls nsplugin pm-utils qt4
+test udev"
CDEPEND="
connman? ( net-misc/connman )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
gtk? ( dev-libs/dbus-glib
media-libs/fontconfig
- >=x11-libs/gtk+-2.14.0:2
+ >=x11-libs/gtk+-2.91.0:3
x11-libs/pango )
- mono? ( dev-dotnet/glib-sharp:2
- dev-lang/mono )
networkmanager? ( >=net-misc/networkmanager-0.6.4 )
nsplugin? ( dev-libs/dbus-glib
dev-libs/glib:2
@@ -33,60 +45,60 @@ CDEPEND="
x11-libs/cairo
>=x11-libs/gtk+-2.14.0:2
x11-libs/pango )
- policykit? ( >=sys-auth/polkit-0.92 )
qt4? ( >=x11-libs/qt-core-4.4.0
>=x11-libs/qt-dbus-4.4.0
>=x11-libs/qt-sql-4.4.0 )
udev? ( >=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"
+ >=dev-libs/glib-2.22:2
+ >=sys-apps/dbus-1.1.0
+ >=sys-auth/polkit-0.97"
RDEPEND="${CDEPEND}
- consolekit? ( sys-auth/consolekit )
pm-utils? ( sys-power/pm-utils )
>=app-portage/layman-1.2.3
- >=sys-apps/portage-2.2_rc39"
-DEPEND="${CDEPEND}
- doc? ( >=dev-util/gtk-doc-1.9 )
- mono? ( dev-dotnet/gtk-sharp-gapi:2 )
+ >=sys-apps/portage-2.2_rc39
+ sys-auth/consolekit"
+DEPEND="${CDEPEND} ${DEPEND}
nsplugin? ( >=net-libs/xulrunner-1.9.1 )
test? ( qt4? ( dev-util/cppunit >=x11-libs/qt-gui-4.4.0 ) )
dev-libs/libxslt
- dev-util/gtk-doc
>=dev-util/intltool-0.35.0
dev-util/pkgconfig
sys-devel/gettext"
-RESTRICT="test" # tests in live ebuild is not a good idea
-
# NOTES:
-# gtk-doc, gettext and intltool are mandatory for eautoreconf
+# doc is in the tarball and always installed
+# using >=dbus-1.3.0 instead of >=dbus-1.1.1 because of a bug fixed in 1.3.0
+
+# TODO:
+# gettext is probably needed only if +nls but too long to fix
+# +doc to install doc/website
+# check if test? qt? ( really needs qt-gui)
+
+# UPSTREAM:
+# documentation/website with --enable-doc-install
+# failing tests
src_prepare() {
- gtkdocize || die "gtkdocize failed"
- eautoreconf
- intltoolize || die "intltoolize failed"
+ if [[ ${PV} = 9999 ]]; then
+ gtkdocize || die
+ intltoolize --force || die
+ eautoreconf
+ fi
# prevent pyc/pyo generation
- rm py-compile || die "rm py-compile failed"
- ln -s $(type -P true) py-compile
+ ln -sfn $(type -P true) py-compile
}
src_configure() {
local myconf=""
- if use policykit; then
- myconf="${myconf} --with-security-framework=polkit"
- else
- myconf="${myconf} --with-security-framework=dummy"
- fi
-
# localstatedir: for gentoo it's /var/lib but for $PN it's /var
# dep-tracking,option-check,libtool-lock,strict,local: obvious reasons
# gtk-doc: doc already built
# command,debuginfo,gstreamer,service-packs: not supported by backend
- # man-pages: we want them
+ # managed: failing (see UPSTREAM in ebuild header)
econf \
${myconf} \
--localstatedir=/var \
@@ -95,25 +107,26 @@ src_configure() {
--enable-libtool-lock \
--disable-strict \
--disable-local \
+ --disable-gtk-doc \
--disable-command-not-found \
--disable-debuginfo-install \
--disable-gstreamer-plugin \
--disable-service-packs \
+ --disable-static \
+ --enable-man-pages \
--disable-dummy \
--enable-portage \
--with-default-backend=portage \
- --enable-man-pages \
+ --with-security-framework=polkit \
$(use_enable connman) \
$(use_enable cron) \
- $(use_enable doc gtk-doc) \
$(use_enable gtk gtk-module) \
- $(use_enable mono managed) \
+ $(use_enable introspection) \
$(use_enable networkmanager) \
$(use_enable nls) \
$(use_enable nsplugin browser-plugin) \
$(use_enable pm-utils) \
$(use_enable qt4 qt) \
- $(use_enable static-libs static) \
$(use_enable test tests) \
$(use_enable udev device-rebind)
}
@@ -121,38 +134,19 @@ src_configure() {
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
- dodoc AUTHORS MAINTAINERS NEWS README RELEASE TODO || die "dodoc failed"
+ dodoc ${DOCS} || die "dodoc failed"
if use nsplugin; then
src_mv_plugins /usr/$(get_libdir)/mozilla/plugins
fi
- if ! use static-libs; then
- find "${D}" -name *.la | xargs rm || die "removing .la files failed"
- fi
+ ebegin "Removing .la files"
+ find "${D}" -name '*.la' -exec rm -f '{}' + || die
+ eend
}
pkg_postinst() {
python_mod_optimize $(python_get_sitedir)/${PN}
-
- 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."
- ewarn ""
- ebeep
- epause 5
- fi
-
- if ! use consolekit; then
- ewarn "You have disabled consolekit support."
- ewarn "Even if you can run ${MY_PN} without a running ConsoleKit daemon,"
- ewarn "it is not recommanded nor supported upstream."
- ewarn ""
- fi
-
- ewarn "${MY_PN} live ebuild could be broken because of need of SVN version of portage."
}
pkg_prerm() {
next reply other threads:[~2011-02-16 0:49 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-16 0:48 Nirbheek Chauhan [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-03-23 5:20 [gentoo-commits] proj/gnome:master commit in: app-portage/packagekit/ Nirbheek Chauhan
2011-05-08 17:36 Gilles Dartiguelongue
2011-06-14 6:36 Nirbheek Chauhan
2011-07-01 21:07 Alexandre Restovtsev
2011-07-19 3:36 Alexandre Restovtsev
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52caaaebc50f0c754993634d415538c51ecb4768.nirbheek@gentoo \
--to=nirbheek@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox