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