1 |
commit: a5ef6dbef4fdd5a8443fafd70e201cbc810938da |
2 |
Author: Alice Ferrazzi <alicef <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Apr 27 16:59:20 2017 +0000 |
4 |
Commit: Alice Ferrazzi <alicef <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Apr 27 16:59:20 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5ef6dbe |
7 |
|
8 |
net-misc/tigervnc: add nls support |
9 |
|
10 |
Package-Manager: Portage-2.3.3, Repoman-2.3.1 |
11 |
|
12 |
net-misc/tigervnc/metadata.xml | 1 + |
13 |
net-misc/tigervnc/tigervnc-1.7.1-r3.ebuild | 192 +++++++++++++++++++++++++++++ |
14 |
2 files changed, 193 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/tigervnc/metadata.xml b/net-misc/tigervnc/metadata.xml |
17 |
index 90053049ad1..ca02735318f 100644 |
18 |
--- a/net-misc/tigervnc/metadata.xml |
19 |
+++ b/net-misc/tigervnc/metadata.xml |
20 |
@@ -11,6 +11,7 @@ |
21 |
</maintainer> |
22 |
<use> |
23 |
<flag name="drm">build with DRM support</flag> |
24 |
+ <flag name="nls">Add Native Language Support</flag> |
25 |
<flag name="server">Build TigerVNC server</flag> |
26 |
<flag name="xorgmodule">Build the Xorg module</flag> |
27 |
</use> |
28 |
|
29 |
diff --git a/net-misc/tigervnc/tigervnc-1.7.1-r3.ebuild b/net-misc/tigervnc/tigervnc-1.7.1-r3.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..620c8578065 |
32 |
--- /dev/null |
33 |
+++ b/net-misc/tigervnc/tigervnc-1.7.1-r3.ebuild |
34 |
@@ -0,0 +1,192 @@ |
35 |
+# Copyright 1999-2017 Gentoo Foundation |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI="6" |
39 |
+ |
40 |
+CMAKE_IN_SOURCE_BUILD=1 |
41 |
+ |
42 |
+inherit autotools cmake-utils eutils flag-o-matic java-pkg-opt-2 systemd |
43 |
+ |
44 |
+XSERVER_VERSION="1.19.1" |
45 |
+ |
46 |
+DESCRIPTION="Remote desktop viewer display system" |
47 |
+HOMEPAGE="http://www.tigervnc.org" |
48 |
+SRC_URI="https://github.com/TigerVNC/tigervnc/archive/v${PV}.tar.gz -> ${P}.tar.gz |
49 |
+ https://dev.gentoo.org/~armin76/dist/tigervnc-1.4.2-patches-0.1.tar.bz2 |
50 |
+ mirror://gentoo/${PN}.png |
51 |
+ server? ( ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${XSERVER_VERSION}.tar.bz2 )" |
52 |
+ |
53 |
+LICENSE="GPL-2" |
54 |
+SLOT="0" |
55 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" |
56 |
+IUSE="+drm gnutls nls java +opengl pam server +xorgmodule" |
57 |
+ |
58 |
+CDEPEND="virtual/jpeg:0 |
59 |
+ sys-libs/zlib |
60 |
+ >=x11-libs/libXtst-1.0.99.2 |
61 |
+ >=x11-libs/fltk-1.3.1 |
62 |
+ gnutls? ( net-libs/gnutls:= ) |
63 |
+ pam? ( virtual/pam ) |
64 |
+ server? ( |
65 |
+ dev-lang/perl |
66 |
+ >=x11-libs/libXi-1.2.99.1 |
67 |
+ >=x11-libs/libXfont-1.4.2 |
68 |
+ >=x11-libs/libxkbfile-1.0.4 |
69 |
+ x11-libs/libXrender |
70 |
+ >=x11-libs/pixman-0.27.2 |
71 |
+ >=x11-apps/xauth-1.0.3 |
72 |
+ x11-apps/xsetroot |
73 |
+ >=x11-misc/xkeyboard-config-2.4.1-r3 |
74 |
+ opengl? ( >=app-eselect/eselect-opengl-1.3.1-r1 ) |
75 |
+ xorgmodule? ( =x11-base/xorg-server-${XSERVER_VERSION%.*}* ) |
76 |
+ drm? ( x11-libs/libdrm ) |
77 |
+ )" |
78 |
+ |
79 |
+RDEPEND="${CDEPEND} |
80 |
+ java? ( >=virtual/jre-1.5:* ) |
81 |
+ !net-misc/vnc |
82 |
+ !net-misc/tightvnc |
83 |
+ !net-misc/xf4vnc" |
84 |
+ |
85 |
+DEPEND="${CDEPEND} |
86 |
+ amd64? ( dev-lang/nasm ) |
87 |
+ x86? ( dev-lang/nasm ) |
88 |
+ >=x11-proto/inputproto-2.2.99.1 |
89 |
+ >=x11-proto/xextproto-7.2.99.901 |
90 |
+ >=x11-proto/xproto-7.0.31 |
91 |
+ x11-libs/libXfont2 |
92 |
+ virtual/libiconv |
93 |
+ sys-devel/gettext |
94 |
+ java? ( >=virtual/jdk-1.5 ) |
95 |
+ server? ( |
96 |
+ virtual/pkgconfig |
97 |
+ media-fonts/font-util |
98 |
+ x11-misc/util-macros |
99 |
+ >=x11-proto/bigreqsproto-1.1.0 |
100 |
+ >=x11-proto/compositeproto-0.4 |
101 |
+ >=x11-proto/damageproto-1.1 |
102 |
+ >=x11-proto/fixesproto-5.0 |
103 |
+ >=x11-proto/fontsproto-2.1.3 |
104 |
+ >=x11-proto/glproto-1.4.17 |
105 |
+ >=x11-proto/randrproto-1.4.0 |
106 |
+ >=x11-proto/renderproto-0.11 |
107 |
+ >=x11-proto/resourceproto-1.2.0 |
108 |
+ >=x11-proto/scrnsaverproto-1.1 |
109 |
+ >=x11-proto/videoproto-2.2.2 |
110 |
+ >=x11-proto/xcmiscproto-1.2.0 |
111 |
+ >=x11-proto/xineramaproto-1.1.3 |
112 |
+ >=x11-libs/xtrans-1.3.3 |
113 |
+ >=x11-proto/dri2proto-2.8 |
114 |
+ opengl? ( >=media-libs/mesa-10.3.4-r1 ) |
115 |
+ )" |
116 |
+ |
117 |
+PATCHES=( |
118 |
+ "${WORKDIR}"/patches/010_libvnc-os.patch |
119 |
+ "${WORKDIR}"/patches/030_manpages.patch |
120 |
+ "${WORKDIR}"/patches/055_xstartup.patch |
121 |
+) |
122 |
+ |
123 |
+src_prepare() { |
124 |
+ if use server ; then |
125 |
+ cp -r "${WORKDIR}"/xorg-server-${XSERVER_VERSION}/. unix/xserver || die |
126 |
+ fi |
127 |
+ |
128 |
+ default |
129 |
+ |
130 |
+ if use server; then |
131 |
+ eapply "${FILESDIR}/${PN}-1.7.1-xserver119-compat.patch" |
132 |
+ cd unix/xserver || die |
133 |
+ eapply "${FILESDIR}/xserver119.patch" |
134 |
+ eautoreconf |
135 |
+ fi |
136 |
+} |
137 |
+ |
138 |
+src_configure() { |
139 |
+ use arm || use hppa && append-flags "-fPIC" |
140 |
+ |
141 |
+ local mycmakeargs=( |
142 |
+ -DENABLE_GNUTLS=$(usex gnutls) |
143 |
+ -DENABLE_NLS=$(usex nls) |
144 |
+ -DENABLE_PAM=$(usex pam) |
145 |
+ -DBUILD_JAVA=$(usex java) |
146 |
+ ) |
147 |
+ |
148 |
+ cmake-utils_src_configure |
149 |
+ |
150 |
+ if use server; then |
151 |
+ cd unix/xserver || die |
152 |
+ econf \ |
153 |
+ $(use_enable opengl glx) \ |
154 |
+ $(use_enable drm libdrm) \ |
155 |
+ --disable-config-hal \ |
156 |
+ --disable-config-udev \ |
157 |
+ --disable-devel-docs \ |
158 |
+ --disable-dmx \ |
159 |
+ --disable-dri \ |
160 |
+ --disable-dri3 \ |
161 |
+ --disable-glamor \ |
162 |
+ --disable-kdrive \ |
163 |
+ --disable-libunwind \ |
164 |
+ --disable-linux-acpi \ |
165 |
+ --disable-record \ |
166 |
+ --disable-selective-werror \ |
167 |
+ --disable-silent-rules \ |
168 |
+ --disable-static \ |
169 |
+ --disable-tslib \ |
170 |
+ --disable-unit-tests \ |
171 |
+ --disable-xephyr \ |
172 |
+ --disable-xinerama \ |
173 |
+ --disable-xnest \ |
174 |
+ --disable-xorg \ |
175 |
+ --disable-xvfb \ |
176 |
+ --disable-xwin \ |
177 |
+ --disable-xwayland \ |
178 |
+ --enable-dri2 \ |
179 |
+ --with-pic \ |
180 |
+ --without-dtrace \ |
181 |
+ --disable-present \ |
182 |
+ --disable-unit-tests |
183 |
+ fi |
184 |
+} |
185 |
+ |
186 |
+src_compile() { |
187 |
+ cmake-utils_src_compile |
188 |
+ |
189 |
+ if use server; then |
190 |
+ # deps of the vnc module and the module itself |
191 |
+ local d subdirs=( |
192 |
+ fb xfixes Xext dbe $(usex opengl glx "") randr render damageext miext Xi xkb |
193 |
+ composite dix mi os hw/vnc |
194 |
+ ) |
195 |
+ for d in "${subdirs[@]}"; do |
196 |
+ emake -C unix/xserver/"${d}" |
197 |
+ done |
198 |
+ fi |
199 |
+} |
200 |
+ |
201 |
+src_install() { |
202 |
+ cmake-utils_src_install |
203 |
+ |
204 |
+ newicon "${DISTDIR}"/tigervnc.png vncviewer.png |
205 |
+ make_desktop_entry vncviewer vncviewer vncviewer Network |
206 |
+ |
207 |
+ if use server ; then |
208 |
+ emake -C unix/xserver/hw/vnc DESTDIR="${D}" install |
209 |
+ if ! use xorgmodule; then |
210 |
+ rm -r "${ED%/}"/usr/$(get_libdir)/xorg || die |
211 |
+ else |
212 |
+ rm "${ED%/}"/usr/$(get_libdir)/xorg/modules/extensions/libvnc.la || die |
213 |
+ fi |
214 |
+ |
215 |
+ newconfd "${FILESDIR}"/${PN}.confd ${PN} |
216 |
+ newinitd "${FILESDIR}"/${PN}.initd ${PN} |
217 |
+ systemd_douserunit contrib/systemd/user/vncserver@.service |
218 |
+ else |
219 |
+ local f |
220 |
+ cd "${ED}" || die |
221 |
+ for f in vncserver vncpasswd x0vncserver vncconfig; do |
222 |
+ rm usr/bin/$f || die |
223 |
+ rm usr/share/man/man1/$f.1 || die |
224 |
+ done |
225 |
+ fi |
226 |
+} |