development/gedit: Fix -current build (no harm on 15.0).

Signed-off-by: B. Watson <urchlay@slackware.uk>

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
B. Watson 2023-12-07 03:47:56 -05:00 committed by Willy Sudiarto Raharjo
parent 80098bf329
commit f1f6834e5c
No known key found for this signature in database
GPG key ID: 3F617144D7238786

View file

@ -27,6 +27,11 @@
# Special thanks to Brandon Pribula, who kindly handed over maintenance to me.
# 20231207 bkw: modified by SlackBuilds.org: remove gspell
# autodetection (redundant; gspell is a required dep, plus it was
# breaking the build on -current). Thanks to UrbanMusic on Libera IRC
# for pointing this out.
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=gedit
@ -89,14 +94,6 @@ sed -i "s/meson_version: '>= 0.64'/meson_version: '>= 0.59'/;
s/'gio-2.0', version: '>= 2.74'/'gio-2.0', version: '>= 2.70'/" meson.build
# gspell is an optional (autodetected) dependency. Give the user the possibility of
# disabling it if preinstalled.
spell='disabled'
if [ -f /usr/lib${LIBDIRSUFFIX}/libgspell-1.so ] && [ "${WITH_GSPELL:-yes}" != "no" ]; then
spell='enabled'
fi;
cd build
CFLAGS="$SLKCFLAGS -DG_CONNECT_DEFAULT=0" \
CXXFLAGS="$SLKCFLAGS" \
@ -108,7 +105,6 @@ cd build
--mandir=/usr/man \
--prefix=/usr \
--sysconfdir=/etc \
-Dspell=$spell \
-Dgtk_doc=false \
-Dstrip=true
"${NINJA:=ninja}"