Gentoo Archives: gentoo-commits

From: "Tiziano Müller" <dev-zero@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] dev/dev-zero:master commit in: app-emulation/virt-viewer/files/, app-emulation/virt-viewer/
Date: Tue, 29 May 2012 12:16:33
Message-Id: 1338293764.28276d04bb99f0d46da81098c689d3e5fe11d10e.dev-zero@gentoo
1 commit: 28276d04bb99f0d46da81098c689d3e5fe11d10e
2 Author: Tiziano Müller <tm <AT> dev-zero <DOT> ch>
3 AuthorDate: Tue May 29 12:16:04 2012 +0000
4 Commit: Tiziano Müller <dev-zero <AT> gentoo <DOT> org>
5 CommitDate: Tue May 29 12:16:04 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=dev/dev-zero.git;a=commit;h=28276d04
7
8 add version bump for virt-viewer
9
10 ---
11 app-emulation/virt-viewer/ChangeLog | 81 ++++++++++++++++++++
12 app-emulation/virt-viewer/Manifest | 5 +
13 .../files/virt-viewer-0.5.x-npapi-sdk.patch | 42 ++++++++++
14 app-emulation/virt-viewer/metadata.xml | 14 ++++
15 app-emulation/virt-viewer/virt-viewer-0.5.3.ebuild | 57 ++++++++++++++
16 5 files changed, 199 insertions(+), 0 deletions(-)
17
18 diff --git a/app-emulation/virt-viewer/ChangeLog b/app-emulation/virt-viewer/ChangeLog
19 new file mode 100644
20 index 0000000..2a31be4
21 --- /dev/null
22 +++ b/app-emulation/virt-viewer/ChangeLog
23 @@ -0,0 +1,81 @@
24 +# ChangeLog for app-emulation/virt-viewer
25 +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
26 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-viewer/ChangeLog,v 1.16 2012/05/03 18:49:06 jdhore Exp $
27 +
28 + 03 May 2012; Jeff Horelick <jdhore@g.o> virt-viewer-0.4.2.ebuild,
29 + virt-viewer-0.5.2.ebuild:
30 + dev-util/pkgconfig -> virtual/pkgconfig
31 +
32 + 23 Apr 2012; Samuli Suominen <ssuominen@g.o> virt-viewer-0.4.2.ebuild,
33 + virt-viewer-0.5.2.ebuild, +files/virt-viewer-0.5.x-npapi-sdk.patch:
34 + Support building against net-misc/npapi-sdk instead of obsolete
35 + net-libs/xulrunner wrt #383145 by Michał Górny
36 +
37 +*virt-viewer-0.5.2 (10 Mar 2012)
38 +
39 + 10 Mar 2012; Doug Goldstein <cardoe@g.o> virt-viewer-0.4.2.ebuild,
40 + +virt-viewer-0.5.2.ebuild:
41 + Version bump. Switch to REQUIRED_USE instead of a pkg_pretend check.
42 +
43 + 19 Jan 2012; Doug Goldstein <cardoe@g.o> virt-viewer-0.4.2.ebuild:
44 + USE=nsplugin relies on GTK+ 2.0, but when someone has USE=gtk3, we won't pull
45 + in the depends. This fixes that.
46 +
47 + 18 Jan 2012; Doug Goldstein <cardoe@g.o> -virt-viewer-0.2.0-r2.ebuild,
48 + -files/virt-viewer-0.2.0-xulrunner-1.9.1.patch:
49 + Remove old version
50 +
51 + 18 Jan 2012; Doug Goldstein <cardoe@g.o> virt-viewer-0.4.2.ebuild,
52 + metadata.xml:
53 + Add a USE flag for VNC support which is on by default. This is for SPICE only
54 + users that don't want VNC support.
55 +
56 +*virt-viewer-0.4.2 (18 Jan 2012)
57 +
58 + 18 Jan 2012; Doug Goldstein <cardoe@g.o> -virt-viewer-0.2.0-r1.ebuild,
59 + +virt-viewer-0.4.2.ebuild:
60 + Version bump
61 +
62 + 27 Mar 2011; Nirbheek Chauhan <nirbheek@g.o>
63 + virt-viewer-0.2.0-r1.ebuild, virt-viewer-0.2.0-r2.ebuild:
64 + Fix slot-deps on gnome libs
65 +
66 +*virt-viewer-0.2.0-r2 (24 Jan 2010)
67 +
68 + 24 Jan 2010; Thilo Bangert <bangert@g.o>
69 + +virt-viewer-0.2.0-r2.ebuild,
70 + +files/virt-viewer-0.2.0-xulrunner-1.9.1.patch:
71 + fix building against xulrunner-1.9.1 (#280167)
72 +
73 + 23 Dec 2009; Diego E. Pettenò <flameeyes@g.o>
74 + -virt-viewer-0.0.3.ebuild:
75 + Cleanup old versions.
76 +
77 + 15 Dec 2009; Doug Goldstein <cardoe@g.o> metadata.xml:
78 + change to virtualization herd
79 +
80 +*virt-viewer-0.2.0-r1 (10 Dec 2009)
81 +
82 + 10 Dec 2009; Diego E. Pettenò <flameeyes@g.o>
83 + -virt-viewer-0.2.0.ebuild, +virt-viewer-0.2.0-r1.ebuild:
84 + Revision bump, create src_install so that the package actually installs
85 + something.
86 +
87 +*virt-viewer-0.2.0 (02 Aug 2009)
88 +
89 + 02 Aug 2009; Doug Goldstein <cardoe@g.o> +virt-viewer-0.2.0.ebuild:
90 + version bump
91 +
92 + 31 Jan 2009; Donnie Berkholz <dberkholz@g.o>; metadata.xml:
93 + Give up maintainership.
94 +
95 + 19 Jan 2009; Raúl Porcel <armin76@g.o> virt-viewer-0.0.3.ebuild:
96 + Add ~x86 wrt #255040
97 +
98 +*virt-viewer-0.0.3 (15 May 2008)
99 +
100 + 15 May 2008; Donnie Berkholz <dberkholz@g.o>; +metadata.xml,
101 + +virt-viewer-0.0.3.ebuild:
102 + Add a graphical console client for connecting to virtual machines that
103 + uses the virtualization-neutral libvirt.
104 +
105
106 diff --git a/app-emulation/virt-viewer/Manifest b/app-emulation/virt-viewer/Manifest
107 new file mode 100644
108 index 0000000..b16bc2e
109 --- /dev/null
110 +++ b/app-emulation/virt-viewer/Manifest
111 @@ -0,0 +1,5 @@
112 +AUX virt-viewer-0.5.x-npapi-sdk.patch 888 RMD160 0dbb6956810f38abe5b3fe3824fd7aeebdbc01a8 SHA1 b880bb941216051b4b735ab18e9d91b341d7593e SHA256 570c329839650fd683b839676016ae4d1d9e3c5e5ad00cbf5444b68ada4ce307
113 +DIST virt-viewer-0.5.3.tar.gz 638327 RMD160 156713d668f482b169d2d2abc2f99ed7df97743c SHA1 dea38f9b31c3e374886d7c006b99a39c4094185b SHA256 944a53ab4079940d502e4e8572177fdf73357342f723e36538932556b6c2d996
114 +EBUILD virt-viewer-0.5.3.ebuild 1554 RMD160 069ce9d91ab6a4f7eaae1dd2acdc231ac03c854a SHA1 f0b09a8510c18d4168a22431f83abc6dfa9e14c9 SHA256 e1a8b77c7de51168ea3704ba26ddbf719dae5ae0167b1d7e5f81863830b49d9c
115 +MISC ChangeLog 2945 RMD160 1f292ed889d141153e66a53d75be3418b0f473f0 SHA1 0371d194784810c5a839c3a5c02d4f428afc3dea SHA256 5065ad51b89f3a9b68790f8fae829c591d8bfc3ea3a94dff78b43731b6f36298
116 +MISC metadata.xml 458 RMD160 b2da4655fe9f03fa5a2c9d74b6ab64b51002b3d2 SHA1 5e084322b3ac4b50f622e7a7155c3a6856818693 SHA256 8ed1c7a57660494a298c83bfd496954a3676b992317363e2cb5f2a4aec0b9345
117
118 diff --git a/app-emulation/virt-viewer/files/virt-viewer-0.5.x-npapi-sdk.patch b/app-emulation/virt-viewer/files/virt-viewer-0.5.x-npapi-sdk.patch
119 new file mode 100644
120 index 0000000..a945872
121 --- /dev/null
122 +++ b/app-emulation/virt-viewer/files/virt-viewer-0.5.x-npapi-sdk.patch
123 @@ -0,0 +1,42 @@
124 +This patch is expecting result of `pkg-config --cflags npapi-sdk nspr` passed to the compiler.
125 +
126 +http://bugs.gentoo.org/383145
127 +
128 +--- plugin/npshell.c
129 ++++ plugin/npshell.c
130 +@@ -83,8 +83,9 @@
131 + #include <string.h>
132 + #include <strings.h>
133 +
134 ++#include <nspr.h>
135 + #include <npapi.h>
136 +-#include <npupp.h>
137 ++#include <npfunctions.h>
138 +
139 + #include "virt-viewer-plugin.h"
140 +
141 +--- plugin/npunix.c
142 ++++ plugin/npunix.c
143 +@@ -56,8 +56,9 @@
144 + #define XP_UNIX 1
145 +
146 + #include <stdio.h>
147 ++#include <nspr.h>
148 + #include <npapi.h>
149 +-#include <npupp.h>
150 ++#include <npfunctions.h>
151 +
152 + #include <glib.h> /* just for G_GNUC_UNUSED */
153 +
154 +--- plugin/virt-viewer-plugin.h
155 ++++ plugin/virt-viewer-plugin.h
156 +@@ -36,7 +36,9 @@
157 + #ifndef VIRT_VIEWER_PLUGIN_H
158 + #define VIRT_VIEWER_PLUGIN_H
159 +
160 ++#include <nspr.h>
161 + #include <npapi.h>
162 ++#include <npfunctions.h>
163 + #include <gtk/gtk.h>
164 + #include <X11/Xlib.h>
165 + #include "virt-viewer-app.h"
166
167 diff --git a/app-emulation/virt-viewer/metadata.xml b/app-emulation/virt-viewer/metadata.xml
168 new file mode 100644
169 index 0000000..7df3f10
170 --- /dev/null
171 +++ b/app-emulation/virt-viewer/metadata.xml
172 @@ -0,0 +1,14 @@
173 +<?xml version="1.0" encoding="UTF-8"?>
174 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
175 +<pkgmetadata>
176 + <herd>virtualization</herd>
177 + <use>
178 + <flag name="gtk3">Link against <pkg>x11-libs/gtk+:3</pkg> instead of
179 + <pkg>x11-libs/gtk+:2</pkg></flag>
180 + <flag name="spice">Support connecting to SPICE-enabled virtual
181 + machines.</flag>
182 + <flag name="vnc">Support connecting to VNC-enabled virtual
183 + machines.</flag>
184 + </use>
185 +</pkgmetadata>
186 +
187
188 diff --git a/app-emulation/virt-viewer/virt-viewer-0.5.3.ebuild b/app-emulation/virt-viewer/virt-viewer-0.5.3.ebuild
189 new file mode 100644
190 index 0000000..2c68b4c
191 --- /dev/null
192 +++ b/app-emulation/virt-viewer/virt-viewer-0.5.3.ebuild
193 @@ -0,0 +1,57 @@
194 +# Copyright 1999-2012 Gentoo Foundation
195 +# Distributed under the terms of the GNU General Public License v2
196 +# $Header: /var/cvsroot/gentoo-x86/app-emulation/virt-viewer/virt-viewer-0.5.2.ebuild,v 1.3 2012/05/03 18:49:07 jdhore Exp $
197 +
198 +EAPI=4
199 +inherit eutils gnome2 toolchain-funcs
200 +
201 +DESCRIPTION="Graphical console client for connecting to virtual machines"
202 +HOMEPAGE="http://virt-manager.org/"
203 +SRC_URI="http://virt-manager.org/download/sources/${PN}/${P}.tar.gz"
204 +
205 +LICENSE="GPL-2"
206 +SLOT="0"
207 +KEYWORDS="~amd64 ~x86"
208 +IUSE="gtk3 nsplugin sasl +spice +vnc"
209 +
210 +RDEPEND=">=app-emulation/libvirt-0.9.7
211 + >=dev-libs/libxml2-2.6
212 + gtk3? ( x11-libs/gtk+:3 )
213 + !gtk3? (
214 + >=x11-libs/gtk+-2.18:2
215 + >=gnome-base/libglade-2.6
216 + )
217 + nsplugin? (
218 + >=dev-libs/nspr-4
219 + >=x11-libs/gtk+-2.18:2
220 + >=gnome-base/libglade-2.6
221 + )
222 + spice? ( >=net-misc/spice-gtk-0.12[sasl?,gtk3=] )
223 + vnc? ( >=net-libs/gtk-vnc-0.4.3 )"
224 +DEPEND="${RDEPEND}
225 + virtual/pkgconfig
226 + nsplugin? ( >=net-misc/npapi-sdk-0.27 )"
227 +
228 +REQUIRED_USE="|| ( spice vnc )
229 + nsplugin? ( !gtk3 )
230 + gtk3? ( !nsplugin )"
231 +
232 +pkg_setup() {
233 + G2CONF="$(use_enable nsplugin plugin) $(use_with spice spice-gtk)"
234 + G2CONF="${G2CONF} $(use_with vnc gtk-vnc)"
235 + use gtk3 && G2CONF="${G2CONF} --with-gtk=3.0"
236 + use gtk3 || G2CONF="${G2CONF} --with-gtk=2.0"
237 +}
238 +
239 +src_prepare() {
240 + epatch "${FILESDIR}"/${PN}-0.5.x-npapi-sdk.patch
241 +}
242 +
243 +src_configure() {
244 + if use nsplugin; then
245 + export MOZILLA_PLUGIN_CFLAGS="$($(tc-getPKG_CONFIG) --cflags npapi-sdk nspr)"
246 + export MOZILLA_PLUGIN_LIBS="$($(tc-getPKG_CONFIG) --libs npapi-sdk nspr)"
247 + fi
248 +
249 + gnome2_src_configure
250 +}