Hi ports --
Here's a patch for Zile to update it to 2.4.11 - tested on amd64 and
macppc.
The patches are to prevent errors with our gcc (it is confused by the
pragmas). The warning flags in the pragmas are flags I don't think our
gcc even understands anyway.
OK?
~Brian
Index: Makefile
===================================================================
RCS file: /cvs/ports/editors/zile/Makefile,v
retrieving revision 1.44
diff -u -p -r1.44 Makefile
--- Makefile 9 Nov 2013 23:19:03 -0000 1.44
+++ Makefile 18 Mar 2014 02:02:06 -0000
@@ -1,19 +1,18 @@
# $OpenBSD: Makefile,v 1.44 2013/11/09 23:19:03 naddy Exp $
COMMENT= lightweight Emacs clone
-DISTNAME= zile-2.4.9
-REVISION= 0
+DISTNAME= zile-2.4.11
CATEGORIES= editors
HOMEPAGE= https://www.gnu.org/software/zile/
MAINTAINER= Gonzalo L. R. <[email protected]>
-# GPLv3
+# GPLv3+
PERMIT_PACKAGE_CDROM= Yes
MASTER_SITES= ${MASTER_SITE_GNU:=zile/}
-WANTLIB += c gc ncursesw
+WANTLIB += c gc ncursesw pthread
LIB_DEPENDS= devel/boehm-gc
Index: distinfo
===================================================================
RCS file: /cvs/ports/editors/zile/distinfo,v
retrieving revision 1.35
diff -u -p -r1.35 distinfo
--- distinfo 14 Nov 2012 13:10:41 -0000 1.35
+++ distinfo 18 Mar 2014 02:02:06 -0000
@@ -1,2 +1,2 @@
-SHA256 (zile-2.4.9.tar.gz) = xxlZx6ygKsZr5SbszLx5VPsOp1ke08EzEalejwQLAEk=
-SIZE (zile-2.4.9.tar.gz) = 1192776
+SHA256 (zile-2.4.11.tar.gz) = H9J7vdxhSRsfuymjRdDTRHNKqegM+gewKJLu34Mfqcw=
+SIZE (zile-2.4.11.tar.gz) = 1293707
Index: patches/patch-src_funcs_c
===================================================================
RCS file: patches/patch-src_funcs_c
diff -N patches/patch-src_funcs_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_funcs_c 18 Mar 2014 02:02:06 -0000
@@ -0,0 +1,18 @@
+$OpenBSD$
+--- src/funcs.c.orig Mon Mar 17 22:44:15 2014
++++ src/funcs.c Mon Mar 17 22:44:48 2014
+@@ -1118,14 +1118,11 @@ END_DEFUN
+ /* The `start' and `end' arguments are fake, hence their string type,
+ so they can be ignored, hence the pragma (FIXME: work out how to
+ apply just to `start' and `end'). */
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wunused-but-set-variable"
+ DEFUN_ARGS ("shell-command-on-region", shell_command_on_region,
+ STR_ARG (start)
+ STR_ARG (end)
+ STR_ARG (cmd)
+ BOOL_ARG (insert))
+-#pragma GCC diagnostic pop
+ /*+
+ Execute string command in inferior shell with region as input.
+ Normally display output (if any) in temp buffer `*Shell Command Output*';
Index: patches/patch-src_minibuf_c
===================================================================
RCS file: patches/patch-src_minibuf_c
diff -N patches/patch-src_minibuf_c
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ patches/patch-src_minibuf_c 18 Mar 2014 02:02:06 -0000
@@ -0,0 +1,14 @@
+$OpenBSD$
+--- src/minibuf.c.orig Mon Mar 17 22:48:04 2014
++++ src/minibuf.c Mon Mar 17 22:48:13 2014
+@@ -287,10 +287,7 @@ minibuf_vread_completion (const char *fmt, const char
+ }
+ else
+ {
+-#pragma GCC diagnostic push
+-#pragma GCC diagnostic ignored "-Wformat-nonliteral"
+ minibuf_error (invalid_err, astr_cstr (ms));
+-#pragma GCC diagnostic pop
+ waitkey ();
+ }
+ }