From d2f1b615f27569021bfde236aed6143252d4789b Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Tue, 13 Aug 2024 02:15:06 -0400 Subject: development/bacon: Updated for version 5.0, add GTK3 GUI. Signed-off-by: B. Watson Signed-off-by: Willy Sudiarto Raharjo --- development/bacon/bacon.SlackBuild | 49 ++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 18 deletions(-) (limited to 'development/bacon/bacon.SlackBuild') diff --git a/development/bacon/bacon.SlackBuild b/development/bacon/bacon.SlackBuild index 904c4302e04c..cc5966a9d502 100644 --- a/development/bacon/bacon.SlackBuild +++ b/development/bacon/bacon.SlackBuild @@ -6,6 +6,9 @@ # Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details. +# 20240812 bkw: +# - update for v5.0. +# - enable the GTK3 GUI. # 20230814 bkw: # - update to v4.7. # - switch to self-hosted download, as upstreams disappears the @@ -16,7 +19,7 @@ cd $(dirname $0) ; CWD=$(pwd) PRGNAM=bacon -VERSION=${VERSION:-4.7} +VERSION=${VERSION:-5.0} BUILD=${BUILD:-1} TAG=${TAG:-_SBo} PKGTYPE=${PKGTYPE:-tgz} @@ -54,6 +57,31 @@ fi set -e +# The --enable-gui-* and --disable-gui-* don't actually work. +# We can't run autoreconf either (fails). +# The intent here is to build: +# The GTK3 gui if requested by the user (but never automatically), +# The FLTK gui if fltk is installed and not disabled with FLTK=no, +# or the TK gui if fltk is missing or disabled via FLTK=no. +# Either way, we don't currently support the gtk 2 gui (it depends +# on webkitgtk 2.x, which is outdated and gone from our repo). +if [ "${GTK3:-no}" = "yes" ]; then + if ! pkg-config --exists gtksourceview-4; then + cat < $PKGDOC/$PRGNAM.SlackBuild mkdir -p $PKG/usr/share/vim/vimfiles/syntax/ mv $PKG/usr/share/BaCon/syntax/bacon.vim $PKG/usr/share/vim/vimfiles/syntax/bacon.vim mkdir -p $PKG/usr/share/gtksourceview-3.0/language-specs/ +mkdir -p $PKG/usr/share/gtksourceview-4/language-specs +cp $PKG/usr/share/BaCon/syntax/bacon.lang $PKG/usr/share/gtksourceview-4/language-specs mv $PKG/usr/share/BaCon/syntax/bacon.lang $PKG/usr/share/gtksourceview-3.0/language-specs/bacon.lang # The vim syntax file works, but won't be used automatically without this: -- cgit v1.2.3