Ravenports generated: 11 Sep 2023 23:59
[ravenports.git] / bucket_DD / vte
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               vte
4 VERSION=                0.72.2
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]=            https://gitlab.gnome.org/GNOME/vte/-/archive/0.72.2/
14 DISTFILE[1]=            vte-0.72.2.tar.bz2:main
15 DIST_SUBDIR=            gnome3
16 DF_INDEX=               1
17 SPKGS[standard]=        complete
18                         primary
19                         dev
20                         docs
21                         nls
22
23 OPTIONS_AVAILABLE=      INTROSPECTION
24 OPTIONS_STANDARD=       INTROSPECTION
25
26 BUILD_DEPENDS=          bash:primary:standard
27                         cmake:primary:standard
28                         gnutls:dev:standard
29                         harfbuzz:dev:standard
30                         icu:dev:standard
31                         nettle:dev:standard
32                         vala:single:standard
33 BUILDRUN_DEPENDS=       gnutls:primary:standard
34                         icu:primary:standard
35
36 USES=                   meson pkgconfig pcre2
37 GNOME_COMPONENTS=       cairo gdkpixbuf gtk3 intltool
38
39 LICENSE=                LGPL3+:primary
40 LICENSE_TERMS=          primary:{{WRKDIR}}/TERMS
41 LICENSE_FILE=           LGPL3+:{{WRKSRC}}/COPYING.LGPL3
42 LICENSE_AWK=            TERMS:"^$$"
43 LICENSE_SOURCE=         TERMS:{{WRKSRC}}/src/vte.cc
44 LICENSE_SCHEME=         solo
45
46 FPC_EQUIVALENT=         x11-toolkits/vte3
47 MESON_ARGS=             -D_systemd=false
48
49 INSTALL_TARGET=         install-strip
50 INSTALL_REQ_TOOLCHAIN=  yes
51 SOVERSION=              0.7200.2
52 PLIST_SUB=              VERSION=2.91
53
54 VAR_OPSYS[sunos]=       LDFLAGS=-lintl
55
56 [INTROSPECTION].DESCRIPTION=            Build vala bindings with introspection
57 [INTROSPECTION].CONFIGURE_ARGS_OFF=     -Dgir=false
58                                         -Dvapi=false
59 [INTROSPECTION].CONFIGURE_ARGS_ON=      -Dgir=true
60                                         -Dvapi=true
61 [INTROSPECTION].GNOME_COMPONENTS_ON=    introspection
62
63 pre-configure:
64         ${REINPLACE_CMD} -e '/fstack-prot/d' ${WRKSRC}/meson.build
65         ${REINPLACE_CMD} -e 's|linux|skipx|' ${WRKSRC}/src/pty.cc
66
67 pre-configure-sunos:
68         ${REINPLACE_CMD} \
69                 -e 's|sys/ioctl\.h|sys/termios.h|' \
70                 -e '/Bsymbolic-functions/d' \
71                 ${WRKSRC}/meson.build
72
73 [FILE:108:descriptions/desc.primary]
74 Terminal widget with improved font, internationalisation and accessibility
75 support for the GNOME 3 desktop.
76
77
78 [FILE:104:distinfo]
79 5c8f789aaf76154de9d58205fda3b90790092d93791a5229c8b67c50d3f01068       503986 gnome3/vte-0.72.2.tar.bz2
80
81
82 [FILE:528:manifests/plist.primary]
83 %%INTROSPECTION-ON%%lib/girepository-1.0/Vte-%%VERSION%%.typelib
84 %%INTROSPECTION-ON%%share/gir-1.0/Vte-%%VERSION%%.gir
85 %%INTROSPECTION-ON%%share/vala/vapi/
86  vte-%%VERSION%%.deps
87  vte-%%VERSION%%.vapi
88 bin/vte-%%VERSION%%
89 etc/profile.d/
90  vte.csh
91  vte.sh
92 lib/
93  libvte-%%VERSION%%.so.%%SOMAJOR%%
94  libvte-%%VERSION%%.so.%%SOVERSION%%
95 libexec/vte-urlencode-cwd
96 share/glade/catalogs/vte-%%VERSION%%.xml
97 share/glade/pixmaps/hicolor/16x16/actions/widget-vte-terminal.png
98 share/glade/pixmaps/hicolor/22x22/actions/widget-vte-terminal.png
99
100
101 [FILE:245:manifests/plist.dev]
102 include/vte-%%VERSION%%/vte/
103  vte.h
104  vtedeprecated.h
105  vteenums.h
106  vteglobals.h
107  vtemacros.h
108  vtepty.h
109  vteregex.h
110  vteterminal.h
111  vtetypebuiltins-gtk3.h
112  vtetypebuiltins.h
113  vteversion.h
114 lib/libvte-%%VERSION%%.so
115 lib/pkgconfig/vte-%%VERSION%%.pc
116
117
118 [FILE:4669:manifests/plist.nls]
119 share/locale/ab/LC_MESSAGES/vte-%%VERSION%%.mo
120 share/locale/am/LC_MESSAGES/vte-%%VERSION%%.mo
121 share/locale/an/LC_MESSAGES/vte-%%VERSION%%.mo
122 share/locale/ang/LC_MESSAGES/vte-%%VERSION%%.mo
123 share/locale/ar/LC_MESSAGES/vte-%%VERSION%%.mo
124 share/locale/as/LC_MESSAGES/vte-%%VERSION%%.mo
125 share/locale/ast/LC_MESSAGES/vte-%%VERSION%%.mo
126 share/locale/az/LC_MESSAGES/vte-%%VERSION%%.mo
127 share/locale/be/LC_MESSAGES/vte-%%VERSION%%.mo
128 share/locale/be@latin/LC_MESSAGES/vte-%%VERSION%%.mo
129 share/locale/bg/LC_MESSAGES/vte-%%VERSION%%.mo
130 share/locale/bn/LC_MESSAGES/vte-%%VERSION%%.mo
131 share/locale/bn_IN/LC_MESSAGES/vte-%%VERSION%%.mo
132 share/locale/bs/LC_MESSAGES/vte-%%VERSION%%.mo
133 share/locale/ca/LC_MESSAGES/vte-%%VERSION%%.mo
134 share/locale/ca@valencia/LC_MESSAGES/vte-%%VERSION%%.mo
135 share/locale/ckb/LC_MESSAGES/vte-%%VERSION%%.mo
136 share/locale/cs/LC_MESSAGES/vte-%%VERSION%%.mo
137 share/locale/cy/LC_MESSAGES/vte-%%VERSION%%.mo
138 share/locale/da/LC_MESSAGES/vte-%%VERSION%%.mo
139 share/locale/de/LC_MESSAGES/vte-%%VERSION%%.mo
140 share/locale/dz/LC_MESSAGES/vte-%%VERSION%%.mo
141 share/locale/el/LC_MESSAGES/vte-%%VERSION%%.mo
142 share/locale/en@shaw/LC_MESSAGES/vte-%%VERSION%%.mo
143 share/locale/en_CA/LC_MESSAGES/vte-%%VERSION%%.mo
144 share/locale/en_GB/LC_MESSAGES/vte-%%VERSION%%.mo
145 share/locale/eo/LC_MESSAGES/vte-%%VERSION%%.mo
146 share/locale/es/LC_MESSAGES/vte-%%VERSION%%.mo
147 share/locale/et/LC_MESSAGES/vte-%%VERSION%%.mo
148 share/locale/eu/LC_MESSAGES/vte-%%VERSION%%.mo
149 share/locale/fa/LC_MESSAGES/vte-%%VERSION%%.mo
150 share/locale/fi/LC_MESSAGES/vte-%%VERSION%%.mo
151 share/locale/fr/LC_MESSAGES/vte-%%VERSION%%.mo
152 share/locale/fur/LC_MESSAGES/vte-%%VERSION%%.mo
153 share/locale/ga/LC_MESSAGES/vte-%%VERSION%%.mo
154 share/locale/gd/LC_MESSAGES/vte-%%VERSION%%.mo
155 share/locale/gl/LC_MESSAGES/vte-%%VERSION%%.mo
156 share/locale/gu/LC_MESSAGES/vte-%%VERSION%%.mo
157 share/locale/he/LC_MESSAGES/vte-%%VERSION%%.mo
158 share/locale/hi/LC_MESSAGES/vte-%%VERSION%%.mo
159 share/locale/hr/LC_MESSAGES/vte-%%VERSION%%.mo
160 share/locale/hu/LC_MESSAGES/vte-%%VERSION%%.mo
161 share/locale/id/LC_MESSAGES/vte-%%VERSION%%.mo
162 share/locale/is/LC_MESSAGES/vte-%%VERSION%%.mo
163 share/locale/it/LC_MESSAGES/vte-%%VERSION%%.mo
164 share/locale/ja/LC_MESSAGES/vte-%%VERSION%%.mo
165 share/locale/ka/LC_MESSAGES/vte-%%VERSION%%.mo
166 share/locale/kk/LC_MESSAGES/vte-%%VERSION%%.mo
167 share/locale/kn/LC_MESSAGES/vte-%%VERSION%%.mo
168 share/locale/ko/LC_MESSAGES/vte-%%VERSION%%.mo
169 share/locale/ku/LC_MESSAGES/vte-%%VERSION%%.mo
170 share/locale/ky/LC_MESSAGES/vte-%%VERSION%%.mo
171 share/locale/li/LC_MESSAGES/vte-%%VERSION%%.mo
172 share/locale/lt/LC_MESSAGES/vte-%%VERSION%%.mo
173 share/locale/lv/LC_MESSAGES/vte-%%VERSION%%.mo
174 share/locale/mai/LC_MESSAGES/vte-%%VERSION%%.mo
175 share/locale/mi/LC_MESSAGES/vte-%%VERSION%%.mo
176 share/locale/mjw/LC_MESSAGES/vte-%%VERSION%%.mo
177 share/locale/mk/LC_MESSAGES/vte-%%VERSION%%.mo
178 share/locale/ml/LC_MESSAGES/vte-%%VERSION%%.mo
179 share/locale/mn/LC_MESSAGES/vte-%%VERSION%%.mo
180 share/locale/mr/LC_MESSAGES/vte-%%VERSION%%.mo
181 share/locale/ms/LC_MESSAGES/vte-%%VERSION%%.mo
182 share/locale/nb/LC_MESSAGES/vte-%%VERSION%%.mo
183 share/locale/nds/LC_MESSAGES/vte-%%VERSION%%.mo
184 share/locale/ne/LC_MESSAGES/vte-%%VERSION%%.mo
185 share/locale/nl/LC_MESSAGES/vte-%%VERSION%%.mo
186 share/locale/nn/LC_MESSAGES/vte-%%VERSION%%.mo
187 share/locale/oc/LC_MESSAGES/vte-%%VERSION%%.mo
188 share/locale/or/LC_MESSAGES/vte-%%VERSION%%.mo
189 share/locale/pa/LC_MESSAGES/vte-%%VERSION%%.mo
190 share/locale/pl/LC_MESSAGES/vte-%%VERSION%%.mo
191 share/locale/pt/LC_MESSAGES/vte-%%VERSION%%.mo
192 share/locale/pt_BR/LC_MESSAGES/vte-%%VERSION%%.mo
193 share/locale/ro/LC_MESSAGES/vte-%%VERSION%%.mo
194 share/locale/ru/LC_MESSAGES/vte-%%VERSION%%.mo
195 share/locale/rw/LC_MESSAGES/vte-%%VERSION%%.mo
196 share/locale/si/LC_MESSAGES/vte-%%VERSION%%.mo
197 share/locale/sk/LC_MESSAGES/vte-%%VERSION%%.mo
198 share/locale/sl/LC_MESSAGES/vte-%%VERSION%%.mo
199 share/locale/sq/LC_MESSAGES/vte-%%VERSION%%.mo
200 share/locale/sr/LC_MESSAGES/vte-%%VERSION%%.mo
201 share/locale/sr@latin/LC_MESSAGES/vte-%%VERSION%%.mo
202 share/locale/sv/LC_MESSAGES/vte-%%VERSION%%.mo
203 share/locale/ta/LC_MESSAGES/vte-%%VERSION%%.mo
204 share/locale/te/LC_MESSAGES/vte-%%VERSION%%.mo
205 share/locale/tg/LC_MESSAGES/vte-%%VERSION%%.mo
206 share/locale/th/LC_MESSAGES/vte-%%VERSION%%.mo
207 share/locale/tr/LC_MESSAGES/vte-%%VERSION%%.mo
208 share/locale/ug/LC_MESSAGES/vte-%%VERSION%%.mo
209 share/locale/uk/LC_MESSAGES/vte-%%VERSION%%.mo
210 share/locale/uz@cyrillic/LC_MESSAGES/vte-%%VERSION%%.mo
211 share/locale/vi/LC_MESSAGES/vte-%%VERSION%%.mo
212 share/locale/wa/LC_MESSAGES/vte-%%VERSION%%.mo
213 share/locale/xh/LC_MESSAGES/vte-%%VERSION%%.mo
214 share/locale/zh_CN/LC_MESSAGES/vte-%%VERSION%%.mo
215 share/locale/zh_HK/LC_MESSAGES/vte-%%VERSION%%.mo
216 share/locale/zh_TW/LC_MESSAGES/vte-%%VERSION%%.mo
217
218
219 [FILE:345:patches/patch-meson.build]
220 --- meson.build.orig    2023-04-13 09:57:27 UTC
221 +++ meson.build
222 @@ -235,6 +235,10 @@ elif system == 'darwin'
223      ['_DARWIN_C_SOURCE', '1'],
224    ]
225  
226 +elif system == 'dragonfly'
227 +  libc_feature_defines = []
228 +elif system == 'midnightbsd'
229 +  libc_feature_defines = []
230  elif system == 'netbsd'
231    libc_feature_defines += [
232      ['_NETBSD_SOURCE', '1'],
233
234
235 [FILE:703:patches/patch-src_app_app.cc]
236 --- src/app/app.cc.orig 2023-04-13 09:57:27 UTC
237 +++ src/app/app.cc
238 @@ -3125,7 +3125,15 @@ main(int argc,
239                 struct termios tcattr;
240                 if (tcgetattr(STDIN_FILENO, &tcattr) == 0) {
241                         saved_tcattr = tcattr;
242 +#ifdef __sun__
243 +       tcattr.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
244 +       tcattr.c_oflag &= ~OPOST;
245 +       tcattr.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
246 +       tcattr.c_cflag &= ~(CSIZE|PARENB);
247 +       tcattr.c_cflag |= CS8;
248 +#else
249                         cfmakeraw(&tcattr);
250 +#endif
251                         if (tcsetattr(STDIN_FILENO, TCSANOW, &tcattr) == 0)
252                                 reset_termios = true;
253                 }
254
255
256 [FILE:549:patches/patch-src_dumpkeys.c]
257 --- src/dumpkeys.c.orig 2023-04-13 09:57:27 UTC
258 +++ src/dumpkeys.c
259 @@ -161,7 +161,15 @@ main(int argc, char **argv)
260         }
261         original = tcattr;
262         signal(SIGINT, sigint_handler);
263 +#ifdef __sun__
264 +       tcattr.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
265 +       tcattr.c_oflag &= ~OPOST;
266 +       tcattr.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
267 +       tcattr.c_cflag &= ~(CSIZE|PARENB);
268 +       tcattr.c_cflag |= CS8;
269 +#else
270         cfmakeraw(&tcattr);
271 +#endif
272         if (tcsetattr(STDIN_FILENO, TCSANOW, &tcattr) != 0) {
273                 perror("tcsetattr");
274                 return 1;
275
276
277 [FILE:453:patches/patch-src_libc-glue.hh]
278 --- src/libc-glue.hh.orig       2023-04-13 09:57:27 UTC
279 +++ src/libc-glue.hh
280 @@ -220,7 +220,13 @@ fd_dup_cloexec(int oldfd,
281  {
282          auto r = int{};
283          do {
284 +#ifdef F_DUPFD_CLOEXEC
285                  r = fcntl(oldfd, F_DUPFD_CLOEXEC, newfd);
286 +#else
287 +                r = fcntl(oldfd, F_DUPFD, 0);
288 +                newfd = r;
289 +                fcntl(newfd, F_SETFD, FD_CLOEXEC);
290 +#endif
291          } while (r == -1 && errno == EINTR);
292          return r;
293  }
294
295
296 [FILE:537:patches/patch-src_mev.c]
297 --- src/mev.c.orig      2023-04-13 09:57:27 UTC
298 +++ src/mev.c
299 @@ -358,7 +358,15 @@ main(int argc, char **argv)
300  
301         original = tcattr;
302         signal(SIGINT, sigint_handler);
303 +#ifdef __sun__
304 +       tcattr.c_iflag &= ~(IMAXBEL|IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
305 +       tcattr.c_oflag &= ~OPOST;
306 +       tcattr.c_lflag &= ~(ECHO|ECHONL|ICANON|ISIG|IEXTEN);
307 +       tcattr.c_cflag &= ~(CSIZE|PARENB);
308 +       tcattr.c_cflag |= CS8;
309 +#else
310         cfmakeraw(&tcattr);
311 +#endif
312         if (tcsetattr(STDIN_FILENO, TCSANOW, &tcattr) != 0) {
313                 perror("tcsetattr");
314                 return 1;
315
316
317 [FILE:1402:patches/patch-src_pty.cc]
318 --- src/pty.cc.orig     2023-04-13 09:57:27 UTC
319 +++ src/pty.cc
320 @@ -72,6 +72,10 @@
321  
322  #include "missing.hh"
323  
324 +#ifndef O_CLOEXEC
325 +#define O_CLOEXEC 0
326 +#endif
327 +
328  namespace vte::base {
329  
330  Pty*
331 @@ -335,6 +339,7 @@ Pty::get_size(int* rows,
332          return false;
333  }
334  
335 +#ifndef __sun__
336  static int
337  fd_set_cpkt(vte::libc::FD& fd)
338  {
339 @@ -351,6 +356,7 @@ fd_set_cpkt(vte::libc::FD& fd)
340  #endif
341          return ret;
342  }
343 +#endif
344  
345  static int
346  fd_setup(vte::libc::FD& fd)
347 @@ -385,6 +391,7 @@ fd_setup(vte::libc::FD& fd)
348                  return -1;
349          }
350  
351 +#ifndef __sun__
352          if (fd_set_cpkt(fd) < 0) {
353                  auto errsv = vte::libc::ErrnoSaver{};
354                  _vte_debug_print(VTE_DEBUG_PTY,
355 @@ -392,6 +399,7 @@ fd_setup(vte::libc::FD& fd)
356                                   "Setting packet mode", g_strerror(errsv));
357                  return -1;
358          }
359 +#endif
360  
361          return 0;
362  }
363 @@ -461,6 +469,7 @@ _vte_pty_open_posix(void)
364          }
365  #endif /* !linux */
366  
367 +#ifndef __sun__
368          if (fd_set_cpkt(fd) < 0) {
369                  auto errsv = vte::libc::ErrnoSaver{};
370                  _vte_debug_print(VTE_DEBUG_PTY,
371 @@ -468,6 +477,7 @@ _vte_pty_open_posix(void)
372                                   "Setting packet mode", g_strerror(errsv));
373                  return {};
374          }
375 +#endif
376  
377          if (grantpt(fd.get()) != 0) {
378                  auto errsv = vte::libc::ErrnoSaver{};
379
380
381 [FILE:315:patches/patch-src_vte.cc]
382 --- src/vte.cc.orig     2023-04-13 09:57:27 UTC
383 +++ src/vte.cc
384 @@ -33,6 +33,13 @@
385  #ifdef HAVE_SYS_STREAM_H
386  #include <sys/stream.h>
387  #endif
388 +#ifdef HAVE_TERMIOS_H
389 +#include <termios.h>
390 +#endif
391 +#if defined(__sun__)
392 +#include <sys/ioccom.h>
393 +#include <sys/ptyvar.h>
394 +#endif
395  
396  #include <glib.h>
397  #include <glib-unix.h>
398
399
400 [FILE:270:patches/patch-src_widget.cc]
401 --- src/widget.cc.orig  2023-04-13 09:57:27 UTC
402 +++ src/widget.cc
403 @@ -22,6 +22,10 @@
404  
405  #include <sys/wait.h> // for W_EXITCODE
406  
407 +#ifndef W_EXITCODE
408 +#define W_EXITCODE(ret, sig)   ((ret) << 8 | (sig))
409 +#endif
410 +
411  #include <exception>
412  #include <new>
413  #include <stdexcept>
414