* [gentoo-commits] gentoo-x86 commit in app-emulation/spice: metadata.xml spice-0.7.1.ebuild
@ 2011-01-05 13:14 Tiziano Mueller (dev-zero)
0 siblings, 0 replies; only message in thread
From: Tiziano Mueller (dev-zero) @ 2011-01-05 13:14 UTC (permalink / raw
To: gentoo-commits
dev-zero 11/01/05 13:14:18
Modified: metadata.xml spice-0.7.1.ebuild
Log:
Added uri handling patch.
(Portage version: 2.1.9.26/cvs/Linux x86_64)
Revision Changes Path
1.2 app-emulation/spice/metadata.xml
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/metadata.xml?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/metadata.xml?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/metadata.xml?r1=1.1&r2=1.2
Index: metadata.xml
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-emulation/spice/metadata.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- metadata.xml 11 Aug 2010 16:22:04 -0000 1.1
+++ metadata.xml 5 Jan 2011 13:14:18 -0000 1.2
@@ -8,5 +8,8 @@
</maintainer>
<use>
<flag name="gui">Build some GUI components (inside the guest window).</flag>
+ <flag name="uri">Add uri-handling support to spicec using <pkg>dev-libs/uriparser</pkg>.</flag>
+ <flag name="kde">Install a KDE protocol handler configuration for spice
+ (only in combination with the uri USE flag)</flag>
</use>
</pkgmetadata>
1.2 app-emulation/spice/spice-0.7.1.ebuild
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/spice-0.7.1.ebuild?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/spice-0.7.1.ebuild?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/spice-0.7.1.ebuild?r1=1.1&r2=1.2
Index: spice-0.7.1.ebuild
===================================================================
RCS file: /var/cvsroot/gentoo-x86/app-emulation/spice/spice-0.7.1.ebuild,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- spice-0.7.1.ebuild 29 Dec 2010 09:30:52 -0000 1.1
+++ spice-0.7.1.ebuild 5 Jan 2011 13:14:18 -0000 1.2
@@ -1,9 +1,11 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-emulation/spice/spice-0.7.1.ebuild,v 1.1 2010/12/29 09:30:52 dev-zero Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-emulation/spice/spice-0.7.1.ebuild,v 1.2 2011/01/05 13:14:18 dev-zero Exp $
EAPI=3
+inherit autotools eutils
+
DESCRIPTION="SPICE server and client."
HOMEPAGE="http://spice-space.org/"
SRC_URI="http://spice-space.org/download/releases/${P}.tar.bz2"
@@ -11,7 +13,7 @@
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
-IUSE="+gui static-libs"
+IUSE="+gui kde static-libs uri"
RDEPEND=">=app-emulation/spice-protocol-0.7.0
>=x11-libs/pixman-0.17.7
@@ -25,13 +27,21 @@
x11-libs/libXfixes
virtual/jpeg
sys-libs/zlib
- gui? ( =dev-games/cegui-0.6* )"
+ gui? ( =dev-games/cegui-0.6* )
+ uri? ( dev-libs/uriparser )"
DEPEND="dev-util/pkgconfig
${RDEPEND}"
# maintainer notes:
# * opengl support is currently broken
+src_prepare() {
+ if use uri ; then
+ epatch "${FILESDIR}/0001-Added-initial-connection-url-handling-using-the-urip.patch"
+ eautoreconf
+ fi
+}
+
src_configure() {
local myconf=""
use gui && myconf+="--enable-gui "
@@ -43,4 +53,34 @@
emake DESTDIR="${D}" install || die "emake install failed"
dodoc NEWS TODO
use static-libs || rm "${D}"/usr/lib*/*.la
+
+ if use uri && use kde ; then
+ dodir /usr/share/kde4/services
+ cat > "${D}/usr/share/kde4/services/spice.protocol" << EOF
+[Protocol]
+exec=/usr/bin/spicec --uri "%u"
+protocol=spice
+input=none
+output=none
+helper=true
+listing=
+reading=false
+writing=false
+makedir=false
+deleting=false
+EOF
+ fi
+}
+
+pkg_postinst() {
+ if use uri ; then
+ elog "You enabled uri-handler support in spice. Therefore you"
+ elog "might want your browser / deskop environment to handle"
+ elog "spice uri's using spicec. To enable this, run:"
+ elog " gconftool-2 -s /desktop/gnome/url-handlers/spice/command '/usr/bin/spicec --uri "%s"' --type String"
+ elog " gconftool-2 -s /desktop/gnome/url-handlers/spice/enabled --type Boolean true"
+ if use kde ; then
+ elog "For KDE the protocol could be registered automatically."
+ fi
+ fi
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-01-05 13:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-05 13:14 [gentoo-commits] gentoo-x86 commit in app-emulation/spice: metadata.xml spice-0.7.1.ebuild Tiziano Mueller (dev-zero)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox