From 52f6d41363e07bf7fb15f24d4a9c7c94cc0fc373 Mon Sep 17 00:00:00 2001 From: Dennis Bonke Date: Sun, 6 Jun 2021 03:10:55 +0200 Subject: [PATCH] hexchat: Add port Signed-off-by: Dennis Bonke --- bootstrap.d/net-irc.yml | 58 +++++++++++++++++++ bootstrap.yml | 1 + .../hexchat/0001-Add-missing-includes.patch | 38 ++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 bootstrap.d/net-irc.yml create mode 100644 patches/hexchat/0001-Add-missing-includes.patch diff --git a/bootstrap.d/net-irc.yml b/bootstrap.d/net-irc.yml new file mode 100644 index 000000000..46014e0bd --- /dev/null +++ b/bootstrap.d/net-irc.yml @@ -0,0 +1,58 @@ +packages: + - name: hexchat + architecture: '@OPTION:arch@' + metadata: + summary: Graphical IRC client based on XChat + description: This package HexChat, an IRC program. It allows you to join multiple IRC channels at the same time where you can talk publicly, have private one-to-one communications among other things. + spdx: 'GPL-2.0' + website: 'https://hexchat.github.io/' + maintainer: "Dennis Bonke " + categories: ['net-irc'] + source: + subdir: 'ports' + git: 'https://github.com/hexchat/hexchat.git' + tag: 'v2.16.1' + version: '2.16.1' + tools_required: + - system-gcc + - virtual: pkgconfig-for-target + triple: "@OPTION:arch-triple@" + pkgs_required: + - mlibc + - glib + - gdk-pixbuf + - gtk+-2 + - pango + - libx11 + - openssl + configure: + - args: + - 'meson' + - '--cross-file' + - '@SOURCE_ROOT@/scripts/meson-@OPTION:arch-triple@.cross-file' + - '--prefix=/usr' + - '--libdir=lib' + - '--buildtype=debugoptimized' + - '-Dgtk-frontend=true' + - '-Dtext-frontend=false' + - '-Dtls=enabled' + - '-Dplugin=true' + - '-Ddbus=disabled' + - '-Dlibcanberra=disabled' + - '-Dtheme-manager=false' + - '-Ddbus-service-use-appid=false' + - '-Dwith-checksum=false' + - '-Dwith-fishlim=false' + - '-Dwith-lua=false' + - '-Dwith-perl=false' + - '-Dwith-python=false' + - '-Dwith-sysinfo=false' + - '-Dinstall-appdata=false' + - '-Dinstall-plugin-metainfo=false' + - '@THIS_SOURCE_DIR@' + build: + - args: ['ninja'] + - args: ['ninja', 'install'] + environ: + DESTDIR: '@THIS_COLLECT_DIR@' + quiet: true diff --git a/bootstrap.yml b/bootstrap.yml index 58a00a5c9..a1807d1c0 100644 --- a/bootstrap.yml +++ b/bootstrap.yml @@ -24,6 +24,7 @@ imports: - file: bootstrap.d/media-libs.yml - file: bootstrap.d/meta-pkgs.yml - file: bootstrap.d/net-dns.yml + - file: bootstrap.d/net-irc.yml - file: bootstrap.d/net-libs.yml - file: bootstrap.d/net-misc.yml - file: bootstrap.d/net-print.yml diff --git a/patches/hexchat/0001-Add-missing-includes.patch b/patches/hexchat/0001-Add-missing-includes.patch new file mode 100644 index 000000000..711aef1f3 --- /dev/null +++ b/patches/hexchat/0001-Add-missing-includes.patch @@ -0,0 +1,38 @@ +From bd7f2f64a6c9b484fcd563a69272c75f44fb14a6 Mon Sep 17 00:00:00 2001 +From: Dennis Bonke +Date: Wed, 12 Oct 2022 03:19:59 +0200 +Subject: [PATCH] Add missing includes + +Signed-off-by: Dennis Bonke +--- + src/common/proto-irc.c | 1 + + src/fe-gtk/fkeys.c | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/src/common/proto-irc.c b/src/common/proto-irc.c +index a8d997b..1a97f9d 100644 +--- a/src/common/proto-irc.c ++++ b/src/common/proto-irc.c +@@ -19,6 +19,7 @@ + /* IRC RFC1459(+commonly used extensions) protocol implementation */ + + #include ++#include + #include + #include + #include +diff --git a/src/fe-gtk/fkeys.c b/src/fe-gtk/fkeys.c +index dc4b41b..8b7c9a2 100644 +--- a/src/fe-gtk/fkeys.c ++++ b/src/fe-gtk/fkeys.c +@@ -21,6 +21,7 @@ + #include + #include + #include ++#include + #include + #include + +-- +2.37.2 +