git: 871b2eeb5fa7 - main - devel/libtecla: Unbreak on HEAD

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 30 Apr 2023 18:35:53 UTC
The branch main has been updated by bofh:

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

commit 871b2eeb5fa7d78360b9f5989646fed73fee0de2
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-04-30 15:42:56 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-04-30 18:33:29 +0000

    devel/libtecla: Unbreak on HEAD
    
    - Refreshes patches
    - Pet portclippy
    
    Approved by:    portmgr (blanket)
---
 devel/libtecla/Makefile              | 22 ++++++++++++++++------
 devel/libtecla/files/patch-demo3.c   |  4 ++--
 devel/libtecla/files/patch-getline.c |  6 +++---
 3 files changed, 21 insertions(+), 11 deletions(-)

diff --git a/devel/libtecla/Makefile b/devel/libtecla/Makefile
index 4b3d87a9efb7..b4e39cb06772 100644
--- a/devel/libtecla/Makefile
+++ b/devel/libtecla/Makefile
@@ -9,14 +9,24 @@ WWW=		https://www.astro.caltech.edu/~mcs/tecla/
 
 LICENSE=	MIT
 
-WRKSRC=		${WRKDIR}/${PORTNAME}
-GNU_CONFIGURE=	yes
-USE_SUBMAKE=	yes
-ALL_TARGET=	default
 USE_LDCONFIG=	yes
+USE_SUBMAKE=	yes
+
+GNU_CONFIGURE=	yes
+
 MAKE_JOBS_UNSAFE=	yes
-SSP_UNSAFE=	yes
+ALL_TARGET=	default
+
 LLD_UNSAFE=	yes
+SSP_UNSAFE=	yes
+
+WRKSRC=		${WRKDIR}/${PORTNAME}
+
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400079
+CFLAGS+=       -Wno-error=int-conversion
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e 's,^OPT = -O,OPT =,' \
@@ -47,4 +57,4 @@ do-install:
 		${INSTALL_MAN} $${n%.in} ${STAGEDIR}${PREFIX}/man/man7/$${d%.in}.7; \
 	done
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/devel/libtecla/files/patch-demo3.c b/devel/libtecla/files/patch-demo3.c
index f569deb50d0a..343b70af7613 100644
--- a/devel/libtecla/files/patch-demo3.c
+++ b/devel/libtecla/files/patch-demo3.c
@@ -1,5 +1,5 @@
---- demo3.c.orig	Sat Aug 12 19:31:16 2006
-+++ demo3.c	Sat Aug 12 19:31:29 2006
+--- demo3.c.orig	2012-06-12 02:35:49 UTC
++++ demo3.c
 @@ -37,17 +37,17 @@
  #include <locale.h>
  #include <setjmp.h>
diff --git a/devel/libtecla/files/patch-getline.c b/devel/libtecla/files/patch-getline.c
index bb05e2e739ea..ce184e392ef4 100644
--- a/devel/libtecla/files/patch-getline.c
+++ b/devel/libtecla/files/patch-getline.c
@@ -1,6 +1,6 @@
---- getline.c.orig	Sun Jul 18 13:44:44 2004
-+++ getline.c	Sun Jul 18 13:44:49 2004
-@@ -9045,8 +9045,8 @@
+--- getline.c.orig	2013-09-12 07:04:00 UTC
++++ getline.c
+@@ -9062,8 +9062,8 @@ static int gl_event_handler(GetLine *gl, int fd)
        return 1;
    };
    return 0;