From a6a4144617ccd01cd40a4a1d3a6f64236c1a4b28 Mon Sep 17 00:00:00 2001 From: Andrew Benson Date: Thu, 3 May 2018 09:57:10 -0500 Subject: [PATCH] New package: gfm-1.08 --- srcpkgs/gfm/patches/no-kde.patch | 66 ++++++++++++++++++++++++++++++++ srcpkgs/gfm/template | 23 +++++++++++ 2 files changed, 89 insertions(+) create mode 100644 srcpkgs/gfm/patches/no-kde.patch create mode 100644 srcpkgs/gfm/template diff --git a/srcpkgs/gfm/patches/no-kde.patch b/srcpkgs/gfm/patches/no-kde.patch new file mode 100644 index 00000000000..146bdac8ed1 --- /dev/null +++ b/srcpkgs/gfm/patches/no-kde.patch @@ -0,0 +1,66 @@ +--- src/Makefile.am.orig ++++ 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". +--- configure.ac.orig ++++ 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) + diff --git a/srcpkgs/gfm/template b/srcpkgs/gfm/template new file mode 100644 index 00000000000..07047d64765 --- /dev/null +++ b/srcpkgs/gfm/template @@ -0,0 +1,23 @@ +# Template file for 'gfm' +pkgname=gfm +version=1.08 +revision=1 +_tilpver=1.18 +build_style=gnu-configure +hostmakedepends="automake bison groff intltool libtool pkg-config texinfo" +makedepends="libticalcs2-devel libglade-devel" +short_desc="TIgroup files manipulator for TiLP2" +maintainer="Andrew Benson " +license="GPL-2.0-or-later" +homepage="https://www.ticalc.org" +distfiles="${SOURCEFORGE_SITE}/tilp/tilp2-linux/tilp2-${_tilpver}/${pkgname}-${version}.tar.bz2" +checksum=09031ac0abf686b6a8bc9935f331ef460415783a1057f11b0af993526b52017f + +if [ -n "$CROSS_BUILD" ]; then + hostmakedepends+=" gettext-devel" +fi + +pre_configure() { + mkdir -p m4 + autoreconf -i -v -f +}