git: 716b4773afee - main - textproc/lttoolbox: Fix build with llvm16

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sat, 24 Jun 2023 04:38:10 UTC
The branch main has been updated by bofh:

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

commit 716b4773afee57ad52cc66f4c12411fee61c931e
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-24 04:35:50 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-24 04:37:53 +0000

    textproc/lttoolbox: Fix build with llvm16
    
    - Add LICENSE_FILE
    - Use upstream release archive [1]
    
    PR:             267591 [1]
    Reported by:    diizzy [1]
    Sponsored by:   The FreeBSD Foundation
---
 textproc/lttoolbox/Makefile                 | 15 ++++++++++-----
 textproc/lttoolbox/distinfo                 |  6 +++---
 textproc/lttoolbox/files/extra-patch-llvm16 | 10 ++++++++++
 3 files changed, 23 insertions(+), 8 deletions(-)

diff --git a/textproc/lttoolbox/Makefile b/textproc/lttoolbox/Makefile
index b2e9a6b96fb4..f4cc9306869d 100644
--- a/textproc/lttoolbox/Makefile
+++ b/textproc/lttoolbox/Makefile
@@ -1,22 +1,21 @@
 PORTNAME=	lttoolbox
-PORTVERSION=	3.7.1
-DISTVERSIONPREFIX=	v
+DISTVERSION=	3.7.1
 PORTREVISION=	1
 CATEGORIES=	textproc
+MASTER_SITES=	https://github.com/apertium/${PORTNAME}/releases/download/v${DISTVERSION}/
 
 MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Tool for lexical, morphological analysis and generation of words
 WWW=		https://wiki.apertium.org/wiki/Lttoolbox
 
 LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
 
 BUILD_DEPENDS=	utf8cpp>0:devel/utf8cpp
 LIB_DEPENDS=	libicuio.so:devel/icu \
 		libxml2.so:textproc/libxml2
 
-USES=		autoreconf compiler:c++14-lang libtool pathfix pkgconfig
-USE_GITHUB=	yes
-GH_ACCOUNT=	apertium
+USES=		autoreconf compiler:c++14-lang libtool pathfix pkgconfig tar:bz2
 USE_LDCONFIG=	yes
 
 GNU_CONFIGURE=	yes
@@ -26,4 +25,10 @@ INSTALL_TARGET=	install-strip
 CFLAGS+=	-I${LOCALBASE}/include/utf8cpp
 LDFLAGS+=	-lpthread
 
+.include <bsd.port.options.mk>
+
+.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400091
+EXTRA_PATCHES=	${FILESDIR}/extra-patch-llvm16
+.endif
+
 .include <bsd.port.mk>
diff --git a/textproc/lttoolbox/distinfo b/textproc/lttoolbox/distinfo
index 7d021e8e12dd..cc084105e8f0 100644
--- a/textproc/lttoolbox/distinfo
+++ b/textproc/lttoolbox/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1667647908
-SHA256 (apertium-lttoolbox-v3.7.1_GH0.tar.gz) = 3ad20ca4c1d15522623062c77a0966ea4d81fc2c44045d96fa86eb79c7325bf1
-SIZE (apertium-lttoolbox-v3.7.1_GH0.tar.gz) = 213791
+TIMESTAMP = 1687577649
+SHA256 (lttoolbox-3.7.1.tar.bz2) = 8157a6ec15c17c5e8a22e03fca036f5563a97926d5071c53e81b4c3c7cb7a3e3
+SIZE (lttoolbox-3.7.1.tar.bz2) = 174427
diff --git a/textproc/lttoolbox/files/extra-patch-llvm16 b/textproc/lttoolbox/files/extra-patch-llvm16
new file mode 100644
index 000000000000..28aae7c9810b
--- /dev/null
+++ b/textproc/lttoolbox/files/extra-patch-llvm16
@@ -0,0 +1,10 @@
+--- lttoolbox/sorted_vector.hpp.orig	2023-06-24 03:28:58 UTC
++++ lttoolbox/sorted_vector.hpp
+@@ -22,6 +22,7 @@
+ #include <vector>
+ #include <algorithm>
+ #include <functional>
++#include <iterator>
+ 
+ namespace detail {
+ 	template<typename ForwardIt, typename Comp>