From: "Gilles Dartiguelongue" <eva@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/gnome:master commit in: app-portage/packagekit/
Date: Sun, 8 May 2011 17:36:50 +0000 (UTC) [thread overview]
Message-ID: <dfeaf2888e0b5dd40a220dd8c49f54c88ab0b287.eva@gentoo> (raw)
commit: dfeaf2888e0b5dd40a220dd8c49f54c88ab0b287
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
AuthorDate: Sun May 8 15:47:40 2011 +0000
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org>
CommitDate: Sun May 8 15:47:40 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/gnome.git;a=commit;h=dfeaf288
app-portage/packagekit: 0.6.13 → 0.6.13
---
...gekit-0.6.8.ebuild => packagekit-0.6.14.ebuild} | 98 +++++++++-----------
app-portage/packagekit/packagekit-9999.ebuild | 14 ++--
2 files changed, 51 insertions(+), 61 deletions(-)
diff --git a/app-portage/packagekit/packagekit-0.6.8.ebuild b/app-portage/packagekit/packagekit-0.6.14.ebuild
similarity index 61%
rename from app-portage/packagekit/packagekit-0.6.8.ebuild
rename to app-portage/packagekit/packagekit-0.6.14.ebuild
index 8e8cadf..8047d99 100644
--- a/app-portage/packagekit/packagekit-0.6.8.ebuild
+++ b/app-portage/packagekit/packagekit-0.6.14.ebuild
@@ -5,33 +5,49 @@
EAPI="2"
inherit eutils multilib python nsplugins
+if [[ ${PV} = 9999 ]]; then
+ inherit autotools git
+fi
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.gz"
+
+if [[ ${PV} = 9999 ]]; then
+ 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="~amd64 ~ppc ~x86"
-IUSE="connman +consolekit cron gtk 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 )
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 )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
networkmanager? ( >=net-misc/networkmanager-0.6.4 )
nsplugin? ( dev-libs/dbus-glib
dev-libs/glib:2
dev-libs/nspr
x11-libs/cairo
>=x11-libs/gtk+-2.14.0:2
+ >=x11-libs/gtk+-2.91.0:3
x11-libs/pango )
- policykit? ( >=sys-auth/polkit-0.97 )
qt4? ( >=x11-libs/qt-core-4.4.0
>=x11-libs/qt-dbus-4.4.0
>=x11-libs/qt-sql-4.4.0 )
@@ -39,12 +55,15 @@ CDEPEND="
dev-db/sqlite:3
>=dev-libs/dbus-glib-0.74
>=dev-libs/glib-2.22:2
- >=sys-apps/dbus-1.1.0"
+ >=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"
+ >=sys-apps/portage-2.2_rc39
+ sys-auth/consolekit
+"
DEPEND="${CDEPEND}
nsplugin? ( >=net-libs/xulrunner-1.9.1 )
test? ( qt4? ( dev-util/cppunit >=x11-libs/qt-gui-4.4.0 ) )
@@ -53,15 +72,8 @@ DEPEND="${CDEPEND}
dev-util/pkgconfig
sys-devel/gettext"
-S="${WORKDIR}/${MY_P}"
-RESTRICT="test" # tests are failing atm
-
# NOTES:
-# polkit is in gnome overlay, otherwise, should use policykit
-# 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
# using >=dbus-1.3.0 instead of >=dbus-1.1.1 because of a bug fixed in 1.3.0
# TODO:
@@ -73,28 +85,24 @@ RESTRICT="test" # tests are failing atm
# documentation/website with --enable-doc-install
# failing tests
+pkg_setup() {
+ python_set_active_version 2
+}
+
src_prepare() {
- # fix sandbox issue with gapi2-* tools
- # TODO: commented because mono is broken but:
- # TODO: should be in pkg_setup ? could be done better ?
- #if use mono; then
- # addwrite "/root/.wapi"
- #fi
+ 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
@@ -104,7 +112,6 @@ src_configure() {
${myconf} \
--localstatedir=/var \
--disable-dependency-tracking \
- --enable-option-checking \
--enable-libtool-lock \
--disable-strict \
--disable-local \
@@ -113,21 +120,21 @@ src_configure() {
--disable-debuginfo-install \
--disable-gstreamer-plugin \
--disable-service-packs \
- --disable-managed \
+ --disable-static \
--enable-man-pages \
--disable-dummy \
--enable-portage \
--with-default-backend=portage \
- --disable-introspection \
+ --with-security-framework=polkit \
$(use_enable connman) \
$(use_enable cron) \
$(use_enable gtk gtk-module) \
+ $(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)
}
@@ -135,36 +142,19 @@ src_configure() {
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
- dodoc AUTHORS ChangeLog MAINTAINERS NEWS README 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
}
pkg_prerm() {
diff --git a/app-portage/packagekit/packagekit-9999.ebuild b/app-portage/packagekit/packagekit-9999.ebuild
index 8abafc1..7535da1 100644
--- a/app-portage/packagekit/packagekit-9999.ebuild
+++ b/app-portage/packagekit/packagekit-9999.ebuild
@@ -30,16 +30,15 @@ fi
LICENSE="GPL-2"
SLOT="0"
-IUSE="connman cron gtk +introspection networkmanager nls nsplugin pm-utils qt4
-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.91.0:3
x11-libs/pango )
+ introspection? ( >=dev-libs/gobject-introspection-0.9.8 )
networkmanager? ( >=net-misc/networkmanager-0.6.4 )
nsplugin? ( dev-libs/dbus-glib
dev-libs/glib:2
@@ -55,13 +54,15 @@ CDEPEND="
>=dev-libs/dbus-glib-0.74
>=dev-libs/glib-2.22:2
>=sys-apps/dbus-1.1.0
- >=sys-auth/polkit-0.97"
+ >=sys-auth/polkit-0.97
+"
RDEPEND="${CDEPEND}
pm-utils? ( sys-power/pm-utils )
>=app-portage/layman-1.2.3
>=sys-apps/portage-2.2_rc39
- sys-auth/consolekit"
-DEPEND="${CDEPEND} ${DEPEND}
+ sys-auth/consolekit
+"
+DEPEND="${CDEPEND}
nsplugin? ( >=net-libs/xulrunner-1.9.1 )
test? ( qt4? ( dev-util/cppunit >=x11-libs/qt-gui-4.4.0 ) )
dev-libs/libxslt
@@ -105,7 +106,6 @@ src_configure() {
${myconf} \
--localstatedir=/var \
--disable-dependency-tracking \
- --enable-option-checking \
--enable-libtool-lock \
--disable-strict \
--disable-local \
next reply other threads:[~2011-05-08 17:37 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-08 17:36 Gilles Dartiguelongue [this message]
-- strict thread matches above, loose matches on Subject: below --
2011-07-19 3:36 [gentoo-commits] proj/gnome:master commit in: app-portage/packagekit/ Alexandre Restovtsev
2011-07-01 21:07 Alexandre Restovtsev
2011-06-14 6:36 Nirbheek Chauhan
2011-03-23 5:20 Nirbheek Chauhan
2011-02-16 0:48 Nirbheek Chauhan
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=dfeaf2888e0b5dd40a220dd8c49f54c88ab0b287.eva@gentoo \
--to=eva@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