Gentoo Archives: gentoo-commits

From: "Tiziano Mueller (dev-zero)" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-emulation/spice: metadata.xml spice-0.7.1.ebuild
Date: Wed, 05 Jan 2011 13:14:28
Message-Id: 20110105131418.DF40F20051@flycatcher.gentoo.org
1 dev-zero 11/01/05 13:14:18
2
3 Modified: metadata.xml spice-0.7.1.ebuild
4 Log:
5 Added uri handling patch.
6
7 (Portage version: 2.1.9.26/cvs/Linux x86_64)
8
9 Revision Changes Path
10 1.2 app-emulation/spice/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/metadata.xml?rev=1.2&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/metadata.xml?rev=1.2&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/metadata.xml?r1=1.1&r2=1.2
15
16 Index: metadata.xml
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/app-emulation/spice/metadata.xml,v
19 retrieving revision 1.1
20 retrieving revision 1.2
21 diff -u -r1.1 -r1.2
22 --- metadata.xml 11 Aug 2010 16:22:04 -0000 1.1
23 +++ metadata.xml 5 Jan 2011 13:14:18 -0000 1.2
24 @@ -8,5 +8,8 @@
25 </maintainer>
26 <use>
27 <flag name="gui">Build some GUI components (inside the guest window).</flag>
28 + <flag name="uri">Add uri-handling support to spicec using <pkg>dev-libs/uriparser</pkg>.</flag>
29 + <flag name="kde">Install a KDE protocol handler configuration for spice
30 + (only in combination with the uri USE flag)</flag>
31 </use>
32 </pkgmetadata>
33
34
35
36 1.2 app-emulation/spice/spice-0.7.1.ebuild
37
38 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/spice-0.7.1.ebuild?rev=1.2&view=markup
39 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/spice-0.7.1.ebuild?rev=1.2&content-type=text/plain
40 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-emulation/spice/spice-0.7.1.ebuild?r1=1.1&r2=1.2
41
42 Index: spice-0.7.1.ebuild
43 ===================================================================
44 RCS file: /var/cvsroot/gentoo-x86/app-emulation/spice/spice-0.7.1.ebuild,v
45 retrieving revision 1.1
46 retrieving revision 1.2
47 diff -u -r1.1 -r1.2
48 --- spice-0.7.1.ebuild 29 Dec 2010 09:30:52 -0000 1.1
49 +++ spice-0.7.1.ebuild 5 Jan 2011 13:14:18 -0000 1.2
50 @@ -1,9 +1,11 @@
51 -# Copyright 1999-2010 Gentoo Foundation
52 +# Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 -# $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 $
55 +# $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 $
56
57 EAPI=3
58
59 +inherit autotools eutils
60 +
61 DESCRIPTION="SPICE server and client."
62 HOMEPAGE="http://spice-space.org/"
63 SRC_URI="http://spice-space.org/download/releases/${P}.tar.bz2"
64 @@ -11,7 +13,7 @@
65 LICENSE="LGPL-2.1"
66 SLOT="0"
67 KEYWORDS="~amd64"
68 -IUSE="+gui static-libs"
69 +IUSE="+gui kde static-libs uri"
70
71 RDEPEND=">=app-emulation/spice-protocol-0.7.0
72 >=x11-libs/pixman-0.17.7
73 @@ -25,13 +27,21 @@
74 x11-libs/libXfixes
75 virtual/jpeg
76 sys-libs/zlib
77 - gui? ( =dev-games/cegui-0.6* )"
78 + gui? ( =dev-games/cegui-0.6* )
79 + uri? ( dev-libs/uriparser )"
80 DEPEND="dev-util/pkgconfig
81 ${RDEPEND}"
82
83 # maintainer notes:
84 # * opengl support is currently broken
85
86 +src_prepare() {
87 + if use uri ; then
88 + epatch "${FILESDIR}/0001-Added-initial-connection-url-handling-using-the-urip.patch"
89 + eautoreconf
90 + fi
91 +}
92 +
93 src_configure() {
94 local myconf=""
95 use gui && myconf+="--enable-gui "
96 @@ -43,4 +53,34 @@
97 emake DESTDIR="${D}" install || die "emake install failed"
98 dodoc NEWS TODO
99 use static-libs || rm "${D}"/usr/lib*/*.la
100 +
101 + if use uri && use kde ; then
102 + dodir /usr/share/kde4/services
103 + cat > "${D}/usr/share/kde4/services/spice.protocol" << EOF
104 +[Protocol]
105 +exec=/usr/bin/spicec --uri "%u"
106 +protocol=spice
107 +input=none
108 +output=none
109 +helper=true
110 +listing=
111 +reading=false
112 +writing=false
113 +makedir=false
114 +deleting=false
115 +EOF
116 + fi
117 +}
118 +
119 +pkg_postinst() {
120 + if use uri ; then
121 + elog "You enabled uri-handler support in spice. Therefore you"
122 + elog "might want your browser / deskop environment to handle"
123 + elog "spice uri's using spicec. To enable this, run:"
124 + elog " gconftool-2 -s /desktop/gnome/url-handlers/spice/command '/usr/bin/spicec --uri "%s"' --type String"
125 + elog " gconftool-2 -s /desktop/gnome/url-handlers/spice/enabled --type Boolean true"
126 + if use kde ; then
127 + elog "For KDE the protocol could be registered automatically."
128 + fi
129 + fi
130 }