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