void-packages/srcpkgs/gfm/patches/no-kde.patch
Đoàn Trần Công Danh 7fc9190f0e srcpkgs/g*: convert patches to -Np1
* gcc is kept at -Np0, because of void-cross

```sh
git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" |
while read template; do
	for p in ${template%/template}/patches/*; do
		sed -i '
			\,^[+-][+-][+-] /dev/null,b
			/^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b
			s,^[*][*][*] ,&a/,
			/^--- /{
				s,\(^--- \)\(./\)*,\1a/,
				s,[.][Oo][Rr][Ii][Gg]\([	/]\),\1,
				s/[.][Oo][Rr][Ii][Gg]$//
				s/[.]patched[.]\([^.]\)/.\1/
				h
			}
			/^+++ -/{
				g
				s/^--- a/+++ b/
				b
			}
			s,\(^+++ \)\(./\)*,\1b/,
		' "$p"
	done
	sed -i '/^patch_args=/d' $template
done
```
2021-06-20 13:17:29 +07:00

66 lines
1.7 KiB
Diff

--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -8,18 +8,18 @@
# build instructions
gfm_CPPFLAGS = @TIFILES_CFLAGS@ @TICONV_CFLAGS@ @TICALCS_CFLAGS@ \
@GLIB_CFLAGS@ @GTK_CFLAGS@ @GLADE_CFLAGS@ \
- @KDE_INCLUDES@ @QT_INCLUDES@ \
-DSHARE_DIR=\"$(pkgdatadir)\" \
-DLOCALEDIR=\"$(datadir)/locale\"
+# @KDE_INCLUDES@ @QT_INCLUDES@
gfm_LDFLAGS = -export-dynamic
gfm_LDADD = \
@TIFILES_LIBS@ @TICONV_LIBS@ @TICALCS_LIBS@ \
@GLIB_LIBS@ @GTK_LIBS@ @GLADE_LIBS@ \
- @LIB_KDECORE@ @LIB_KDEUI@ @LIB_KIO@ @LIB_QT@ @KDE_LDFLAGS@ \
- @QT_LDFLAGS@ @X_LDFLAGS@ \
@LTLIBINTL@
+# @LIB_KDECORE@ @LIB_KDEUI@ @LIB_KIO@ @LIB_QT@ @KDE_LDFLAGS@ \
+# @QT_LDFLAGS@ @X_LDFLAGS@
# automake wants all .c files listed explicitly. This sucks. qmake does the
# right thing with just "*.c".
--- a/configure.ac
+++ b/configure.ac
@@ -90,22 +90,23 @@
AC_CHECK_FUNCS([getcwd memset mkdir strcasecmp strchr strdup strrchr strstr])
# KDE dialogs support
-AC_ARG_WITH(kde, AC_HELP_STRING([--with-kde], [Compile with KDE support]), [kde=$withval], [kde=no])
-if test "x$kde" = "xdefault"; then
- case $host_os in
- *mingw*)
- kde=no
- ;;
- *)
- kde=yes
- ;;
- esac
-fi
-if test "x$kde" = "xyes"; then
- AC_PROG_CXX
- AC_PATH_KDE
- AC_DEFINE(WITH_KDE, 1, [Use KDE support])
-fi
+#AC_ARG_WITH(kde, AC_HELP_STRING([--with-kde], [Compile with KDE support]), [kde=$withval], [kde=no])
+#if test "x$kde" = "xdefault"; then
+# case $host_os in
+# *mingw*)
+# kde=no
+# ;;
+# *)
+# kde=yes
+# ;;
+# esac
+#fi
+#if test "x$kde" = "xyes"; then
+# AC_PROG_CXX
+# AC_PATH_KDE
+# AC_DEFINE(WITH_KDE, 1, [Use KDE support])
+#fi
+kde=no
AM_CONDITIONAL(USE_KDE, test "x$kde" = "xyes")
AC_SUBST(kde)