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