From nobody Tue Nov 14 17:17:43 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4SVCfb3SDxz51YQM; Tue, 14 Nov 2023 17:17:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SVCfb300Cz4R5Q; Tue, 14 Nov 2023 17:17:43 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699982263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SRl720riQ579u8LePjf9b95+MdZneTEqeXNc4J8rO1A=; b=L1kFN1sz37wiSA2fyzSfkC+SL5ON0sibT3M+S91hIhiTPdMLoq1fpDZatNN/5zfdZcfLLa ygvBtMmVHotDsNyP7cuNAl4TXJjJ/6LwJBuf6G/8lmWCh2s85rtqhhA4ILy3dBZKbXP34I lZXuM+7LI27eY7sAYl9jDduSnO7J1Ji2x8A1s3KSbzY8x6hZbyDY7sw4/l/w3NHAEWzPow LAqlWwuK2za8I/j5L7ER1oIpGA0VPolfO0+ONAwByxnXYFUn0cwW9cJMU3ru1ykgDNF4wr eq1EeHNXhUthPsOqjgsy09igbHqUH66QQ4w0bMI9jMS8wNGXr9xte7IBfpXF1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1699982263; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=SRl720riQ579u8LePjf9b95+MdZneTEqeXNc4J8rO1A=; b=sklw3DmQX9bJ0tPkSX+IohCxwWPj7785nNkaeUskN8FxNmgLJey7JfFVi+FZTFYOIuzJ8w GynAvKkZKdsSlTtgBXdWq77WhrIiUgqgTeJCebTPG6BWV+12yj3zL4ESUeYKvuhcz6fDEQ AI5RaQaDZER4rDz6jDcoWa04UpaOyDxdopHJ8bX3z+ZsX2sd0f4QiLjFO86u+9+6DSwufy 7zf8sVwoiqyZd/i7n3jkCqXR7/e8boEajbziv+IGQyM8auxewYuhmSA3aMEVHfIc4Af9/K 1aIZQd8v4PC7NFggdQ2ek0XqA3jbDFxlY+KAMN1dIc4o/N7/2JM/OQuFzmAwcQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1699982263; a=rsa-sha256; cv=none; b=rxzNyt5+z00bVShMN9IvmmIPQCw/3Y+lj5kiTj+TX0pCNvhMqyd7NfgabzUxrVDQgqTkWJ SRqVgtIdHXekzGn/agcW70DO4g6zK+KMAma12CcITkmlqhHuS8YubrZ1+BURN1SiHPadfD QiPndmY+1eR8suyRwecyTs6UrJUpQ5U52v/RUUV2QIcj+UwoWiLoUtZZrJNTTKmCdIy3az ROYveaz1nsr4/HhPsyw9s+eNS9BtXekqja1SCgCVgFJdAQlzZFhaAGL82bnf3lPk7XQD53 Nlzf23z157nys5u/nKMj/6EALpD9ruNUmx14geki489cHMi6QZxFZAOExb8nTw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4SVCfb1mkFzxM8; Tue, 14 Nov 2023 17:17:43 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3AEHHhtI056930; Tue, 14 Nov 2023 17:17:43 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3AEHHhK4056927; Tue, 14 Nov 2023 17:17:43 GMT (envelope-from git) Date: Tue, 14 Nov 2023 17:17:43 GMT Message-Id: <202311141717.3AEHHhK4056927@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 354e3aa7f8f7 - main - devel/utf8cpp3: Add utf8cpp3 3.2.5 (copied from utf8cpp) List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 354e3aa7f8f790874b00956cd8e4c704a162e16d Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=354e3aa7f8f790874b00956cd8e4c704a162e16d commit 354e3aa7f8f790874b00956cd8e4c704a162e16d Author: Po-Chuan Hsieh AuthorDate: 2023-11-14 16:28:08 +0000 Commit: Po-Chuan Hsieh 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 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