public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Tiziano Müller" <dev-zero@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] dev/dev-zero:master commit in: app-emulation/spice-gtk/, app-emulation/spice-gtk/files/
Date: Thu, 17 Feb 2011 14:56:03 +0000 (UTC)	[thread overview]
Message-ID: <a8f06cae303f10d17a760bdb40721893a293ba08.dev-zero@gentoo> (raw)

commit:     a8f06cae303f10d17a760bdb40721893a293ba08
Author:     Tiziano Mueller <dev-zero <AT> gentoo <DOT> org>
AuthorDate: Thu Feb 17 14:55:53 2011 +0000
Commit:     Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
CommitDate: Thu Feb 17 14:55:53 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=commit;h=a8f06cae

Added protocol handler installation from spice.

---
 app-emulation/spice-gtk/Manifest             |    4 +
 app-emulation/spice-gtk/files/spice.protocol |   12 ++++
 app-emulation/spice-gtk/files/spice.schemas  |   41 ++++++++++++
 app-emulation/spice-gtk/spice-gtk-0.5.ebuild |   91 ++++++++++++++++++++++++++
 4 files changed, 148 insertions(+), 0 deletions(-)

diff --git a/app-emulation/spice-gtk/Manifest b/app-emulation/spice-gtk/Manifest
new file mode 100644
index 0000000..93a7726
--- /dev/null
+++ b/app-emulation/spice-gtk/Manifest
@@ -0,0 +1,4 @@
+AUX spice.protocol 159 RMD160 21355d8f9f223cfbd6c37431427e882a1c462693 SHA1 fa0b2a8ae28bd93bc70423a99d803f5af5fe5ed3 SHA256 9a13ea202d5b26cbb45874c56df95d30c15a9372e55140426742f249f5b16525
+AUX spice.schemas 1305 RMD160 308a15a26d54874237c8d1698176c1dddbd3c243 SHA1 a6c8fd323ef971924f996857b9d26cabf8a4696d SHA256 aa21d09f57e539a9206d88051f2b4d1a15e9eb3e8ea2d104bdcdcb677801ea14
+EBUILD spice-gtk-0.5.ebuild 2114 RMD160 9c8f4c1d9cee4701d79bd92a61f1b3c3f590d77b SHA1 eb0ae749f9319c53a2483050c0e2807912495e28 SHA256 e1683aced1283545c9dfb5c3722c100de125f245b549d076881b20a886d1a92c
+DIST spice-gtk-0.5.tar.bz2 685724 RMD160 7a66a09e05b443ac95607cd7889dbdd665c2cf8d SHA1 41f56fcb9f5fd3ea48261af6c1e28fe09a0d0e71 SHA256 28aa6e8598030592c0e9181e540d8b09f8556ac6b512f6988e8b3f0eb88aa247

diff --git a/app-emulation/spice-gtk/files/spice.protocol b/app-emulation/spice-gtk/files/spice.protocol
new file mode 100644
index 0000000..348247f
--- /dev/null
+++ b/app-emulation/spice-gtk/files/spice.protocol
@@ -0,0 +1,12 @@
+[Protocol]
+exec=/usr/bin/spicy --uri="%u"
+protocol=spice
+input=none
+output=none
+helper=true
+listing=
+reading=false
+writing=false
+makedir=false
+deleting=false
+

diff --git a/app-emulation/spice-gtk/files/spice.schemas b/app-emulation/spice-gtk/files/spice.schemas
new file mode 100644
index 0000000..43b1217
--- /dev/null
+++ b/app-emulation/spice-gtk/files/spice.schemas
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<gconfschemafile>
+<schemalist>
+<schema>
+     <key>/schemas/desktop/gnome/url-handlers/spice/enabled</key>
+     <applyto>/desktop/gnome/url-handlers/spice/enabled</applyto>
+     <owner>spice</owner>
+     <type>bool</type>
+     <default>true</default>
+     <locale name="C">
+       <short>How to handle spice URLs</short>
+       <long>Set to true to have a program specified in command handle spice URLs</long>
+     </locale>
+</schema>
+
+   <schema>
+     <key>/schemas/desktop/gnome/url-handlers/spice/command</key>
+     <applyto>/desktop/gnome/url-handlers/spice/command</applyto>
+     <owner>spice</owner>
+     <type>string</type>
+     <default>/usr/bin/spicy --uri="%s"</default>
+     <locale name="C">
+       <short>URL handler for spice URIs</short>
+       <long>URL handler for spice URIs</long>
+     </locale>
+    </schema>
+
+   <schema>
+     <key>/schemas/desktop/gnome/url-handlers/spice/need-terminal</key>
+     <applyto>/desktop/gnome/url-handlers/spice/need-terminal</applyto>
+     <owner>spice</owner>
+     <type>bool</type>
+     <default>false</default>
+     <locale name="C">
+       <short>Run program in terminal</short>
+       <long>True if the program to handle this URL should be run in a terminal</long>
+     </locale>
+    </schema>
+</schemalist>
+</gconfschemafile>
+

diff --git a/app-emulation/spice-gtk/spice-gtk-0.5.ebuild b/app-emulation/spice-gtk/spice-gtk-0.5.ebuild
new file mode 100644
index 0000000..bf7ef3c
--- /dev/null
+++ b/app-emulation/spice-gtk/spice-gtk-0.5.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=3
+
+inherit python gnome2-utils
+
+PYTHON_DEPEND="python? 2"
+
+DESCRIPTION="Set of GObject and Gtk objects for connecting to Spice servers and a client GUI."
+HOMEPAGE="http://spice-space.org http://gitorious.org/spice-gtk"
+SRC_URI="http://spice-space.org/download/gtk/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+cairo doc gnome gstreamer introspection kde +pulseaudio python static-libs"
+
+RDEPEND="pulseaudio? ( !gstreamer? ( media-sound/pulseaudio ) )
+	gstreamer? ( media-libs/gstreamer )
+	>=app-emulation/spice-protocol-0.6.3
+	>=x11-libs/pixman-0.17.7
+	>=media-libs/celt-0.5.1.1:0.5.1
+	dev-libs/openssl
+	x11-libs/gtk+:2
+	dev-libs/glib:2
+	>=x11-libs/cairo-1.2
+	virtual/jpeg
+	sys-libs/zlib
+	introspection? ( dev-libs/gobject-introspection )
+	python? ( dev-python/pygtk:2 )
+	gnome? ( gnome-base/gconf )"
+DEPEND="${RDEPEND}
+	dev-lang/python
+	dev-lang/perl
+	dev-perl/Text-CSV
+	dev-python/pyparsing
+	dev-util/pkgconfig"
+
+pkg_setup() {
+	if use gstreamer && use pulseaudio ; then
+		ewarn "spice-gtk can use only one audio backend: gstreamer will be used since you enabled both."
+	fi
+}
+
+src_configure() {
+	local audio="no"
+	use pulseaudio && audio="pulse"
+	use gstreamer && audio="gstreamer"
+
+	econf \
+		$(use_enable static-libs static) \
+		$(use_enable introspection) \
+		--with-audio="${audio}" \
+		$(use_with !cairo x11) \
+		$(use_with python)
+
+}
+
+src_install() {
+	emake -j1 DESTDIR="${D}" install || die "emake install failed"
+
+	use static-libs || rm -rf "${D}"/usr/lib*/*.la
+	use python && rm -rf "${D}"/usr/lib*/python*/site-packages/*.la
+	use doc || rm -rf "${D}/usr/share/gtk-doc"
+
+	dodoc AUTHORS NEWS README TODO
+
+	if use gnome ; then
+		insinto /etc/gconf/schemas
+		doins "${FILESDIR}/spice.schemas"
+	fi
+	if use kde ; then
+		insinto /usr/share/kde4/services
+		doins "${FILESDIR}/spice.protocol"
+	fi
+
+}
+
+pkg_preinst() {
+	use gnome && gnome2_gconf_savelist
+}
+
+pkg_postinst() {
+	use gnome && gnome2_gconf_install
+}
+
+pkg_prerm() {
+	use gnome && gnome2_gconf_uninstall
+}



             reply	other threads:[~2011-02-17 14:56 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-17 14:56 Tiziano Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2011-07-25 12:18 [gentoo-commits] dev/dev-zero:master commit in: app-emulation/spice-gtk/, app-emulation/spice-gtk/files/ Tiziano Müller

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=a8f06cae303f10d17a760bdb40721893a293ba08.dev-zero@gentoo \
    --to=dev-zero@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