From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Pq5HA-0001Rv-69 for garchives@archives.gentoo.org; Thu, 17 Feb 2011 14:56:12 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9BE6E08A6; Thu, 17 Feb 2011 14:56:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 86A59E08A6 for ; Thu, 17 Feb 2011 14:56:04 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BCD4D1B400E for ; Thu, 17 Feb 2011 14:56:03 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 11E688006A for ; Thu, 17 Feb 2011 14:56:03 +0000 (UTC) From: "Tiziano Müller" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Tiziano Müller" Message-ID: Subject: [gentoo-commits] dev/dev-zero:master commit in: app-emulation/spice-gtk/, app-emulation/spice-gtk/files/ X-VCS-Repository: dev/dev-zero X-VCS-Files: app-emulation/spice-gtk/Manifest app-emulation/spice-gtk/files/spice.protocol app-emulation/spice-gtk/files/spice.schemas app-emulation/spice-gtk/spice-gtk-0.5.ebuild X-VCS-Directories: app-emulation/spice-gtk/ app-emulation/spice-gtk/files/ X-VCS-Committer: dev-zero X-VCS-Committer-Name: Tiziano Müller X-VCS-Revision: a8f06cae303f10d17a760bdb40721893a293ba08 Date: Thu, 17 Feb 2011 14:56:03 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 8ebaad03c4479e747c71ea6ee7573592 commit: a8f06cae303f10d17a760bdb40721893a293ba08 Author: Tiziano Mueller gentoo org> AuthorDate: Thu Feb 17 14:55:53 2011 +0000 Commit: Tiziano M=C3=BCller gentoo org> CommitDate: Thu Feb 17 14:55:53 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Ddev/dev-zero.git;a= =3Dcommit;h=3Da8f06cae 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/M= anifest 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 S= HA1 fa0b2a8ae28bd93bc70423a99d803f5af5fe5ed3 SHA256 9a13ea202d5b26cbb4587= 4c56df95d30c15a9372e55140426742f249f5b16525 +AUX spice.schemas 1305 RMD160 308a15a26d54874237c8d1698176c1dddbd3c243 S= HA1 a6c8fd323ef971924f996857b9d26cabf8a4696d SHA256 aa21d09f57e539a9206d8= 8051f2b4d1a15e9eb3e8ea2d104bdcdcb677801ea14 +EBUILD spice-gtk-0.5.ebuild 2114 RMD160 9c8f4c1d9cee4701d79bd92a61f1b3c3= f590d77b SHA1 eb0ae749f9319c53a2483050c0e2807912495e28 SHA256 e1683aced12= 83545c9dfb5c3722c100de125f245b549d076881b20a886d1a92c +DIST spice-gtk-0.5.tar.bz2 685724 RMD160 7a66a09e05b443ac95607cd7889dbdd= 665c2cf8d SHA1 41f56fcb9f5fd3ea48261af6c1e28fe09a0d0e71 SHA256 28aa6e8598= 030592c0e9181e540d8b09f8556ac6b512f6988e8b3f0eb88aa247 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=3D/usr/bin/spicy --uri=3D"%u" +protocol=3Dspice +input=3Dnone +output=3Dnone +helper=3Dtrue +listing=3D +reading=3Dfalse +writing=3Dfalse +makedir=3Dfalse +deleting=3Dfalse + 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 @@ + + + + + /schemas/desktop/gnome/url-handlers/spice/enabled + /desktop/gnome/url-handlers/spice/enabled + spice + bool + true + + How to handle spice URLs + Set to true to have a program specified in command handle s= pice URLs + + + + + /schemas/desktop/gnome/url-handlers/spice/command + /desktop/gnome/url-handlers/spice/command + spice + string + /usr/bin/spicy --uri=3D"%s" + + URL handler for spice URIs + URL handler for spice URIs + + + + + /schemas/desktop/gnome/url-handlers/spice/need-terminal + /desktop/gnome/url-handlers/spice/need-terminal + spice + bool + false + + Run program in terminal + True if the program to handle this URL should be run in a t= erminal + + + + + 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=3D3 + +inherit python gnome2-utils + +PYTHON_DEPEND=3D"python? 2" + +DESCRIPTION=3D"Set of GObject and Gtk objects for connecting to Spice se= rvers and a client GUI." +HOMEPAGE=3D"http://spice-space.org http://gitorious.org/spice-gtk" +SRC_URI=3D"http://spice-space.org/download/gtk/${P}.tar.bz2" + +LICENSE=3D"LGPL-2.1" +SLOT=3D"0" +KEYWORDS=3D"~amd64" +IUSE=3D"+cairo doc gnome gstreamer introspection kde +pulseaudio python = static-libs" + +RDEPEND=3D"pulseaudio? ( !gstreamer? ( media-sound/pulseaudio ) ) + gstreamer? ( media-libs/gstreamer ) + >=3Dapp-emulation/spice-protocol-0.6.3 + >=3Dx11-libs/pixman-0.17.7 + >=3Dmedia-libs/celt-0.5.1.1:0.5.1 + dev-libs/openssl + x11-libs/gtk+:2 + dev-libs/glib:2 + >=3Dx11-libs/cairo-1.2 + virtual/jpeg + sys-libs/zlib + introspection? ( dev-libs/gobject-introspection ) + python? ( dev-python/pygtk:2 ) + gnome? ( gnome-base/gconf )" +DEPEND=3D"${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 use= d since you enabled both." + fi +} + +src_configure() { + local audio=3D"no" + use pulseaudio && audio=3D"pulse" + use gstreamer && audio=3D"gstreamer" + + econf \ + $(use_enable static-libs static) \ + $(use_enable introspection) \ + --with-audio=3D"${audio}" \ + $(use_with !cairo x11) \ + $(use_with python) + +} + +src_install() { + emake -j1 DESTDIR=3D"${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 +}