1 |
commit: a838741ecb9ec8231025b4f657d43c3e0bd3ce64 |
2 |
Author: Tact Yoshida <otakuto.gentoo <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jul 31 18:56:18 2018 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Aug 5 21:47:29 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a838741e |
7 |
|
8 |
net-misc/tigervnc: fix missing dependency. |
9 |
|
10 |
Add dependency on libcrypto as SHA1 implementation. |
11 |
Remove duplicate x11-base/xorg-proto. |
12 |
Drop dependency on dev-lang/nasm. |
13 |
Cosme dri3 description. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/562184 |
16 |
Package-Manager: Portage-2.3.40, Repoman-2.3.9 |
17 |
Closes: https://github.com/gentoo/gentoo/pull/9401 |
18 |
|
19 |
net-misc/tigervnc/metadata.xml | 2 +- |
20 |
net-misc/tigervnc/tigervnc-1.9.0-r1.ebuild | 195 +++++++++++++++++++++++++++++ |
21 |
2 files changed, 196 insertions(+), 1 deletion(-) |
22 |
|
23 |
diff --git a/net-misc/tigervnc/metadata.xml b/net-misc/tigervnc/metadata.xml |
24 |
index ca145c01b56..8568ca4fefb 100644 |
25 |
--- a/net-misc/tigervnc/metadata.xml |
26 |
+++ b/net-misc/tigervnc/metadata.xml |
27 |
@@ -13,7 +13,7 @@ |
28 |
<flag name="drm">Build with DRM support</flag> |
29 |
<flag name="server">Build TigerVNC server</flag> |
30 |
<flag name="xorgmodule">Build the Xorg module</flag> |
31 |
- <flag name="dri3">Build with DRI3 support </flag> |
32 |
+ <flag name="dri3">Build with DRI3 support</flag> |
33 |
</use> |
34 |
<upstream> |
35 |
<remote-id type="github">TigerVNC/tigervnc</remote-id> |
36 |
|
37 |
diff --git a/net-misc/tigervnc/tigervnc-1.9.0-r1.ebuild b/net-misc/tigervnc/tigervnc-1.9.0-r1.ebuild |
38 |
new file mode 100644 |
39 |
index 00000000000..5719977b3a3 |
40 |
--- /dev/null |
41 |
+++ b/net-misc/tigervnc/tigervnc-1.9.0-r1.ebuild |
42 |
@@ -0,0 +1,195 @@ |
43 |
+# Copyright 1999-2018 Gentoo Foundation |
44 |
+# Distributed under the terms of the GNU General Public License v2 |
45 |
+ |
46 |
+EAPI=6 |
47 |
+ |
48 |
+CMAKE_IN_SOURCE_BUILD=1 |
49 |
+ |
50 |
+inherit autotools cmake-utils eutils flag-o-matic java-pkg-opt-2 systemd xdg-utils gnome2-utils |
51 |
+ |
52 |
+XSERVER_VERSION="1.20.0" |
53 |
+ |
54 |
+DESCRIPTION="Remote desktop viewer display system" |
55 |
+HOMEPAGE="http://www.tigervnc.org" |
56 |
+SRC_URI="https://github.com/TigerVNC/tigervnc/archive/v${PV}.tar.gz -> ${P}.tar.gz |
57 |
+ server? ( ftp://ftp.freedesktop.org/pub/xorg/individual/xserver/xorg-server-${XSERVER_VERSION}.tar.bz2 )" |
58 |
+ |
59 |
+LICENSE="GPL-2" |
60 |
+SLOT="0" |
61 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86" |
62 |
+IUSE="dri3 +drm gnutls java libressl nls +opengl pam server xinerama +xorgmodule" |
63 |
+ |
64 |
+CDEPEND=" |
65 |
+ virtual/jpeg:0 |
66 |
+ sys-libs/zlib:= |
67 |
+ >=x11-libs/fltk-1.3.1 |
68 |
+ gnutls? ( net-libs/gnutls:= ) |
69 |
+ nls? ( virtual/libiconv ) |
70 |
+ pam? ( virtual/pam ) |
71 |
+ x11-libs/libX11 |
72 |
+ x11-libs/libXext |
73 |
+ x11-libs/libXrender |
74 |
+ server? ( |
75 |
+ x11-libs/libXau |
76 |
+ x11-libs/libXdamage |
77 |
+ x11-libs/libXdmcp |
78 |
+ x11-libs/libXfont2 |
79 |
+ x11-libs/libXtst |
80 |
+ >=x11-libs/pixman-0.27.2 |
81 |
+ >=x11-apps/xauth-1.0.3 |
82 |
+ x11-apps/xsetroot |
83 |
+ >=x11-misc/xkeyboard-config-2.4.1-r3 |
84 |
+ xorgmodule? ( =x11-base/xorg-server-${XSERVER_VERSION%.*}* ) |
85 |
+ drm? ( x11-libs/libdrm ) |
86 |
+ !libressl? ( dev-libs/openssl:0= ) |
87 |
+ libressl? ( dev-libs/libressl:0= ) |
88 |
+ ) |
89 |
+ xinerama? ( x11-libs/libXinerama ) |
90 |
+ " |
91 |
+ |
92 |
+RDEPEND="${CDEPEND} |
93 |
+ !net-misc/tightvnc |
94 |
+ !net-misc/vnc |
95 |
+ !net-misc/xf4vnc |
96 |
+ java? ( >=virtual/jre-1.5:* )" |
97 |
+ |
98 |
+DEPEND="${CDEPEND} |
99 |
+ nls? ( sys-devel/gettext ) |
100 |
+ java? ( >=virtual/jdk-1.5 ) |
101 |
+ x11-base/xorg-proto |
102 |
+ media-libs/fontconfig |
103 |
+ x11-libs/libICE |
104 |
+ x11-libs/libSM |
105 |
+ x11-libs/libXcursor |
106 |
+ x11-libs/libXfixes |
107 |
+ x11-libs/libXft |
108 |
+ x11-libs/libXi |
109 |
+ server? ( |
110 |
+ dev-libs/libbsd |
111 |
+ x11-libs/libxkbfile |
112 |
+ x11-libs/libxshmfence |
113 |
+ virtual/pkgconfig |
114 |
+ media-fonts/font-util |
115 |
+ x11-misc/util-macros |
116 |
+ >=x11-libs/xtrans-1.3.3 |
117 |
+ opengl? ( >=media-libs/mesa-10.3.4-r1 ) |
118 |
+ )" |
119 |
+ |
120 |
+PATCHES=( |
121 |
+ "${FILESDIR}"/${P}-030_manpages.patch |
122 |
+ "${FILESDIR}"/${P}-055_xstartup.patch |
123 |
+) |
124 |
+ |
125 |
+src_prepare() { |
126 |
+ if use server ; then |
127 |
+ cp -r "${WORKDIR}"/xorg-server-${XSERVER_VERSION}/. unix/xserver || die |
128 |
+ fi |
129 |
+ |
130 |
+ cmake-utils_src_prepare |
131 |
+ |
132 |
+ if use server ; then |
133 |
+ cd unix/xserver || die |
134 |
+ eapply "${FILESDIR}"/xserver120.patch |
135 |
+ eapply "${FILESDIR}"/xserver120-drmfourcc-header.patch |
136 |
+ eautoreconf |
137 |
+ fi |
138 |
+} |
139 |
+ |
140 |
+src_configure() { |
141 |
+ if use arm || use hppa ; then |
142 |
+ append-flags "-fPIC" |
143 |
+ fi |
144 |
+ |
145 |
+ local mycmakeargs=( |
146 |
+ -DENABLE_GNUTLS=$(usex gnutls) |
147 |
+ -DENABLE_NLS=$(usex nls) |
148 |
+ -DENABLE_PAM=$(usex pam) |
149 |
+ -DBUILD_JAVA=$(usex java) |
150 |
+ ) |
151 |
+ |
152 |
+ cmake-utils_src_configure |
153 |
+ |
154 |
+ if use server ; then |
155 |
+ cd unix/xserver || die |
156 |
+ econf \ |
157 |
+ $(use_enable opengl glx) \ |
158 |
+ $(use_enable drm libdrm) \ |
159 |
+ --disable-config-hal \ |
160 |
+ --disable-config-udev \ |
161 |
+ --disable-devel-docs \ |
162 |
+ --disable-dmx \ |
163 |
+ --disable-dri \ |
164 |
+ $(use_enable dri3) \ |
165 |
+ --disable-glamor \ |
166 |
+ --disable-kdrive \ |
167 |
+ --disable-libunwind \ |
168 |
+ --disable-linux-acpi \ |
169 |
+ --disable-record \ |
170 |
+ --disable-selective-werror \ |
171 |
+ --disable-silent-rules \ |
172 |
+ --disable-static \ |
173 |
+ --disable-unit-tests \ |
174 |
+ --disable-xephyr \ |
175 |
+ $(use_enable xinerama) \ |
176 |
+ --disable-xnest \ |
177 |
+ --disable-xorg \ |
178 |
+ --disable-xvfb \ |
179 |
+ --disable-xwin \ |
180 |
+ --disable-xwayland \ |
181 |
+ --enable-dri2 \ |
182 |
+ --with-pic \ |
183 |
+ --without-dtrace \ |
184 |
+ --disable-present \ |
185 |
+ --with-sha1=libcrypto |
186 |
+ fi |
187 |
+} |
188 |
+ |
189 |
+src_compile() { |
190 |
+ cmake-utils_src_compile |
191 |
+ |
192 |
+ if use server ; then |
193 |
+ # deps of the vnc module and the module itself |
194 |
+ local d subdirs=( |
195 |
+ fb xfixes Xext dbe $(usex opengl glx "") $(usev dri3) randr render damageext miext Xi xkb |
196 |
+ composite dix mi os hw/vnc |
197 |
+ ) |
198 |
+ for d in "${subdirs[@]}"; do |
199 |
+ emake -C unix/xserver/"${d}" |
200 |
+ done |
201 |
+ fi |
202 |
+} |
203 |
+ |
204 |
+src_install() { |
205 |
+ cmake-utils_src_install |
206 |
+ |
207 |
+ if use server ; then |
208 |
+ emake -C unix/xserver/hw/vnc DESTDIR="${D}" install |
209 |
+ if ! use xorgmodule; then |
210 |
+ rm -rv "${ED%/}"/usr/$(get_libdir)/xorg || die |
211 |
+ else |
212 |
+ rm -v "${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 |
+ |
218 |
+ systemd_douserunit contrib/systemd/user/vncserver@.service |
219 |
+ else |
220 |
+ local f |
221 |
+ cd "${ED}" || die |
222 |
+ for f in vncserver x0vncserver vncconfig; do |
223 |
+ rm usr/bin/$f || die |
224 |
+ rm usr/share/man/man1/$f.1 || die |
225 |
+ done |
226 |
+ fi |
227 |
+} |
228 |
+ |
229 |
+pkg_postinst() { |
230 |
+ xdg_desktop_database_update |
231 |
+ gnome2_icon_cache_update |
232 |
+} |
233 |
+ |
234 |
+pkg_postrm() { |
235 |
+ xdg_desktop_database_update |
236 |
+ gnome2_icon_cache_update |
237 |
+} |