Skip to content

Commit

Permalink
gwenhywfar: update to 5.10.2, remove -gtk
Browse files Browse the repository at this point in the history
gwenhywfar-gtk: remove package, GTK2 no longer supported
  • Loading branch information
cinerea0 committed Jul 31, 2023
1 parent eea801e commit 12181dc
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 30 deletions.
1 change: 0 additions & 1 deletion common/shlibs
Original file line number Diff line number Diff line change
Expand Up @@ -1548,7 +1548,6 @@ libslang.so.2 slang-2.2.4_1
libtre.so.5 tre-0.8.0_1
libktoblzcheck.so.1 ktoblzcheck-1.43_2
libgwenhywfar.so.79 gwenhywfar-5.4.0_2
libgwengui-gtk2.so.79 gwenhywfar-gtk-5.4.0_2
libgwengui-gtk3.so.79 gwenhywfar-gtk3-5.4.0_2
libgwengui-cpp.so.79 gwenhywfar-5.4.0_2
libgwengui-qt5.so.79 gwenhywfar-qt5-5.4.0_2
Expand Down
1 change: 0 additions & 1 deletion srcpkgs/gwenhywfar-gtk

This file was deleted.

25 changes: 14 additions & 11 deletions srcpkgs/gwenhywfar/patches/qt5-cross.patch
Original file line number Diff line number Diff line change
@@ -1,28 +1,31 @@
--- a/m4/ax_have_qt.m4 2020-01-16 19:40:22.927813462 +0100
+++ b/m4/ax_have_qt.m4 2020-01-16 19:42:12.106436543 +0100
@@ -74,6 +74,12 @@
diff --git a/m4/ax_have_qt.m4 b/m4/ax_have_qt.m4
index f035a81852..b43f8c2387 100644
--- a/m4/ax_have_qt.m4
+++ b/m4/ax_have_qt.m4
@@ -74,6 +74,13 @@ AC_DEFUN([AX_HAVE_QT],
[QT_QMAKE="$withval"],
[QT_QMAKE="qmake"]
)
+
+ AC_ARG_WITH(qt5-config,
+ [ --with-qt5-config=FILE uses given qt configuration],
+ [QT_CONFIGURATION="$withval"],
+ [QT_CONFIGURATION="$withval"],
+ [QT_CONFIGURATION=""]
+ )
+
+
AC_MSG_CHECKING(for Qt)
# If we have Qt5 or later in the path, we're golden
ver=`$QT_QMAKE --version | grep -o "Qt version ."`
@@ -122,7 +128,11 @@
@@ -96,7 +103,11 @@ percent.target = %
percent.commands = @echo -n "\$(\$(@))\ "
QMAKE_EXTRA_TARGETS += percent
EOF
- $QT_QMAKE $am_have_qt_pro -o $am_have_qt_makefile
+ if test -z $QT_CONFIGURATION; then
+ $QT_QMAKE $am_have_qt_pro -o $am_have_qt_makefile
+ $QT_QMAKE $am_have_qt_pro -o $am_have_qt_makefile
+ else
+ $QT_QMAKE $am_have_qt_pro -o $am_have_qt_makefile -qtconf $QT_CONFIGURATION
+ $QT_QMAKE $am_have_qt_pro -o $am_have_qt_makefile -qtconf $QT_CONFIGURATION
+ fi
QT_CXXFLAGS=`make -s -f $am_have_qt_makefile CXXFLAGS INCPATH`
QT_LIBS=`make -s -f $am_have_qt_makefile LIBS`
QT_CXXFLAGS=`cd $am_have_qt_dir; make -s -f $am_have_qt_makefile CXXFLAGS INCPATH`
QT_LIBS=`cd $am_have_qt_dir; make -s -f $am_have_qt_makefile LIBS`
rm $am_have_qt_pro $am_have_qt_makefile
26 changes: 9 additions & 17 deletions srcpkgs/gwenhywfar/template
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
# Template file for 'gwenhywfar'
pkgname=gwenhywfar
version=5.6.0
version=5.10.2
revision=1
build_style=gnu-configure
configure_args="--disable-binreloc
configure_args="--disable-binreloc --disable-network-checks
--with-qt5-moc=/usr/lib/qt5/bin/moc --with-qt5-uic=/usr/lib/qt5/bin/uic"
hostmakedepends="automake pkg-config libgcrypt-devel libtool which"
makedepends="libgcrypt-devel gnutls-devel gtk+-devel qt5-devel gtk+3-devel"
makedepends="libgcrypt-devel gnutls-devel gtk+-devel qt5-devel gtk+3-devel
gettext-devel"
short_desc="OS abstraction functions for various projects"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="LGPL-2.1-or-later"
homepage="https://github.com/aqbanking/gwenhywfar"
distfiles="https://github.com/aqbanking/gwenhywfar/archive/${version}.tar.gz"
checksum=9f2876770824a283d02fd730bb1f7a98970fa6f20121f4af433d6698831c3a84
distfiles="https://github.com/aqbanking/gwenhywfar/archive/refs/tags/${version}.tar.gz"
checksum=2b0b9dd49b95f025f4e0c0346ba88e20b893407c444fccf6403a4da349954f04

if [ "$CROSS_BUILD" ]; then
hostmakedepends+=" qt5-host-tools qt5-devel"
fi

pre_configure() {
export QT_SELECT=5
# Build all GUIs
vsed -i configure.ac -e's;"qt4 gtk2";"qt5 gtk2 gtk3";'
autoreconf -fi
if [ "$CROSS_BUILD" ]; then
cat > "${wrksrc}/qt.conf" <<_EOF
cat > "${wrksrc}/qt.conf" <<_EOF
[Paths]
Sysroot=${XBPS_CROSS_BASE}

Check failure on line 28 in srcpkgs/gwenhywfar/template

View workflow job for this annotation

GitHub Actions / Lint templates

Template Lint

custom variables should use _ prefix: Sysroot=${XBPS_CROSS_BASE}
Prefix=${XBPS_CROSS_BASE}/usr

Check failure on line 29 in srcpkgs/gwenhywfar/template

View workflow job for this annotation

GitHub Actions / Lint templates

Template Lint

custom variables should use _ prefix: Prefix=${XBPS_CROSS_BASE}/usr
Expand All @@ -49,15 +48,8 @@ HostLibraries=/usr/lib
Spec=linux-g++
TargetSpec=linux-g++
_EOF
configure_args+=" --with-qt5-config=${wrksrc}/qt.conf"
fi
}

gwenhywfar-gtk_package() {
short_desc+=" - gtk+2 bindings"
pkg_install() {
vmove usr/lib/*-gtk2*
}
configure_args+=" --with-qt5-config=${wrksrc}/qt.conf"
fi
}

gwenhywfar-gtk3_package() {
Expand Down
1 change: 1 addition & 0 deletions srcpkgs/removed-packages/template
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ replaces="
gtkhtml<=4.10.0_1
guile1.8-devel<=1.8.8_3
guile1.8<=1.8.8_3
gwenhywfar-gtk<=5.6.0_1
gx-go<=1.9.0_1
gx<=0.14.3_1
hangups<=0.4.18_2
Expand Down

0 comments on commit 12181dc

Please sign in to comment.