pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/converters/utf8proc utf8proc: use correct shared libra...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2acc61ca89b8
branches:  trunk
changeset: 380770:2acc61ca89b8
user:      adam <adam%pkgsrc.org@localhost>
date:      Mon May 21 17:49:50 2018 +0000

description:
utf8proc: use correct shared library installation

diffstat:

 converters/utf8proc/Makefile                     |  21 +--------------------
 converters/utf8proc/distinfo                     |   3 ++-
 converters/utf8proc/patches/patch-CMakeLists.txt |  23 +++++++++++++++++++++++
 3 files changed, 26 insertions(+), 21 deletions(-)

diffs (74 lines):

diff -r a153dfb132fa -r 2acc61ca89b8 converters/utf8proc/Makefile
--- a/converters/utf8proc/Makefile      Mon May 21 17:12:51 2018 +0000
+++ b/converters/utf8proc/Makefile      Mon May 21 17:49:50 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2018/05/21 17:02:42 adam Exp $
+# $NetBSD: Makefile,v 1.3 2018/05/21 17:49:50 adam Exp $
 
 DISTNAME=      utf8proc-2.1.1
 CATEGORIES=    converters
@@ -12,25 +12,6 @@
 
 USE_CMAKE=     yes
 USE_LANGUAGES= c99
-WRKSRC=                ${WRKDIR}/${PKGNAME_NOREV}/build
-
-CMAKE_ARG_PATH=        ..
 CMAKE_ARGS+=   -DBUILD_SHARED_LIBS=ON
 
-INSTALLATION_DIRS+=    include lib
-
-post-extract:
-       ${MKDIR} ${WRKSRC}
-
-.include "../../mk/bsd.prefs.mk"
-
-do-install:
-       ${INSTALL_DATA} ${WRKDIR}/${PKGNAME_NOREV}/utf8proc.h \
-               ${DESTDIR}${PREFIX}/include/
-       ${INSTALL_LIB} ${WRKSRC}/libutf8proc.* ${DESTDIR}${PREFIX}/lib/
-.if ${OPSYS} == "Darwin"
-       install_name_tool -id ${PREFIX}/lib/libutf8proc.${PKGVERSION_NOREV}.dylib \
-            ${DESTDIR}${PREFIX}/lib/libutf8proc.${PKGVERSION_NOREV}.dylib
-.endif
-
 .include "../../mk/bsd.pkg.mk"
diff -r a153dfb132fa -r 2acc61ca89b8 converters/utf8proc/distinfo
--- a/converters/utf8proc/distinfo      Mon May 21 17:12:51 2018 +0000
+++ b/converters/utf8proc/distinfo      Mon May 21 17:49:50 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.1 2018/04/30 19:31:47 minskim Exp $
+$NetBSD: distinfo,v 1.2 2018/05/21 17:49:50 adam Exp $
 
 SHA1 (utf8proc-2.1.1.tar.gz) = 8c02fc26fbe7ab1c4c0d2fce3efecb4df8d935b9
 RMD160 (utf8proc-2.1.1.tar.gz) = c1294da1de99bb2ee6fad01d3dbf9e25e4ef0581
 SHA512 (utf8proc-2.1.1.tar.gz) = 66c3e79439dd4c4b148ec3a2a9f96442fcccb9e488384e52807f513dad64d4b7adea8626c60d21ea401ce4240ced0c71265de51c4d1550c37c8db9176dbb4fe8
 Size (utf8proc-2.1.1.tar.gz) = 152198 bytes
+SHA1 (patch-CMakeLists.txt) = f2af4dc22a77b7d7518741af9edf691bdd01bef9
diff -r a153dfb132fa -r 2acc61ca89b8 converters/utf8proc/patches/patch-CMakeLists.txt
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/utf8proc/patches/patch-CMakeLists.txt  Mon May 21 17:49:50 2018 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-CMakeLists.txt,v 1.1 2018/05/21 17:49:50 adam Exp $
+
+Allow in-tree builds.
+Add install targets.
+
+--- CMakeLists.txt.orig        2018-04-27 13:58:34.000000000 +0000
++++ CMakeLists.txt
+@@ -1,8 +1,5 @@
+ cmake_minimum_required (VERSION 2.8)
+ 
+-include (utils.cmake)
+-
+-disallow_intree_builds()
+ 
+ project (utf8proc C)
+ 
+@@ -31,3 +28,6 @@ set_target_properties (utf8proc PROPERTI
+   VERSION "${SO_MAJOR}.${SO_MINOR}.${SO_PATCH}"
+   SOVERSION ${SO_MAJOR}
+ )
++
++install (TARGETS utf8proc DESTINATION lib)
++install (FILES "${PROJECT_SOURCE_DIR}/utf8proc.h" DESTINATION include)



Home | Main Index | Thread Index | Old Index