Skip to content

Commit

Permalink
tilp2: Update to 1.18
Browse files Browse the repository at this point in the history
* Add patch to remove KDE cruft from upstream
* Add build dependency on intltool
* Use autoreconf
* Add new livecheck
  • Loading branch information
saagarjha authored and pmetzger committed Feb 13, 2019
1 parent 51ace48 commit da4dfbe
Show file tree
Hide file tree
Showing 2 changed files with 105 additions and 4 deletions.
16 changes: 12 additions & 4 deletions math/tilp2/Portfile
@@ -1,7 +1,7 @@
PortSystem 1.0

name tilp2
version 1.16
version 1.18
license GPL-2
categories math
maintainers nomaintainer
Expand All @@ -12,13 +12,16 @@ platforms darwin

master_sites sourceforge:tilp

checksums md5 eaea086a5041bb970977de7e65fd9bfa \
sha1 61d26fb1ad4f76df1f8d46369692792da7f6e5a3 \
rmd160 9bfd4ec998679e06b56b94901fce1ef765aa749e
checksums rmd160 433edb66a15f1cdb3487c34bbbd2b2ac31570fb7 \
sha256 7b3ab363eeb52504d6ef5811c5d264f8016060bb7bd427be5a064c2ed7384e47 \
size 536744

patchfiles patch-remove-kde.diff

use_bzip2 yes

depends_build port:pkgconfig \
port:intltool \
bin:groff:groff

depends_lib port:libiconv \
Expand All @@ -30,5 +33,10 @@ depends_lib port:libiconv \
port:gtk2 \
port:libglade2

use_autoreconf yes

configure.args --without-kde

livecheck.type regex
livecheck.url https://sourceforge.net/projects/tilp/rss?path=/tilp2-linux
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
93 changes: 93 additions & 0 deletions math/tilp2/files/patch-remove-kde.diff
@@ -0,0 +1,93 @@
--- configure.ac 2016-01-15 12:28:52.000000000 -0800
+++ configure.ac 2019-02-10 21:57:57.000000000 -0800
@@ -118,24 +118,25 @@
CFLAGS="$CFLAGS $ARCH"

# 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
-AM_CONDITIONAL(USE_KDE, test "x$kde" = "xyes")
-AC_SUBST(kde)
+#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
+#AM_CONDITIONAL(USE_KDE, test "x$kde" = "xyes")
+#AC_SUBST(kde)
+AC_DEFINE(WITH_KDE, 0, [Use KDE support])

# Ensure MSVC-compatible struct packing convention is used when
# compiling for Win32 with gcc.
--- src/Makefile.am 2016-03-14 12:55:57.000000000 -0700
+++ src/Makefile.am 2019-02-10 22:09:58.000000000 -0800
@@ -9,16 +9,15 @@
tilp_CPPFLAGS = -I$(top_srcdir)/intl \
@TICABLES_CFLAGS@ @TIFILES_CFLAGS@ @TICALCS_CFLAGS@ @TICONV_CFLAGS@ \
@GLIB_CFLAGS@ @GTK_CFLAGS@ \
- @KDE_INCLUDES@ @QT_INCLUDES@ \
-DSHARE_DIR=\"$(pkgdatadir)\" \
-DLOCALEDIR=\"$(datadir)/locale\" \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DGTK_DISABLE_DEPRECATED
+# @KDE_INCLUDES@ @QT_INCLUDES@
tilp_LDFLAGS = -export-dynamic
tilp_LDADD = @TICABLES_LIBS@ @TIFILES_LIBS@ @TICALCS_LIBS@ @TICONV_LIBS@ \
- @GLIB_LIBS@ @GTK_LIBS@ \
- @LIB_KDECORE@ @LIB_KDEUI@ @LIB_KIO@ @LIB_QT@ @KDE_LDFLAGS@ \
- @QT_LDFLAGS@ @X_LDFLAGS@ @LIBZ@
+ @GLIB_LIBS@ @GTK_LIBS@ @LIBZ@
+# @LIB_KDECORE@ @LIB_KDEUI@ @LIB_KIO@ @LIB_QT@ @KDE_LDFLAGS@ @QT_LDFLAGS@ @X_LDFLAGS@
tilp_SOURCES = *.h \
tilp_calcs.c tilp_cmdline.c tilp_config.c tilp_error.c \
tilp_files.c tilp_gif.c tilp_main.c \
@@ -36,16 +35,16 @@
tilp_LDFLAGS += -Wl,../build/mingw/tilp-rc.o
endif

-if USE_KDE
- tilp_SOURCES += kde.cpp
- nodist_tilp_SOURCES = kde-private.cpp
- CLEANFILES = kde-private.cpp
-
- kde-private.cpp: kde-private.h
- @MOC@ kde-private.h -o kde-private.cpp
-else
- EXTRA_DIST = kde.cpp
-endif
+#if USE_KDE
+# tilp_SOURCES += kde.cpp
+# nodist_tilp_SOURCES = kde-private.cpp
+# CLEANFILES = kde-private.cpp
+#
+# kde-private.cpp: kde-private.h
+# @MOC@ kde-private.h -o kde-private.cpp
+#else
+# EXTRA_DIST = kde.cpp
+#endif

0 comments on commit da4dfbe

Please sign in to comment.