Initial commit
This commit is contained in:
+42
@@ -0,0 +1,42 @@
|
||||
From de9639baac792327c701e509258b8a13f6959e82 Mon Sep 17 00:00:00 2001
|
||||
From: Danilo Spinella <danyspin97@protonmail.com>
|
||||
Date: Thu, 21 Mar 2019 14:19:26 +0100
|
||||
Subject: [PATCH] Add W_EXITCODE macro for non-glibc systems
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
Upstream-Status: Submitted [1]
|
||||
|
||||
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
|
||||
|
||||
[1] https://gitlab.gnome.org/GNOME/vte/issues/72
|
||||
|
||||
---
|
||||
src/missing.hh | 4 ++++
|
||||
src/widget.cc | 1 +
|
||||
2 files changed, 5 insertions(+)
|
||||
|
||||
--- a/src/missing.hh
|
||||
+++ b/src/missing.hh
|
||||
@@ -24,6 +24,10 @@
|
||||
#define NSIG (8 * sizeof(sigset_t))
|
||||
#endif
|
||||
|
||||
+#ifndef W_EXITCODE
|
||||
+#define W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
|
||||
+#endif
|
||||
+
|
||||
#ifndef HAVE_FDWALK
|
||||
int fdwalk(int (*cb)(void* data, int fd),
|
||||
void* data);
|
||||
--- a/src/widget.cc
|
||||
+++ b/src/widget.cc
|
||||
@@ -21,6 +21,7 @@
|
||||
#include "widget.hh"
|
||||
|
||||
#include <sys/wait.h> // for W_EXITCODE
|
||||
+#include "missing.hh" // for W_EXITCODE on non-glibc systems
|
||||
|
||||
#include <exception>
|
||||
#include <new>
|
||||
@@ -0,0 +1,54 @@
|
||||
SUMMARY = "Virtual terminal emulator GTK+ widget library"
|
||||
DESCRIPTION = "VTE provides a virtual terminal widget for GTK applications."
|
||||
HOMEPAGE = "https://wiki.gnome.org/Apps/Terminal/VTE"
|
||||
BUGTRACKER = "https://bugzilla.gnome.org/buglist.cgi?product=vte"
|
||||
LICENSE = "GPL-3.0-only & LGPL-3.0-or-later & MIT"
|
||||
LICENSE:libvte = "LGPL-3.0-or-later"
|
||||
|
||||
LIC_FILES_CHKSUM = " \
|
||||
file://COPYING.GPL3;md5=cc702cf3444d1f19680c794cc61948f9 \
|
||||
file://COPYING.LGPL3;md5=b52f2d57d10c4f7ee67a7eb9615d5d24 \
|
||||
file://COPYING.XTERM;md5=d7fc3a23c16c039afafe2e042030f057 \
|
||||
"
|
||||
|
||||
DEPENDS = "glib-2.0 glib-2.0-native gtk+3 libpcre2 libxml2-native gperf-native icu"
|
||||
|
||||
GNOMEBASEBUILDCLASS = "meson"
|
||||
GIR_MESON_OPTION = 'gir'
|
||||
GIDOCGEN_MESON_OPTION = "docs"
|
||||
|
||||
inherit gnomebase gi-docgen features_check upstream-version-is-even gobject-introspection
|
||||
|
||||
# vapigen.m4 is required when vala is not present (but the one from vala should be used normally)
|
||||
SRC_URI += "file://0001-Add-W_EXITCODE-macro-for-non-glibc-systems.patch"
|
||||
SRC_URI[archive.sha256sum] = "f7966fd185a6981f53964162b71cfef7e606495155d6f5827b72aa0dd6741c9e"
|
||||
|
||||
ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
|
||||
|
||||
# Help g-ir-scanner find the .so for linking
|
||||
do_compile:prepend() {
|
||||
export GIR_EXTRA_LIBS_PATH="${B}/src/.libs"
|
||||
}
|
||||
|
||||
# Package additional files
|
||||
FILES:${PN}-dev += "${datadir}/vala/vapi/*"
|
||||
|
||||
PACKAGECONFIG ??= "gnutls"
|
||||
PACKAGECONFIG[vala] = "-Dvapi=true,-Dvapi=false,vala-native vala"
|
||||
PACKAGECONFIG[gnutls] = "-Dgnutls=true,-Dgnutls=false,gnutls"
|
||||
PACKAGECONFIG[systemd] = "-D_systemd=true,-D_systemd=false,systemd"
|
||||
# vala requires gir
|
||||
PACKAGECONFIG:remove:class-native = "vala"
|
||||
|
||||
CFLAGS += "-D_GNU_SOURCE"
|
||||
|
||||
PACKAGES =+ "libvte ${PN}-prompt"
|
||||
FILES:libvte = "${libdir}/*.so.* ${libdir}/girepository-1.0/*"
|
||||
FILES:${PN}-prompt = " \
|
||||
${sysconfdir}/profile.d \
|
||||
${libexecdir}/vte-urlencode-cwd \
|
||||
"
|
||||
|
||||
FILES:${PN}-dev += "${datadir}/glade/"
|
||||
|
||||
BBCLASSEXTEND = "native nativesdk"
|
||||
Reference in New Issue
Block a user