pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/textproc
Module Name: pkgsrc
Committed By: prlw1
Date: Tue May 4 14:24:33 UTC 2021
Modified Files:
pkgsrc/textproc: Makefile
Added Files:
pkgsrc/textproc/utf8-cpp: DESCR Makefile PLIST buildlink3.mk distinfo
Log Message:
Add utf8-cpp 2.3.4
UTF8-CPP: UTF-8 with C++ in a Portable Way
Many 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 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 at the beginning of
the utf8.h file. If you run into bugs or performance issues, please let
me know and I'll do my best to address them.
To generate a diff of this commit:
cvs rdiff -u -r1.1222 -r1.1223 pkgsrc/textproc/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/textproc/utf8-cpp/DESCR \
pkgsrc/textproc/utf8-cpp/Makefile pkgsrc/textproc/utf8-cpp/PLIST \
pkgsrc/textproc/utf8-cpp/buildlink3.mk pkgsrc/textproc/utf8-cpp/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/textproc/Makefile
diff -u pkgsrc/textproc/Makefile:1.1222 pkgsrc/textproc/Makefile:1.1223
--- pkgsrc/textproc/Makefile:1.1222 Tue May 4 14:19:51 2021
+++ pkgsrc/textproc/Makefile Tue May 4 14:24:33 2021
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1222 2021/05/04 14:19:51 prlw1 Exp $
+# $NetBSD: Makefile,v 1.1223 2021/05/04 14:24:33 prlw1 Exp $
#
COMMENT= Text processing utilities (does not include desktop publishing)
@@ -1188,6 +1188,7 @@ SUBDIR+= untex
SUBDIR+= upmendex
SUBDIR+= uriparser
SUBDIR+= urlview
+SUBDIR+= utf8-cpp
SUBDIR+= verify-synopsis
SUBDIR+= vis
SUBDIR+= wbxml2
Added files:
Index: pkgsrc/textproc/utf8-cpp/DESCR
diff -u /dev/null pkgsrc/textproc/utf8-cpp/DESCR:1.1
--- /dev/null Tue May 4 14:24:33 2021
+++ pkgsrc/textproc/utf8-cpp/DESCR Tue May 4 14:24:33 2021
@@ -0,0 +1,17 @@
+UTF8-CPP: UTF-8 with C++ in a Portable Way
+
+Many 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 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 at the beginning of
+the utf8.h file. If you run into bugs or performance issues, please let
+me know and I'll do my best to address them.
Index: pkgsrc/textproc/utf8-cpp/Makefile
diff -u /dev/null pkgsrc/textproc/utf8-cpp/Makefile:1.1
--- /dev/null Tue May 4 14:24:33 2021
+++ pkgsrc/textproc/utf8-cpp/Makefile Tue May 4 14:24:33 2021
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2021/05/04 14:24:33 prlw1 Exp $
+
+DISTNAME= utf8-cpp-2.3.4
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GITHUB:=jjones646/}
+GITHUB_TAG= v2.3.4
+
+MAINTAINER= prlw1%cam.ac.uk@localhost
+HOMEPAGE= https://github.com/jjones646/utf8-cpp/
+COMMENT= UTF-8 header library for C++
+LICENSE= boost-license
+
+USE_LANGUAGES= # none
+
+NO_CONFIGURE= yes
+NO_BUILD= yes
+
+INSTALLATION_DIRS+= include/utf8
+
+do-install:
+ ${INSTALL_DATA} ${WRKSRC}/source/utf8.h ${DESTDIR}${PREFIX}/include
+.for f in checked.h core.h unchecked.h
+ ${INSTALL_DATA} ${WRKSRC}/source/utf8/${f} ${DESTDIR}${PREFIX}/include/utf8
+.endfor
+
+.include "../../mk/bsd.pkg.mk"
Index: pkgsrc/textproc/utf8-cpp/PLIST
diff -u /dev/null pkgsrc/textproc/utf8-cpp/PLIST:1.1
--- /dev/null Tue May 4 14:24:33 2021
+++ pkgsrc/textproc/utf8-cpp/PLIST Tue May 4 14:24:33 2021
@@ -0,0 +1,5 @@
+@comment $NetBSD: PLIST,v 1.1 2021/05/04 14:24:33 prlw1 Exp $
+include/utf8.h
+include/utf8/checked.h
+include/utf8/core.h
+include/utf8/unchecked.h
Index: pkgsrc/textproc/utf8-cpp/buildlink3.mk
diff -u /dev/null pkgsrc/textproc/utf8-cpp/buildlink3.mk:1.1
--- /dev/null Tue May 4 14:24:33 2021
+++ pkgsrc/textproc/utf8-cpp/buildlink3.mk Tue May 4 14:24:33 2021
@@ -0,0 +1,13 @@
+# $NetBSD: buildlink3.mk,v 1.1 2021/05/04 14:24:33 prlw1 Exp $
+
+BUILDLINK_TREE+= utf8-cpp
+
+.if !defined(UTF8_CPP_BUILDLINK3_MK)
+UTF8_CPP_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.utf8-cpp+= utf8-cpp>=2.3.4
+BUILDLINK_PKGSRCDIR.utf8-cpp?= ../../textproc/utf8-cpp
+BUILDLINK_DEPMETHOD.utf8-cpp?= build
+.endif # UTF8_CPP_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -utf8-cpp
Index: pkgsrc/textproc/utf8-cpp/distinfo
diff -u /dev/null pkgsrc/textproc/utf8-cpp/distinfo:1.1
--- /dev/null Tue May 4 14:24:33 2021
+++ pkgsrc/textproc/utf8-cpp/distinfo Tue May 4 14:24:33 2021
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2021/05/04 14:24:33 prlw1 Exp $
+
+SHA1 (utf8-cpp-2.3.4.tar.gz) = 18dcdcbfffffd9f7447b1bc318bacbc370516cfa
+RMD160 (utf8-cpp-2.3.4.tar.gz) = 81fffac81afc989a200eae827135a048237c5c27
+SHA512 (utf8-cpp-2.3.4.tar.gz) = c454513321b22658afe7c2c8fbba3f5d113f230b1f110c6c402f61f7bffa5c51d6442c4783e5d26a5f358c0ee4ee9d7f7fb9573db1c2cd1271ec2ae06666f8c6
+Size (utf8-cpp-2.3.4.tar.gz) = 18083 bytes
Home |
Main Index |
Thread Index |
Old Index