git: 354e3aa7f8f7 - main - devel/utf8cpp3: Add utf8cpp3 3.2.5 (copied from utf8cpp)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 14 Nov 2023 17:17:43 UTC
The branch main has been updated by sunpoet:

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

commit 354e3aa7f8f790874b00956cd8e4c704a162e16d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-11-14 16:28:08 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-11-14 17:15:29 +0000

    devel/utf8cpp3: Add utf8cpp3 3.2.5 (copied from utf8cpp)
    
    - Add PORTSCOUT
---
 devel/Makefile                            |  1 +
 devel/utf8cpp3/Makefile                   | 27 +++++++++++++++++++++++++++
 devel/utf8cpp3/distinfo                   |  3 +++
 devel/utf8cpp3/files/patch-CMakeLists.txt | 11 +++++++++++
 devel/utf8cpp3/pkg-descr                  | 16 ++++++++++++++++
 devel/utf8cpp3/pkg-plist                  |  9 +++++++++
 6 files changed, 67 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 0baabcf85a47..c04e5c15aca9 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7777,6 +7777,7 @@
     SUBDIR += upslug
     SUBDIR += urjtag
     SUBDIR += utf8cpp
+    SUBDIR += utf8cpp3
     SUBDIR += uthash
     SUBDIR += util-linux
     SUBDIR += valgrind
diff --git a/devel/utf8cpp3/Makefile b/devel/utf8cpp3/Makefile
new file mode 100644
index 000000000000..5792fad63330
--- /dev/null
+++ b/devel/utf8cpp3/Makefile
@@ -0,0 +1,27 @@
+PORTNAME=	utf8cpp
+PORTVERSION=	3.2.5
+DISTVERSIONPREFIX=	v
+CATEGORIES=	devel
+PKGNAMESUFFIX=	3
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Simple, portable, lightweight library for handling UTF-8 strings
+WWW=		https://github.com/nemtrif/utfcpp
+
+LICENSE=	BSL
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		cmake
+
+CMAKE_ON=	UTF8_INSTALL
+CMAKE_OFF=	UTF8_SAMPLES UTF8_TESTS
+
+NO_ARCH=	yes
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	nemtrif
+GH_PROJECT=	utfcpp
+
+PORTSCOUT=	limit:^3\.
+
+.include <bsd.port.mk>
diff --git a/devel/utf8cpp3/distinfo b/devel/utf8cpp3/distinfo
new file mode 100644
index 000000000000..084ee6037f26
--- /dev/null
+++ b/devel/utf8cpp3/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1696001272
+SHA256 (nemtrif-utfcpp-v3.2.5_GH0.tar.gz) = 14fd1b3c466814cb4c40771b7f207b61d2c7a0aa6a5e620ca05c00df27f25afd
+SIZE (nemtrif-utfcpp-v3.2.5_GH0.tar.gz) = 28865
diff --git a/devel/utf8cpp3/files/patch-CMakeLists.txt b/devel/utf8cpp3/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..2a90a140552a
--- /dev/null
+++ b/devel/utf8cpp3/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig	2020-09-27 18:26:57 UTC
++++ CMakeLists.txt
+@@ -36,7 +36,7 @@ if(UTF8_SAMPLES)
+     target_link_libraries(docsample PRIVATE utf8::cpp)
+ endif()
+ 
+-if(UTF8_TESTS)
++if(0)
+     enable_testing()
+     add_subdirectory(extern/gtest)
+     add_subdirectory(tests)
diff --git a/devel/utf8cpp3/pkg-descr b/devel/utf8cpp3/pkg-descr
new file mode 100644
index 000000000000..d24a3ee84462
--- /dev/null
+++ b/devel/utf8cpp3/pkg-descr
@@ -0,0 +1,16 @@
+C++ developers miss an easy and portable way of handling Unicode encoded
+strings. The original C++ Standard (known as C++98 or C++03) is Unicode
+agnostic. C++11 provides some support for Unicode on core language and library
+level: u8, u, and U character and string literals, char16_t and char32_t
+character types, u16string and u32string library classes, and codecvt support
+for conversions between Unicode encoding forms. In the meantime, developers use
+third party libraries like ICU, OS specific capabilities, or simply roll out
+their own solutions.
+
+In order to easily handle UTF-8 encoded Unicode strings, I came up with a small,
+C++98 compatible generic library. For anybody used to work with STL algorithms
+and iterators, it should be easy and natural to use. The code is freely
+available for any purpose - check out the license. The library has been used a
+lot in the past ten years both in commercial and open-source projects and is
+considered feature-complete now. If you run into bugs or performance issues,
+please let me know and I'll do my best to address them.
diff --git a/devel/utf8cpp3/pkg-plist b/devel/utf8cpp3/pkg-plist
new file mode 100644
index 000000000000..d3e1e958a5d5
--- /dev/null
+++ b/devel/utf8cpp3/pkg-plist
@@ -0,0 +1,9 @@
+include/utf8cpp/utf8.h
+include/utf8cpp/utf8/checked.h
+include/utf8cpp/utf8/core.h
+include/utf8cpp/utf8/cpp11.h
+include/utf8cpp/utf8/cpp17.h
+include/utf8cpp/utf8/unchecked.h
+lib/cmake/utf8cpp/utf8cppConfig.cmake
+lib/cmake/utf8cpp/utf8cppConfigVersion.cmake
+lib/cmake/utf8cpp/utf8cppTargets.cmake