pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
utfcpp: import of 4.1.1
Module Name: pkgsrc-wip
Committed By: Bartosz Kuzma <bartosz.kuzma%gmail.com@localhost>
Pushed By: bartosz.kuzma
Date: Tue Jul 21 05:16:48 2026 +0200
Changeset: 8244d1ddb92fca786a878fa72c6dd1e1f14e1fae
Modified Files:
Makefile
Added Files:
utfcpp/DESCR
utfcpp/Makefile
utfcpp/PLIST
utfcpp/buildlink3.mk
utfcpp/distinfo
utfcpp/patches/patch-CMakeLists.txt
utfcpp/patches/patch-utf8cppConfig.cmake.in
Log Message:
utfcpp: import of 4.1.1
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=8244d1ddb92fca786a878fa72c6dd1e1f14e1fae
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
utfcpp/DESCR | 9 +++++++++
utfcpp/Makefile | 18 ++++++++++++++++++
utfcpp/PLIST | 11 +++++++++++
utfcpp/buildlink3.mk | 13 +++++++++++++
utfcpp/distinfo | 7 +++++++
utfcpp/patches/patch-CMakeLists.txt | 27 +++++++++++++++++++++++++++
utfcpp/patches/patch-utf8cppConfig.cmake.in | 13 +++++++++++++
8 files changed, 99 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index 69d330f257..4159b024bc 100644
--- a/Makefile
+++ b/Makefile
@@ -5960,6 +5960,7 @@ SUBDIR+= uschedule
SUBDIR+= using-mpi
SUBDIR+= usrsctp
SUBDIR+= ussp-push
+SUBDIR+= utfcpp
SUBDIR+= util-linux
SUBDIR+= uzbl
SUBDIR+= uzbl-git
diff --git a/utfcpp/DESCR b/utfcpp/DESCR
new file mode 100644
index 0000000000..ba258999ea
--- /dev/null
+++ b/utfcpp/DESCR
@@ -0,0 +1,9 @@
+C++ developers still 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. Some progress has been made in the later editions
+of the standard, but it is still hard to work with Unicode using only
+the standard facilities.
+
+UTF8-CPP came up with a small, C++98 compatible generic library in order
+to handle UTF-8 encoded strings. For anybody used to work with STL
+algorithms and iterators, it should be easy and natural to use.
diff --git a/utfcpp/Makefile b/utfcpp/Makefile
new file mode 100644
index 0000000000..75bb1de468
--- /dev/null
+++ b/utfcpp/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD$
+
+DISTNAME= utfcpp-4.1.1
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=nemtrif/}
+GITHUB_TAG= refs/tags/v${PKGVERSION_NOREV}
+
+MAINTAINER= bartosz.kuzma%gmail.com@localhost
+HOMEPAGE= https://github.com/nemtrif/utfcpp/
+COMMENT= UTF-8 with C++ in a Portable Way
+LICENSE= boost-license
+
+WRKSRC= ${WRKDIR}/${DISTNAME}
+
+USE_LANGUAGES= c++
+
+.include "../../devel/cmake/build.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/utfcpp/PLIST b/utfcpp/PLIST
new file mode 100644
index 0000000000..4a31f97f12
--- /dev/null
+++ b/utfcpp/PLIST
@@ -0,0 +1,11 @@
+@comment $NetBSD$
+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/cpp20.h
+include/utf8cpp/utf8/unchecked.h
+lib/cmake/utf8cpp/utf8cppConfig.cmake
+lib/cmake/utf8cpp/utf8cppConfigVersion.cmake
+lib/cmake/utf8cpp/utf8cppTargets.cmake
diff --git a/utfcpp/buildlink3.mk b/utfcpp/buildlink3.mk
new file mode 100644
index 0000000000..71e874d41b
--- /dev/null
+++ b/utfcpp/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+= utfcpp
+
+.if !defined(UTFCPP_BUILDLINK3_MK)
+UTFCPP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.utfcpp+= utfcpp>=4.1.1
+BUILDLINK_PKGSRCDIR.utfcpp?= ../../wip/utfcpp
+
+.endif # UTFCPP_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -utfcpp
diff --git a/utfcpp/distinfo b/utfcpp/distinfo
new file mode 100644
index 0000000000..35cf06477e
--- /dev/null
+++ b/utfcpp/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (utfcpp-4.1.1.tar.gz) = da996c44b4e0e00a6a00662131a1657b253909b151d2ec773aca333aedc37ffb
+SHA512 (utfcpp-4.1.1.tar.gz) = 72061902812b3f5b27afb32c513fc337db4149b8a6e51cbfe497109f88145751484093990bb1b20b4eec2b9f621406690030401b2a51c9368eb481f00225cd24
+Size (utfcpp-4.1.1.tar.gz) = 36846 bytes
+SHA1 (patch-CMakeLists.txt) = d09272e9f041fe822b2ce7291f3be091486f7ed2
+SHA1 (patch-utf8cppConfig.cmake.in) = 95907ef74ce111c87c19d44d44dc0b5c8e0896c3
diff --git a/utfcpp/patches/patch-CMakeLists.txt b/utfcpp/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..cb108b4621
--- /dev/null
+++ b/utfcpp/patches/patch-CMakeLists.txt
@@ -0,0 +1,27 @@
+$NetBSD$
+
+Fix installation dirs
+
+--- CMakeLists.txt.orig 2026-05-20 21:59:05.000000000 +0000
++++ CMakeLists.txt
+@@ -33,17 +33,17 @@ install(TARGETS ${PROJECT_NAME}
+ configure_package_config_file(
+ "${PROJECT_SOURCE_DIR}/${PROJECT_NAME}Config.cmake.in"
+ "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
+- INSTALL_DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake
++ INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}
+ )
+
+ install(EXPORT ${PROJECT_NAME}Targets
+ FILE ${PROJECT_NAME}Targets.cmake
+ NAMESPACE ${PROJECT_NAME}::
+- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
+
+ install(FILES "${PROJECT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
+ "${PROJECT_BINARY_DIR}/${PROJECT_NAME}ConfigVersion.cmake"
+- DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/${PROJECT_NAME}/cmake)
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME})
+
+ install(FILES ${PROJECT_SOURCE_DIR}/source/utf8.h DESTINATION include/utf8cpp)
+ install(DIRECTORY ${PROJECT_SOURCE_DIR}/source/utf8 DESTINATION
diff --git a/utfcpp/patches/patch-utf8cppConfig.cmake.in b/utfcpp/patches/patch-utf8cppConfig.cmake.in
new file mode 100644
index 0000000000..1db2f8daf4
--- /dev/null
+++ b/utfcpp/patches/patch-utf8cppConfig.cmake.in
@@ -0,0 +1,13 @@
+$NetBSD$
+
+utf8cpp is only headers
+
+--- utf8cppConfig.cmake.in.orig 2026-07-20 06:22:22.652287349 +0000
++++ utf8cppConfig.cmake.in
+@@ -3,6 +3,3 @@
+ include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@Targets.cmake")
+ check_required_components("@PROJECT_NAME@")
+
+-if(NOT TARGET utf8::cpp)
+- add_library(utf8::cpp ALIAS utf8cpp::utf8cpp)
+-endif()
Home |
Main Index |
Thread Index |
Old Index