diff options
| author | Hiroki Tagato <tagattie@FreeBSD.org> | 2025-06-05 12:00:19 +0000 |
|---|---|---|
| committer | Hiroki Tagato <tagattie@FreeBSD.org> | 2025-06-05 12:19:35 +0000 |
| commit | 9a6f2e14ec7df7186e544030aea78e7fc0a605c9 (patch) | |
| tree | a566a699121e3d5d4bff9bc5ed1b147b56d5979c | |
| parent | dc09508eb21762cf08108e40f459de09659c7539 (diff) | |
devel/libunicode-contour: add port: Modern C++20 Unicode library
The goal of this library is to bring painless unicode support to C++
with simple and easy to understand APIs. The API naming conventions
are chosen to look familiar to those using the C++ standard libary.
WWW: https://github.com/contour-terminal/libunicode
| -rw-r--r-- | devel/Makefile | 1 | ||||
| -rw-r--r-- | devel/libunicode-contour/Makefile | 38 | ||||
| -rw-r--r-- | devel/libunicode-contour/distinfo | 3 | ||||
| -rw-r--r-- | devel/libunicode-contour/pkg-descr | 3 | ||||
| -rw-r--r-- | devel/libunicode-contour/pkg-plist | 35 |
5 files changed, 80 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index b07cc448a7d7..d044beb12556 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1488,6 +1488,7 @@ SUBDIR += libuiohook SUBDIR += libukcprog SUBDIR += libunicode + SUBDIR += libunicode-contour SUBDIR += libuninum SUBDIR += libunistring SUBDIR += libunit diff --git a/devel/libunicode-contour/Makefile b/devel/libunicode-contour/Makefile new file mode 100644 index 000000000000..7838bbc1e031 --- /dev/null +++ b/devel/libunicode-contour/Makefile @@ -0,0 +1,38 @@ +PORTNAME= libunicode +DISTVERSIONPREFIX= v +DISTVERSION= 0.6.0 +CATEGORIES= devel +PKGNAMESUFFIX= -contour + +MAINTAINER= tagattie@FreeBSD.org +COMMENT= Modern C++20 Unicode library +WWW= https://github.com/contour-terminal/libunicode + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${LOCALBASE}/lib/cmake/Catch2/Catch2Config.cmake:devel/catch2 \ + UCD>=16.0.0,1:textproc/UCD + +USES= cmake:testing + +USE_GITHUB= yes +GH_ACCOUNT= contour-terminal + +USE_LDCONFIG= yes + +CMAKE_ARGS= -DLIBUNICODE_UCD_DIR:STRING=${LOCALBASE}/share/unicode/ucd \ + ${CMAKE_ARGS_${ARCH}} +CMAKE_ARGS_i386= -DLIBUNICODE_SIMD_IMPLEMENTATION:STRING=std + +CONFLICTS_INSTALL= libunicode + +PORTDOCS= README.md TODO.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} + +.include <bsd.port.mk> diff --git a/devel/libunicode-contour/distinfo b/devel/libunicode-contour/distinfo new file mode 100644 index 000000000000..d0af254b4023 --- /dev/null +++ b/devel/libunicode-contour/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1748784770 +SHA256 (contour-terminal-libunicode-v0.6.0_GH0.tar.gz) = 0c217f8264000f1b8c36e78969cb9cf91ac97de937cc141ab78e6b1ad7f404ef +SIZE (contour-terminal-libunicode-v0.6.0_GH0.tar.gz) = 92750 diff --git a/devel/libunicode-contour/pkg-descr b/devel/libunicode-contour/pkg-descr new file mode 100644 index 000000000000..643f6912ad33 --- /dev/null +++ b/devel/libunicode-contour/pkg-descr @@ -0,0 +1,3 @@ +The goal of this library is to bring painless unicode support to C++ +with simple and easy to understand APIs. The API naming conventions +are chosen to look familiar to those using the C++ standard libary. diff --git a/devel/libunicode-contour/pkg-plist b/devel/libunicode-contour/pkg-plist new file mode 100644 index 000000000000..e7237ec8f7af --- /dev/null +++ b/devel/libunicode-contour/pkg-plist @@ -0,0 +1,35 @@ +bin/unicode-query +include/libunicode/capi.h +include/libunicode/codepoint_properties.h +include/libunicode/convert.h +include/libunicode/emoji_segmenter.h +include/libunicode/grapheme_segmenter.h +include/libunicode/intrinsics.h +include/libunicode/multistage_table_generator.h +include/libunicode/multistage_table_view.h +include/libunicode/run_segmenter.h +include/libunicode/scan.h +include/libunicode/scoped_timer.h +include/libunicode/script_segmenter.h +include/libunicode/support.h +include/libunicode/ucd.h +include/libunicode/ucd_enums.h +include/libunicode/ucd_fmt.h +include/libunicode/ucd_ostream.h +include/libunicode/utf8.h +include/libunicode/utf8_grapheme_segmenter.h +include/libunicode/width.h +include/libunicode/word_segmenter.h +lib/cmake/libunicode/libunicode-config-version.cmake +lib/cmake/libunicode/libunicode-config.cmake +lib/cmake/libunicode/libunicode-targets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/libunicode/libunicode-targets.cmake +lib/libunicode.so +lib/libunicode.so.0.6 +lib/libunicode.so.0.6.0 +lib/libunicode_loader.so +lib/libunicode_loader.so.0.6 +lib/libunicode_loader.so.0.6.0 +lib/libunicode_ucd.so +lib/libunicode_ucd.so.0.6 +lib/libunicode_ucd.so.0.6.0 |
