Ravenports generated: 22 Jan 2020 18:47
[ravenports.git] / bucket_DD / vte
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               vte
4 VERSION=                0.58.3
5 REVISION=               1
6 KEYWORDS=               x11_toolkits
7 VARIANTS=               standard
8 SDESC[standard]=        Virtual Terminal Emulator widget
9 HOMEPAGE=               https://wiki.gnome.org/Apps/Terminal/VTE
10 CONTACT=                nobody
11
12 DOWNLOAD_GROUPS=        main
13 SITES[main]=            GNOME/vte/0.58
14 DISTFILE[1]=            vte-0.58.3.tar.xz:main
15 DIST_SUBDIR=            gnome3
16 DF_INDEX=               1
17 SPKGS[standard]=        complete
18                         primary
19                         docs
20
21 OPTIONS_AVAILABLE=      none
22 OPTIONS_STANDARD=       none
23
24 BUILD_DEPENDS=          bash:primary:standard
25                         cmake:single:standard
26                         vala:single:standard
27 BUILDRUN_DEPENDS=       gnutls:single:standard
28                         pcre2:primary:standard
29
30 USES=                   gettext-runtime gettext-tools:build meson pkgconfig
31 GNOME_COMPONENTS=       cairo gdkpixbuf gtk3 intltool introspection
32
33 LICENSE=                LGPL21+:primary
34 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
35 LICENSE_FILE=           LGPL21+:{{WRKSRC}}/COPYING
36 LICENSE_AWK=            TERMS:"^$$"
37 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/src/vte.cc
38 LICENSE_SCHEME=         solo
39
40 FPC_EQUIVALENT=         x11-toolkits/vte3
41
42 INSTALL_TARGET=         install-strip
43 INSTALL_REQ_TOOLCHAIN=  yes
44 SOVERSION=              0.5800.3
45 PLIST_SUB=              VERSION=2.91
46
47 post-patch:
48         ${REINPLACE_CMD} -e '/fstack-prot/d' ${WRKSRC}/meson.build
49         ${REINPLACE_CMD} -e 's|linux|skipx|' ${WRKSRC}/src/pty.cc
50
51 post-patch-sunos:
52         ${REINPLACE_CMD} \
53                 -e 's|sys/ioctl\.h|sys/termios.h|' \
54                 -e '/Bsymbolic-functions/d' \
55                 ${WRKSRC}/meson.build
56
57 [FILE:108:descriptions/desc.primary]
58 Terminal widget with improved font, internationalisation and accessibility
59 support for the GNOME 3 desktop.
60
61
62 [FILE:103:distinfo]
63 22dcb54ac2ad1a56ab0a745e16ccfeb383f0b5860b5bfa1784561216f98d4975       514844 gnome3/vte-0.58.3.tar.xz
64
65
66 [FILE:5050:manifests/plist.primary]
67 bin/vte-%%VERSION%%
68 etc/profile.d/vte.sh
69 include/vte-%%VERSION%%/vte/
70  vte.h
71  vtedeprecated.h
72  vteenums.h
73  vteglobals.h
74  vtemacros.h
75  vtepty.h
76  vteregex.h
77  vteterminal.h
78  vtetypebuiltins.h
79  vteversion.h
80 lib/
81  libvte-%%VERSION%%.so
82  libvte-%%VERSION%%.so.%%SOMAJOR%%
83  libvte-%%VERSION%%.so.%%SOVERSION%%
84 lib/girepository-1.0/Vte-%%VERSION%%.typelib
85 lib/pkgconfig/vte-%%VERSION%%.pc
86 share/gir-1.0/Vte-%%VERSION%%.gir
87 share/locale/am/LC_MESSAGES/vte-%%VERSION%%.mo
88 share/locale/an/LC_MESSAGES/vte-%%VERSION%%.mo
89 share/locale/ang/LC_MESSAGES/vte-%%VERSION%%.mo
90 share/locale/ar/LC_MESSAGES/vte-%%VERSION%%.mo
91 share/locale/as/LC_MESSAGES/vte-%%VERSION%%.mo
92 share/locale/ast/LC_MESSAGES/vte-%%VERSION%%.mo
93 share/locale/az/LC_MESSAGES/vte-%%VERSION%%.mo
94 share/locale/be/LC_MESSAGES/vte-%%VERSION%%.mo
95 share/locale/be@latin/LC_MESSAGES/vte-%%VERSION%%.mo
96 share/locale/bg/LC_MESSAGES/vte-%%VERSION%%.mo
97 share/locale/bn/LC_MESSAGES/vte-%%VERSION%%.mo
98 share/locale/bn_IN/LC_MESSAGES/vte-%%VERSION%%.mo
99 share/locale/bs/LC_MESSAGES/vte-%%VERSION%%.mo
100 share/locale/ca/LC_MESSAGES/vte-%%VERSION%%.mo
101 share/locale/ca@valencia/LC_MESSAGES/vte-%%VERSION%%.mo
102 share/locale/cs/LC_MESSAGES/vte-%%VERSION%%.mo
103 share/locale/cy/LC_MESSAGES/vte-%%VERSION%%.mo
104 share/locale/da/LC_MESSAGES/vte-%%VERSION%%.mo
105 share/locale/de/LC_MESSAGES/vte-%%VERSION%%.mo
106 share/locale/dz/LC_MESSAGES/vte-%%VERSION%%.mo
107 share/locale/el/LC_MESSAGES/vte-%%VERSION%%.mo
108 share/locale/en@shaw/LC_MESSAGES/vte-%%VERSION%%.mo
109 share/locale/en_CA/LC_MESSAGES/vte-%%VERSION%%.mo
110 share/locale/en_GB/LC_MESSAGES/vte-%%VERSION%%.mo
111 share/locale/eo/LC_MESSAGES/vte-%%VERSION%%.mo
112 share/locale/es/LC_MESSAGES/vte-%%VERSION%%.mo
113 share/locale/et/LC_MESSAGES/vte-%%VERSION%%.mo
114 share/locale/eu/LC_MESSAGES/vte-%%VERSION%%.mo
115 share/locale/fa/LC_MESSAGES/vte-%%VERSION%%.mo
116 share/locale/fi/LC_MESSAGES/vte-%%VERSION%%.mo
117 share/locale/fr/LC_MESSAGES/vte-%%VERSION%%.mo
118 share/locale/fur/LC_MESSAGES/vte-%%VERSION%%.mo
119 share/locale/ga/LC_MESSAGES/vte-%%VERSION%%.mo
120 share/locale/gd/LC_MESSAGES/vte-%%VERSION%%.mo
121 share/locale/gl/LC_MESSAGES/vte-%%VERSION%%.mo
122 share/locale/gu/LC_MESSAGES/vte-%%VERSION%%.mo
123 share/locale/he/LC_MESSAGES/vte-%%VERSION%%.mo
124 share/locale/hi/LC_MESSAGES/vte-%%VERSION%%.mo
125 share/locale/hr/LC_MESSAGES/vte-%%VERSION%%.mo
126 share/locale/hu/LC_MESSAGES/vte-%%VERSION%%.mo
127 share/locale/id/LC_MESSAGES/vte-%%VERSION%%.mo
128 share/locale/is/LC_MESSAGES/vte-%%VERSION%%.mo
129 share/locale/it/LC_MESSAGES/vte-%%VERSION%%.mo
130 share/locale/ja/LC_MESSAGES/vte-%%VERSION%%.mo
131 share/locale/ka/LC_MESSAGES/vte-%%VERSION%%.mo
132 share/locale/kk/LC_MESSAGES/vte-%%VERSION%%.mo
133 share/locale/kn/LC_MESSAGES/vte-%%VERSION%%.mo
134 share/locale/ko/LC_MESSAGES/vte-%%VERSION%%.mo
135 share/locale/ku/LC_MESSAGES/vte-%%VERSION%%.mo
136 share/locale/ky/LC_MESSAGES/vte-%%VERSION%%.mo
137 share/locale/li/LC_MESSAGES/vte-%%VERSION%%.mo
138 share/locale/lt/LC_MESSAGES/vte-%%VERSION%%.mo
139 share/locale/lv/LC_MESSAGES/vte-%%VERSION%%.mo
140 share/locale/mai/LC_MESSAGES/vte-%%VERSION%%.mo
141 share/locale/mi/LC_MESSAGES/vte-%%VERSION%%.mo
142 share/locale/mjw/LC_MESSAGES/vte-%%VERSION%%.mo
143 share/locale/mk/LC_MESSAGES/vte-%%VERSION%%.mo
144 share/locale/ml/LC_MESSAGES/vte-%%VERSION%%.mo
145 share/locale/mn/LC_MESSAGES/vte-%%VERSION%%.mo
146 share/locale/mr/LC_MESSAGES/vte-%%VERSION%%.mo
147 share/locale/ms/LC_MESSAGES/vte-%%VERSION%%.mo
148 share/locale/nb/LC_MESSAGES/vte-%%VERSION%%.mo
149 share/locale/nds/LC_MESSAGES/vte-%%VERSION%%.mo
150 share/locale/ne/LC_MESSAGES/vte-%%VERSION%%.mo
151 share/locale/nl/LC_MESSAGES/vte-%%VERSION%%.mo
152 share/locale/nn/LC_MESSAGES/vte-%%VERSION%%.mo
153 share/locale/oc/LC_MESSAGES/vte-%%VERSION%%.mo
154 share/locale/or/LC_MESSAGES/vte-%%VERSION%%.mo
155 share/locale/pa/LC_MESSAGES/vte-%%VERSION%%.mo
156 share/locale/pl/LC_MESSAGES/vte-%%VERSION%%.mo
157 share/locale/pt/LC_MESSAGES/vte-%%VERSION%%.mo
158 share/locale/pt_BR/LC_MESSAGES/vte-%%VERSION%%.mo
159 share/locale/ro/LC_MESSAGES/vte-%%VERSION%%.mo
160 share/locale/ru/LC_MESSAGES/vte-%%VERSION%%.mo
161 share/locale/rw/LC_MESSAGES/vte-%%VERSION%%.mo
162 share/locale/si/LC_MESSAGES/vte-%%VERSION%%.mo
163 share/locale/sk/LC_MESSAGES/vte-%%VERSION%%.mo
164 share/locale/sl/LC_MESSAGES/vte-%%VERSION%%.mo
165 share/locale/sq/LC_MESSAGES/vte-%%VERSION%%.mo
166 share/locale/sr/LC_MESSAGES/vte-%%VERSION%%.mo
167 share/locale/sr@latin/LC_MESSAGES/vte-%%VERSION%%.mo
168 share/locale/sv/LC_MESSAGES/vte-%%VERSION%%.mo
169 share/locale/ta/LC_MESSAGES/vte-%%VERSION%%.mo
170 share/locale/te/LC_MESSAGES/vte-%%VERSION%%.mo
171 share/locale/tg/LC_MESSAGES/vte-%%VERSION%%.mo
172 share/locale/th/LC_MESSAGES/vte-%%VERSION%%.mo
173 share/locale/tr/LC_MESSAGES/vte-%%VERSION%%.mo
174 share/locale/ug/LC_MESSAGES/vte-%%VERSION%%.mo
175 share/locale/uk/LC_MESSAGES/vte-%%VERSION%%.mo
176 share/locale/uz@cyrillic/LC_MESSAGES/vte-%%VERSION%%.mo
177 share/locale/vi/LC_MESSAGES/vte-%%VERSION%%.mo
178 share/locale/wa/LC_MESSAGES/vte-%%VERSION%%.mo
179 share/locale/xh/LC_MESSAGES/vte-%%VERSION%%.mo
180 share/locale/zh_CN/LC_MESSAGES/vte-%%VERSION%%.mo
181 share/locale/zh_HK/LC_MESSAGES/vte-%%VERSION%%.mo
182 share/locale/zh_TW/LC_MESSAGES/vte-%%VERSION%%.mo
183 share/vala/vapi/
184  vte-%%VERSION%%.deps
185  vte-%%VERSION%%.vapi
186
187
188 [FILE:1447:patches/patch-src_pty.cc]
189 Use correct includes on SunOS.
190 Don't use packet mode on SunOS.
191
192 --- src/pty.cc.orig     2019-11-22 21:36:35 UTC
193 +++ src/pty.cc
194 @@ -64,12 +64,20 @@
195  #if defined(__sun) && defined(HAVE_STROPTS_H)
196  #include <stropts.h>
197  #endif
198 +#if defined(__sun__)
199 +#include <sys/ioccom.h>
200 +#include <sys/ptyvar.h>
201 +#endif
202  #include <glib.h>
203  #include <gio/gio.h>
204  #include "debug.h"
205  
206  #include <glib/gi18n-lib.h>
207  
208 +#ifndef O_CLOEXEC
209 +#define O_CLOEXEC 0
210 +#endif
211 +
212  /* NSIG isn't in POSIX, so if it doesn't exist use this here. See bug #759196 */
213  #ifndef NSIG
214  #define NSIG (8 * sizeof(sigset_t))
215 @@ -622,6 +630,7 @@ fd_set_cpkt(int fd)
216  static int
217  fd_setup(int fd)
218  {
219 +#ifndef __sun__
220          if (fd_set_cloexec(fd) < 0) {
221                  vte::util::restore_errno errsv;
222                  _vte_debug_print(VTE_DEBUG_PTY,
223 @@ -642,6 +651,7 @@ fd_setup(int fd)
224                                   "%s failed: %s", "ioctl(TIOCPKT)", g_strerror(errsv));
225                  return -1;
226          }
227 +#endif
228  
229          return 0;
230  }
231 @@ -699,12 +709,14 @@ _vte_pty_open_posix(void)
232          }
233  #endif /* !linux */
234  
235 +#ifndef __sun__
236          if (fd_set_cpkt(fd) < 0) {
237                  vte::util::restore_errno errsv;
238                  _vte_debug_print(VTE_DEBUG_PTY,
239                                   "%s failed: %s", "ioctl(TIOCPKT)", g_strerror(errsv));
240                  return -1;
241          }
242 +#endif
243  
244         _vte_debug_print(VTE_DEBUG_PTY, "Allocated pty on fd %d.\n", (int)fd);
245  
246
247
248 [FILE:1822:patches/patch-src_vte.cc]
249 Use correct includes on SunOS.
250 Use correct includes for DragonFly (termios.h instead of sys/termios.h)
251 Don't use packet mode on SunOS.
252
253 --- src/vte.cc.orig     2019-11-22 21:36:35 UTC
254 +++ src/vte.cc
255 @@ -29,6 +29,13 @@
256  #ifdef HAVE_SYS_TERMIOS_H
257  #include <sys/termios.h>
258  #endif
259 +#ifdef HAVE_TERMIOS_H
260 +#include <termios.h>
261 +#endif
262 +#if defined(__sun__)
263 +#include <sys/ioccom.h>
264 +#include <sys/ptyvar.h>
265 +#endif
266  
267  #include <glib.h>
268  #include <glib/gi18n-lib.h>
269 @@ -4094,6 +4101,9 @@ Terminal::pty_io_read(GIOChannel *channe
270                         bp = chunk->data + chunk->len;
271                         len = 0;
272                         do {
273 +#ifdef __sun__
274 +                               int ret = read (fd, bp, rem);
275 +#else
276                                  /* We'd like to read (fd, bp, rem); but due to TIOCPKT mode
277                                   * there's an extra input byte returned at the beginning.
278                                   * We need to see what that byte is, but otherwise drop it
279 @@ -4104,6 +4114,7 @@ Terminal::pty_io_read(GIOChannel *channe
280                                  int ret = read (fd, bp - 1, rem + 1);
281                                  pkt_header = bp[-1];
282                                  bp[-1] = save;
283 +#endif
284                                 switch (ret){
285                                         case -1:
286                                                 err = errno;
287 @@ -4112,6 +4123,7 @@ Terminal::pty_io_read(GIOChannel *channe
288                                                 eof = TRUE;
289                                                 goto out;
290                                         default:
291 +#ifndef __sun__
292                                                  ret--;
293  
294                                                  if (pkt_header & TIOCPKT_IOCTL) {
295 @@ -4132,6 +4144,7 @@ Terminal::pty_io_read(GIOChannel *channe
296                                                  } else if (pkt_header & TIOCPKT_START) {
297                                                          pty_scroll_lock_changed(false);
298                                                  }
299 +#endif
300  
301                                                 bp += ret;
302                                                 rem -= ret;
303
304
305 [FILE:529:patches/patch-src_vtedraw.cc]
306 --- src/vtedraw.cc.orig 2019-11-22 21:36:35 UTC
307 +++ src/vtedraw.cc
308 @@ -1687,13 +1687,13 @@ _vte_draw_draw_line(struct _vte_draw *dr
309  static inline double
310  _vte_draw_get_undercurl_rad(gint width)
311  {
312 -        return width / 2. / sqrt(2);
313 +        return width / 2. / sqrt((double)2);
314  }
315  
316  static inline double
317  _vte_draw_get_undercurl_arc_height(gint width)
318  {
319 -        return _vte_draw_get_undercurl_rad(width) * (1. - sqrt(2) / 2.);
320 +        return _vte_draw_get_undercurl_rad(width) * (1. - sqrt((double)2) / 2.);
321  }
322  
323  double
324
325
326 [FILE:247:patches/patch-src_widget.cc]
327 --- src/widget.cc.orig  2019-11-22 21:36:35 UTC
328 +++ src/widget.cc
329 @@ -22,6 +22,10 @@
330  
331  #include <sys/wait.h> // for W_EXITCODE
332  
333 +#ifndef W_EXITCODE
334 +#define W_EXITCODE(ret, sig)   ((ret) << 8 | (sig))
335 +#endif
336 +
337  #include <new>
338  #include <string>
339  
340