git: ea8439341a1c - main - lang/intercal: update to 0.32

From: Robert Clausecker <fuz_at_FreeBSD.org>
Date: Sat, 10 Feb 2024 13:48:14 UTC
The branch main has been updated by fuz:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ea8439341a1cd47756e91fa328463a45c6d314b9

commit ea8439341a1cd47756e91fa328463a45c6d314b9
Author:     Robert Clausecker <fuz@FreeBSD.org>
AuthorDate: 2024-02-09 09:46:49 +0000
Commit:     Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-02-10 13:43:01 +0000

    lang/intercal: update to 0.32
    
     - move WWW to new home
     - obey CC, even at runtime
    
    Changelog: https://gitlab.com/esr/intercal/-/blob/master/NEWS
---
 lang/intercal/Makefile                         | 13 +++++--------
 lang/intercal/distinfo                         |  6 +++---
 lang/intercal/files/patch-buildaux_Makefile.am | 20 ++++++++++++++++++++
 lang/intercal/files/patch-src_perpet.c         | 11 -----------
 4 files changed, 28 insertions(+), 22 deletions(-)

diff --git a/lang/intercal/Makefile b/lang/intercal/Makefile
index 60615b7bad31..091860057d65 100644
--- a/lang/intercal/Makefile
+++ b/lang/intercal/Makefile
@@ -1,23 +1,20 @@
 PORTNAME=	intercal
-PORTVERSION=	0.31
+PORTVERSION=	0.32
 CATEGORIES=	lang
 MASTER_SITES=	http://www.catb.org/~esr/intercal/
 
 MAINTAINER=	fuz@FreeBSD.org
 COMMENT=	C-INTERCAL compiler, ick, and supporting libraries
-WWW=		http://www.catb.org/~esr/intercal/
+WWW=		https://gitlab.com/esr/intercal
 
 LICENSE=	GPLv2
 
-USES=		gmake
+USES=		autoreconf gmake
 GNU_CONFIGURE=	yes
-CFLAGS+=	-D_POSIX_C_SOURCE=200809L
+CPPFLAGS+=	-DCC='\"${CC}\"'
 DATADIR=	${PREFIX}/share/ick
 
 INFO=		ick
-
-post-patch:
-	@${REINPLACE_CMD} -e '/ICK_SPECIFIC_SUBDIR/s/-@PACKAGE_VERSION@// ' \
-		${WRKSRC}/buildaux/Makefile.in
+TEST_TARGET=	check
 
 .include <bsd.port.mk>
diff --git a/lang/intercal/distinfo b/lang/intercal/distinfo
index edd523384e98..f020377481e8 100644
--- a/lang/intercal/distinfo
+++ b/lang/intercal/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1611593892
-SHA256 (intercal-0.31.tar.gz) = 93d842b81ecdc82b352beb463fbf688749b0c04445388a999667e1958bba4ffc
-SIZE (intercal-0.31.tar.gz) = 940950
+TIMESTAMP = 1707470595
+SHA256 (intercal-0.32.tar.gz) = a3c1e0a7ac591f78b7f5af42fdc6ae7d2a02981b7862c0320d3537beb54dfd78
+SIZE (intercal-0.32.tar.gz) = 960879
diff --git a/lang/intercal/files/patch-buildaux_Makefile.am b/lang/intercal/files/patch-buildaux_Makefile.am
new file mode 100644
index 000000000000..c1df2529db10
--- /dev/null
+++ b/lang/intercal/files/patch-buildaux_Makefile.am
@@ -0,0 +1,20 @@
+--- buildaux/Makefile.am.orig	2024-02-08 13:40:49 UTC
++++ buildaux/Makefile.am
+@@ -1,15 +1,14 @@
+ # SPDX-FileCopyrightText: (C) Eric S. Raymond <esr@thyrsus.com>
+ # SPDX-License-Identifier: GPL-2.0-or-later
+ 
+-ICK_SPECIFIC_SUBDIR = ick-@PACKAGE_VERSION@
++ICK_SPECIFIC_SUBDIR = ick
+ ickincludedir = $(includedir)/$(ICK_SPECIFIC_SUBDIR)
+ ickdatadir = $(datadir)/$(ICK_SPECIFIC_SUBDIR)
+ 
+ AM_CFLAGS = '-DICKINCLUDEDIR="$(ickincludedir)"' \
+             '-DICKDATADIR="$(ickdatadir)"' \
+             '-DICKBINDIR="$(bindir)"' '-DICKLIBDIR="$(libdir)"' \
+-            -DYYDEBUG -DICK_HAVE_STDINT_H=@HAVE_STDINT_H@ \
+-	    -fno-toplevel-reorder
++            -DYYDEBUG -DICK_HAVE_STDINT_H=@HAVE_STDINT_H@
+ AM_CPPFLAGS = -I$(srcdir)/src
+ 
+ bin_PROGRAMS = ick convickt
diff --git a/lang/intercal/files/patch-src_perpet.c b/lang/intercal/files/patch-src_perpet.c
deleted file mode 100644
index de41370203db..000000000000
--- a/lang/intercal/files/patch-src_perpet.c
+++ /dev/null
@@ -1,11 +0,0 @@
---- src/perpet.c.orig	2015-04-02 06:04:02 UTC
-+++ src/perpet.c
-@@ -85,7 +85,7 @@ extern void yyrestart(FILE*);
- /* function created by yacc */
- extern int yyparse(void);
- 
--int yydebug;
-+extern int yydebug;
- 
- /* compilation options */
- bool compile_only; 	/* just compile into C, don't run the linker */