pkgsrc-WIP-changes archive

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

converters/utf8proc: Update to 2.5.0



Module Name:	pkgsrc-wip
Committed By:	Michael Baeuerle <micha%NetBSD.org@localhost>
Pushed By:	micha
Date:		Tue May 26 17:58:17 2020 +0200
Changeset:	dbcec08d6ba462cb21dfe95bf1ae7bc467b337fd

Added Files:
	utf8proc/COMMIT_MSG
	utf8proc/DESCR
	utf8proc/Makefile
	utf8proc/PLIST
	utf8proc/buildlink3.mk
	utf8proc/distinfo

Log Message:
converters/utf8proc: Update to 2.5.0

pkgsrc changes:
- Drop cmake
  Drive libtool directly (utf8proc can be build with a single compiler call).
  This removes the C++11 build dependency for cmake (C99 is now sufficient)
  and more build dependencies that at least an order of magnitude larger than
  utf8proc itself.
- Add support for pkgconfig
  Install "libutf8proc.pc"

Upstream changelog for utf8proc 2.5.0 (2020-03-27):
- Unicode 13 support (#179).
- No longer report zero width for category Sk (#167).
- cmake support improvements (#173).

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=dbcec08d6ba462cb21dfe95bf1ae7bc467b337fd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 utf8proc/COMMIT_MSG    | 15 +++++++++++++++
 utf8proc/DESCR         |  3 +++
 utf8proc/Makefile      | 46 ++++++++++++++++++++++++++++++++++++++++++++++
 utf8proc/PLIST         |  4 ++++
 utf8proc/buildlink3.mk | 12 ++++++++++++
 utf8proc/distinfo      |  6 ++++++
 6 files changed, 86 insertions(+)

diffs:
diff --git a/utf8proc/COMMIT_MSG b/utf8proc/COMMIT_MSG
new file mode 100644
index 0000000000..6512643e86
--- /dev/null
+++ b/utf8proc/COMMIT_MSG
@@ -0,0 +1,15 @@
+converters/utf8proc: Update to 2.5.0
+
+pkgsrc changes:
+- Drop cmake
+  Drive libtool directly (utf8proc can be build with a single compiler call).
+  This removes the C++11 build dependency for cmake (C99 is now sufficient)
+  and more build dependencies that at least an order of magnitude larger than
+  utf8proc itself.
+- Add support for pkgconfig
+  Install "libutf8proc.pc"
+
+Upstream changelog for utf8proc 2.5.0 (2020-03-27):
+- Unicode 13 support (#179).
+- No longer report zero width for category Sk (#167).
+- cmake support improvements (#173).
diff --git a/utf8proc/DESCR b/utf8proc/DESCR
new file mode 100644
index 0000000000..1300c4ad75
--- /dev/null
+++ b/utf8proc/DESCR
@@ -0,0 +1,3 @@
+utf8proc is a small, clean C library that provides Unicode
+normalization, case-folding, and other operations for data in the
+UTF-8 encoding, supporting Unicode version 9.0.
diff --git a/utf8proc/Makefile b/utf8proc/Makefile
new file mode 100644
index 0000000000..1cee2f4581
--- /dev/null
+++ b/utf8proc/Makefile
@@ -0,0 +1,46 @@
+# $NetBSD$
+
+DISTNAME=	utf8proc-2.5.0
+CATEGORIES=	converters
+MASTER_SITES=	${MASTER_SITE_GITHUB:=JuliaLang/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	micha%NetBSD.org@localhost
+HOMEPAGE=	https://julialang.org/utf8proc/
+COMMENT=	C library for processing Unicode data
+LICENSE=	mit
+
+USE_LANGUAGES=	c99
+USE_LIBTOOL=	yes
+
+INSTALLATION_DIRS=	include lib lib/pkgconfig
+
+# Use ABI version from CMakeLists.txt to stay compatible with cmake builds
+MAJOR=	2
+MINOR=	3
+PATCH=	2
+
+do-build:
+	cd ${WRKSRC} && ${LIBTOOL} --tag=CC --mode=compile \
+		${CC} ${CPPFLAGS} ${CFLAGS} -c -o utf8proc.lo utf8proc.c
+	cd ${WRKSRC} && ${LIBTOOL} --tag=CC --mode=link \
+		${CC} ${LDFLAGS} -o libutf8proc.la utf8proc.lo \
+			-rpath ${PREFIX}/lib \
+			-version-number ${MAJOR}:${MINOR}:${PATCH}
+	cd ${WRKSRC} && ${SED} \
+		-e 's#PREFIX#${PREFIX}#' \
+		-e 's#LIBDIR#lib#' \
+		-e 's#INCLUDEDIR#include#' \
+		-e 's#VERSION#${MAJOR}.${MINOR}.${PATCH}#' \
+		-e 's#Description:.*$$#Description: ${COMMENT}#' \
+		libutf8proc.pc.in >libutf8proc.pc
+
+do-install:
+	cd ${WRKSRC} && ${LIBTOOL} --mode=install \
+		${INSTALL_LIB} libutf8proc.la ${DESTDIR}${PREFIX}/lib
+	cd ${WRKSRC} && \
+		${INSTALL_DATA} utf8proc.h ${DESTDIR}${PREFIX}/include
+	cd ${WRKSRC} && \
+		${INSTALL_DATA} libutf8proc.pc ${DESTDIR}${PREFIX}/lib/pkgconfig
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/utf8proc/PLIST b/utf8proc/PLIST
new file mode 100644
index 0000000000..8de40cb114
--- /dev/null
+++ b/utf8proc/PLIST
@@ -0,0 +1,4 @@
+@comment $NetBSD$
+include/utf8proc.h
+lib/libutf8proc.la
+lib/pkgconfig/libutf8proc.pc
diff --git a/utf8proc/buildlink3.mk b/utf8proc/buildlink3.mk
new file mode 100644
index 0000000000..777c5feeea
--- /dev/null
+++ b/utf8proc/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.1 2018/04/30 19:31:47 minskim Exp $
+
+BUILDLINK_TREE+=	utf8proc
+
+.if !defined(UTF8PROC_BUILDLINK3_MK)
+UTF8PROC_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.utf8proc+=	utf8proc>=2.1.1
+BUILDLINK_PKGSRCDIR.utf8proc?=		../../converters/utf8proc
+.endif	# UTF8PROC_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-utf8proc
diff --git a/utf8proc/distinfo b/utf8proc/distinfo
new file mode 100644
index 0000000000..71a27573e1
--- /dev/null
+++ b/utf8proc/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (utf8proc-2.5.0.tar.gz) = a868878257355456e08b5f21bc2ee6a164386865
+RMD160 (utf8proc-2.5.0.tar.gz) = 47d14e079f805d93e2896a0561e6cfb029de160e
+SHA512 (utf8proc-2.5.0.tar.gz) = 0c553faf4f3841c17c7aa4cce1e917b1585c430ac3f7f240ab98cbe01b9743f2074532e6f71faf3df030f5af00e483a3faf9716a67e6a4b1bb66a3de48308014
+Size (utf8proc-2.5.0.tar.gz) = 155485 bytes


Home | Main Index | Thread Index | Old Index