Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/textproc textproc: Add uchardet



details:   https://anonhg.NetBSD.org/pkgsrc/rev/30c560510018
branches:  trunk
changeset: 433991:30c560510018
user:      nia <nia%pkgsrc.org@localhost>
date:      Tue Jun 09 13:53:00 2020 +0000

description:
textproc: Add uchardet

uchardet is an encoding detector library, which takes a sequence of bytes
in an unknown character encoding without any additional information, and
attempts to determine the encoding of the text. Returned encoding names are
iconv-compatible.

uchardet started as a C language binding of the original C++ implementation
of the universal charset detection library by Mozilla. It can now detect
more charsets, and more reliably than the original implementation.

diffstat:

 textproc/Makefile               |   3 ++-
 textproc/uchardet/DESCR         |   8 ++++++++
 textproc/uchardet/Makefile      |  23 +++++++++++++++++++++++
 textproc/uchardet/PLIST         |   9 +++++++++
 textproc/uchardet/buildlink3.mk |  12 ++++++++++++
 textproc/uchardet/distinfo      |   6 ++++++
 6 files changed, 60 insertions(+), 1 deletions(-)

diffs (95 lines):

diff -r 114555d0fd83 -r 30c560510018 textproc/Makefile
--- a/textproc/Makefile Tue Jun 09 13:34:43 2020 +0000
+++ b/textproc/Makefile Tue Jun 09 13:53:00 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1144 2020/06/05 22:09:29 sjmulder Exp $
+# $NetBSD: Makefile,v 1.1145 2020/06/09 13:53:00 nia Exp $
 #
 
 COMMENT=       Text processing utilities (does not include desktop publishing)
@@ -1121,6 +1121,7 @@
 SUBDIR+=       translate-shell
 SUBDIR+=       translate-toolkit
 SUBDIR+=       troffcvt
+SUBDIR+=       uchardet
 SUBDIR+=       unac
 SUBDIR+=       uncrustify
 SUBDIR+=       uni2ascii
diff -r 114555d0fd83 -r 30c560510018 textproc/uchardet/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/uchardet/DESCR   Tue Jun 09 13:53:00 2020 +0000
@@ -0,0 +1,8 @@
+uchardet is an encoding detector library, which takes a sequence of bytes
+in an unknown character encoding without any additional information, and
+attempts to determine the encoding of the text. Returned encoding names are
+iconv-compatible.
+
+uchardet started as a C language binding of the original C++ implementation
+of the universal charset detection library by Mozilla. It can now detect
+more charsets, and more reliably than the original implementation.
diff -r 114555d0fd83 -r 30c560510018 textproc/uchardet/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/uchardet/Makefile        Tue Jun 09 13:53:00 2020 +0000
@@ -0,0 +1,23 @@
+# $NetBSD: Makefile,v 1.1 2020/06/09 13:53:00 nia Exp $
+
+DISTNAME=      uchardet-0.0.7
+CATEGORIES=    textproc
+MASTER_SITES=  https://www.freedesktop.org/software/uchardet/releases/
+EXTRACT_SUFX=  .tar.xz
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://www.freedesktop.org/wiki/Software/uchardet/
+COMMENT=       Encoding detector library ported from Mozilla
+LICENSE=       mpl-1.1
+
+USE_CMAKE=     yes
+USE_LANGUAGES= c c++
+
+TEST_TARGET=   test
+
+# C++11
+GCC_REQD+=     4.7
+
+PKGCONFIG_OVERRIDE+=   uchardet.pc.in
+
+.include "../../mk/bsd.pkg.mk"
diff -r 114555d0fd83 -r 30c560510018 textproc/uchardet/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/uchardet/PLIST   Tue Jun 09 13:53:00 2020 +0000
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1 2020/06/09 13:53:00 nia Exp $
+bin/uchardet
+include/uchardet/uchardet.h
+lib/libuchardet.a
+lib/libuchardet.so
+lib/libuchardet.so.0
+lib/libuchardet.so.${PKGVERSION}
+lib/pkgconfig/uchardet.pc
+man/man1/uchardet.1
diff -r 114555d0fd83 -r 30c560510018 textproc/uchardet/buildlink3.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/uchardet/buildlink3.mk   Tue Jun 09 13:53:00 2020 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2020/06/09 13:53:00 nia Exp $
+
+BUILDLINK_TREE+=       uchardet
+
+.if !defined(UCHARDET_BUILDLINK3_MK)
+UCHARDET_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.uchardet+=       uchardet>=0.0.7
+BUILDLINK_PKGSRCDIR.uchardet?=         ../../textproc/uchardet
+.endif # UCHARDET_BUILDLINK3_MK
+
+BUILDLINK_TREE+=       -uchardet
diff -r 114555d0fd83 -r 30c560510018 textproc/uchardet/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/textproc/uchardet/distinfo        Tue Jun 09 13:53:00 2020 +0000
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2020/06/09 13:53:00 nia Exp $
+
+SHA1 (uchardet-0.0.7.tar.xz) = de19b7e614f11572582a0d47f7d5d6f8ec649199
+RMD160 (uchardet-0.0.7.tar.xz) = 7494fefb099cb151ce1cabb7228a78c80f7be911
+SHA512 (uchardet-0.0.7.tar.xz) = ddb7b63dd09c1d9acbe620d86217e583d9aa5340780ab4010ec9faa4fd331498859d5efa7829bf8847da89325accf8f7304b51d410210178fc1ffa6658064a6f
+Size (uchardet-0.0.7.tar.xz) = 215492 bytes



Home | Main Index | Thread Index | Old Index