converters/utf8proc: Add support for pkg-config, Reduce build dependencies - 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 are at least an order of magnitude larger than utf8proc itself. - Drop patch for cmake - Add support for pkg-config Install "libutf8proc.pc". - Bump PKGREVISION for additional installed files. - Remove supported Unicode version from DESCR Was not maintained in the past - Take maintainership OK from minskim@ OK from wiz@ (as long as I am MAINTAINER)diff -r1.1 -r1.2 pkgsrc/converters/utf8proc/DESCR
(micha)
@@ -1,3 +1,4 @@ | @@ -1,3 +1,4 @@ | |||
1 | utf8proc is a small, clean C library that provides Unicode | 1 | utf8proc is a small, clean C library that provides Unicode | |
2 | normalization, case-folding, and other operations for data in the | 2 | normalization, case-folding, and other operations for data in the | |
3 | UTF-8 encoding, supporting Unicode version 9.0. | 3 | UTF-8 encoding (some of the underlying functions for UTF-32 are | |
4 | exported too). |
@@ -1,17 +1,49 @@ | @@ -1,17 +1,49 @@ | |||
1 | # $NetBSD: Makefile,v 1.7 2020/03/31 17:36:19 wiz Exp $ | 1 | # $NetBSD: Makefile,v 1.8 2020/06/04 16:46:35 micha Exp $ | |
2 | 2 | |||
3 | DISTNAME= utf8proc-2.5.0 | 3 | DISTNAME= utf8proc-2.5.0 | |
4 | PKGREVISION= 1 | |||
4 | CATEGORIES= converters | 5 | CATEGORIES= converters | |
5 | MASTER_SITES= ${MASTER_SITE_GITHUB:=JuliaLang/} | 6 | MASTER_SITES= ${MASTER_SITE_GITHUB:=JuliaLang/} | |
6 | GITHUB_TAG= v${PKGVERSION_NOREV} | 7 | GITHUB_TAG= v${PKGVERSION_NOREV} | |
7 | 8 | |||
8 | MAINTAINER= minskim@NetBSD.org | 9 | MAINTAINER= micha@NetBSD.org | |
9 | HOMEPAGE= https://julialang.org/utf8proc/ | 10 | HOMEPAGE= https://julialang.org/utf8proc/ | |
10 | COMMENT= Clean C library for processing UTF-8 Unicode data | 11 | COMMENT= C library for processing Unicode data | |
11 | LICENSE= mit | 12 | LICENSE= mit | |
12 | 13 | |||
13 | USE_CMAKE= yes | |||
14 | USE_LANGUAGES= c99 | 14 | USE_LANGUAGES= c99 | |
15 | CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON | 15 | USE_LIBTOOL= yes | |
16 | ||||
17 | INSTALLATION_DIRS= include lib lib/pkgconfig | |||
18 | ||||
19 | # Use ABI version from CMakeLists.txt to stay compatible with cmake builds | |||
20 | MAJOR= 2 | |||
21 | MINOR= 3 | |||
22 | PATCH= 2 | |||
23 | ||||
24 | do-configure: | |||
25 | cd ${WRKSRC} && ${SED} \ | |||
26 | -e 's#PREFIX#${PREFIX}#' \ | |||
27 | -e 's#LIBDIR#lib#' \ | |||
28 | -e 's#INCLUDEDIR#include#' \ | |||
29 | -e 's#VERSION#${MAJOR}.${MINOR}.${PATCH}#' \ | |||
30 | -e 's#Description:.*$$#Description: ${COMMENT}#' \ | |||
31 | libutf8proc.pc.in >libutf8proc.pc | |||
32 | ||||
33 | do-build: | |||
34 | cd ${WRKSRC} && ${LIBTOOL} --tag=CC --mode=compile \ | |||
35 | ${CC} ${CPPFLAGS} ${CFLAGS} -c -o utf8proc.lo utf8proc.c | |||
36 | cd ${WRKSRC} && ${LIBTOOL} --tag=CC --mode=link \ | |||
37 | ${CC} ${LDFLAGS} -o libutf8proc.la utf8proc.lo \ | |||
38 | -rpath ${PREFIX}/lib \ | |||
39 | -version-number ${MAJOR}:${MINOR}:${PATCH} | |||
40 | ||||
41 | do-install: | |||
42 | cd ${WRKSRC} && ${LIBTOOL} --mode=install \ | |||
43 | ${INSTALL_LIB} libutf8proc.la ${DESTDIR}${PREFIX}/lib | |||
44 | cd ${WRKSRC} && \ | |||
45 | ${INSTALL_DATA} utf8proc.h ${DESTDIR}${PREFIX}/include | |||
46 | cd ${WRKSRC} && \ | |||
47 | ${INSTALL_DATA} libutf8proc.pc ${DESTDIR}${PREFIX}/lib/pkgconfig | |||
16 | 48 | |||
17 | .include "../../mk/bsd.pkg.mk" | 49 | .include "../../mk/bsd.pkg.mk" |
@@ -1,5 +1,4 @@ | @@ -1,5 +1,4 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.4 2020/03/31 17:36:19 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.5 2020/06/04 16:46:35 micha Exp $ | |
2 | include/utf8proc.h | 2 | include/utf8proc.h | |
3 | lib/libutf8proc.so | 3 | lib/libutf8proc.la | |
4 | lib/libutf8proc.so.2 | 4 | lib/pkgconfig/libutf8proc.pc | |
5 | lib/libutf8proc.so.2.3.2 |
@@ -1,7 +1,6 @@ | @@ -1,7 +1,6 @@ | |||
1 | $NetBSD: distinfo,v 1.6 2020/03/31 17:36:19 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.7 2020/06/04 16:46:35 micha Exp $ | |
2 | 2 | |||
3 | SHA1 (utf8proc-2.5.0.tar.gz) = a868878257355456e08b5f21bc2ee6a164386865 | 3 | SHA1 (utf8proc-2.5.0.tar.gz) = a868878257355456e08b5f21bc2ee6a164386865 | |
4 | RMD160 (utf8proc-2.5.0.tar.gz) = 47d14e079f805d93e2896a0561e6cfb029de160e | 4 | RMD160 (utf8proc-2.5.0.tar.gz) = 47d14e079f805d93e2896a0561e6cfb029de160e | |
5 | SHA512 (utf8proc-2.5.0.tar.gz) = 0c553faf4f3841c17c7aa4cce1e917b1585c430ac3f7f240ab98cbe01b9743f2074532e6f71faf3df030f5af00e483a3faf9716a67e6a4b1bb66a3de48308014 | 5 | SHA512 (utf8proc-2.5.0.tar.gz) = 0c553faf4f3841c17c7aa4cce1e917b1585c430ac3f7f240ab98cbe01b9743f2074532e6f71faf3df030f5af00e483a3faf9716a67e6a4b1bb66a3de48308014 | |
6 | Size (utf8proc-2.5.0.tar.gz) = 155485 bytes | 6 | Size (utf8proc-2.5.0.tar.gz) = 155485 bytes | |
7 | SHA1 (patch-CMakeLists.txt) = df574d345dd4d39ae83f2fe7d8669d28524a1a5e |