Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/converters/utf8proc converters/utf8proc: Add support f...
details: https://anonhg.NetBSD.org/pkgsrc/rev/1213167bd3e4
branches: trunk
changeset: 433570:1213167bd3e4
user: micha <micha%pkgsrc.org@localhost>
date: Thu Jun 04 16:46:35 2020 +0000
description:
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)
diffstat:
converters/utf8proc/DESCR | 3 +-
converters/utf8proc/Makefile | 42 +++++++++++++++++++++--
converters/utf8proc/PLIST | 7 +--
converters/utf8proc/distinfo | 3 +-
converters/utf8proc/patches/patch-CMakeLists.txt | 16 ---------
5 files changed, 43 insertions(+), 28 deletions(-)
diffs (111 lines):
diff -r cecdd19097b4 -r 1213167bd3e4 converters/utf8proc/DESCR
--- a/converters/utf8proc/DESCR Thu Jun 04 13:47:19 2020 +0000
+++ b/converters/utf8proc/DESCR Thu Jun 04 16:46:35 2020 +0000
@@ -1,3 +1,4 @@
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.
+UTF-8 encoding (some of the underlying functions for UTF-32 are
+exported too).
diff -r cecdd19097b4 -r 1213167bd3e4 converters/utf8proc/Makefile
--- a/converters/utf8proc/Makefile Thu Jun 04 13:47:19 2020 +0000
+++ b/converters/utf8proc/Makefile Thu Jun 04 16:46:35 2020 +0000
@@ -1,17 +1,49 @@
-# $NetBSD: Makefile,v 1.7 2020/03/31 17:36:19 wiz Exp $
+# $NetBSD: Makefile,v 1.8 2020/06/04 16:46:35 micha Exp $
DISTNAME= utf8proc-2.5.0
+PKGREVISION= 1
CATEGORIES= converters
MASTER_SITES= ${MASTER_SITE_GITHUB:=JuliaLang/}
GITHUB_TAG= v${PKGVERSION_NOREV}
-MAINTAINER= minskim%NetBSD.org@localhost
+MAINTAINER= micha%NetBSD.org@localhost
HOMEPAGE= https://julialang.org/utf8proc/
-COMMENT= Clean C library for processing UTF-8 Unicode data
+COMMENT= C library for processing Unicode data
LICENSE= mit
-USE_CMAKE= yes
USE_LANGUAGES= c99
-CMAKE_ARGS+= -DBUILD_SHARED_LIBS=ON
+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-configure:
+ 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-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}
+
+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 -r cecdd19097b4 -r 1213167bd3e4 converters/utf8proc/PLIST
--- a/converters/utf8proc/PLIST Thu Jun 04 13:47:19 2020 +0000
+++ b/converters/utf8proc/PLIST Thu Jun 04 16:46:35 2020 +0000
@@ -1,5 +1,4 @@
-@comment $NetBSD: PLIST,v 1.4 2020/03/31 17:36:19 wiz Exp $
+@comment $NetBSD: PLIST,v 1.5 2020/06/04 16:46:35 micha Exp $
include/utf8proc.h
-lib/libutf8proc.so
-lib/libutf8proc.so.2
-lib/libutf8proc.so.2.3.2
+lib/libutf8proc.la
+lib/pkgconfig/libutf8proc.pc
diff -r cecdd19097b4 -r 1213167bd3e4 converters/utf8proc/distinfo
--- a/converters/utf8proc/distinfo Thu Jun 04 13:47:19 2020 +0000
+++ b/converters/utf8proc/distinfo Thu Jun 04 16:46:35 2020 +0000
@@ -1,7 +1,6 @@
-$NetBSD: distinfo,v 1.6 2020/03/31 17:36:19 wiz Exp $
+$NetBSD: distinfo,v 1.7 2020/06/04 16:46:35 micha Exp $
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
-SHA1 (patch-CMakeLists.txt) = df574d345dd4d39ae83f2fe7d8669d28524a1a5e
diff -r cecdd19097b4 -r 1213167bd3e4 converters/utf8proc/patches/patch-CMakeLists.txt
--- a/converters/utf8proc/patches/patch-CMakeLists.txt Thu Jun 04 13:47:19 2020 +0000
+++ /dev/null Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-CMakeLists.txt,v 1.2 2018/08/17 15:22:37 minskim Exp $
-
-Allow in-tree builds.
-
---- CMakeLists.txt.orig 2018-07-24 17:35:48.000000000 +0000
-+++ CMakeLists.txt
-@@ -1,9 +1,5 @@
- cmake_minimum_required (VERSION 2.8.12)
-
--include (utils.cmake)
--
--disallow_intree_builds()
--
- project (utf8proc C)
-
- # This is the ABI version number, which may differ from the
Home |
Main Index |
Thread Index |
Old Index