svn commit: r494473 - in head/graphics/klatexformula: . files

Hiroki Sato hrs at FreeBSD.org
Sun Mar 3 01:19:33 UTC 2019


Author: hrs
Date: Sun Mar  3 01:19:32 2019
New Revision: 494473
URL: https://svnweb.freebsd.org/changeset/ports/494473

Log:
  Fix build on 32-bit arch.

Added:
  head/graphics/klatexformula/files/patch-src-main.cpp   (contents, props changed)
Modified:
  head/graphics/klatexformula/Makefile

Modified: head/graphics/klatexformula/Makefile
==============================================================================
--- head/graphics/klatexformula/Makefile	Sun Mar  3 00:55:52 2019	(r494472)
+++ head/graphics/klatexformula/Makefile	Sun Mar  3 01:19:32 2019	(r494473)
@@ -26,6 +26,6 @@ CMAKE_ARGS=	-DKLF_INSTALL_POST_UPDATEMIMEDATABASE=off 
 
 post-patch:
 	${REINPLACE_CMD} '/CMAKE_SYSTEM_NAME STREQUAL/s,Linux,FreeBSD,' \
-		${WRKSRC}/src/klftools/CMakeLists.txt
+	    ${WRKSRC}/src/klftools/CMakeLists.txt
 
 .include <bsd.port.mk>

Added: head/graphics/klatexformula/files/patch-src-main.cpp
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/klatexformula/files/patch-src-main.cpp	Sun Mar  3 01:19:32 2019	(r494473)
@@ -0,0 +1,13 @@
+--- src/main.cpp.orig	2017-02-07 07:22:42 UTC
++++ src/main.cpp
+@@ -272,8 +272,8 @@ void signal_act(int sig)
+     fprintf(ftty, "Interrupt\n");
+     if (ftty != stderr)  fprintf(stderr, "*** Interrupt\n");
+ 
+-    static long last_sigint_time = 0;
+-    long curtime;
++    static time_t last_sigint_time = 0;
++    time_t curtime;
+     time(&curtime);
+     bool isInsisted = (curtime - last_sigint_time <= 2); // re-pressed Ctrl-C after less than 2 secs
+     if (!isInsisted && qApp != NULL) {


More information about the svn-ports-all mailing list