pkgsrc-WIP-changes archive

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

Add simdutf version 4.0.4 to pkgsrc-wip



Module Name:	pkgsrc-wip
Committed By:	Niclas Rosenvik <nros%pkgsrc.org@localhost>
Pushed By:	nros
Date:		Thu Nov 16 19:09:53 2023 +0100
Changeset:	714825122a31ba3712d0d4d27ff15a4e7158f32d

Modified Files:
	Makefile
Added Files:
	simdutf/DESCR
	simdutf/Makefile
	simdutf/PLIST
	simdutf/buildlink3.mk
	simdutf/distinfo
	simdutf/patches/patch-CMakeLists.txt
	simdutf/patches/patch-src_CMakeLists.txt

Log Message:
Add simdutf version 4.0.4 to pkgsrc-wip

Library for Unicode processing, validation and transcoding at very high speeds.

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

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

diffstat:
 Makefile                                 |  1 +
 simdutf/DESCR                            |  1 +
 simdutf/Makefile                         | 33 ++++++++++++++++++++++++++++++++
 simdutf/PLIST                            | 21 ++++++++++++++++++++
 simdutf/buildlink3.mk                    | 13 +++++++++++++
 simdutf/distinfo                         |  7 +++++++
 simdutf/patches/patch-CMakeLists.txt     | 16 ++++++++++++++++
 simdutf/patches/patch-src_CMakeLists.txt | 16 ++++++++++++++++
 8 files changed, 108 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 006cca515c..036b1d727d 100644
--- a/Makefile
+++ b/Makefile
@@ -5058,6 +5058,7 @@ SUBDIR+=	sil
 SUBDIR+=	sil-scheherazade-ttf
 SUBDIR+=	silky
 SUBDIR+=	silvertree
+SUBDIR+=	simdutf
 SUBDIR+=	simgrid
 SUBDIR+=	simpa
 SUBDIR+=	simple-mtpfs
diff --git a/simdutf/DESCR b/simdutf/DESCR
new file mode 100644
index 0000000000..4c24a1b87e
--- /dev/null
+++ b/simdutf/DESCR
@@ -0,0 +1 @@
+Library for Unicode processing, validation and transcoding at very high speeds.
diff --git a/simdutf/Makefile b/simdutf/Makefile
new file mode 100644
index 0000000000..6fb1bc237c
--- /dev/null
+++ b/simdutf/Makefile
@@ -0,0 +1,33 @@
+# $NetBSD$
+
+DISTNAME=	simdutf-4.0.4
+CATEGORIES=	converters textproc
+MASTER_SITES=	${MASTER_SITE_GITHUB:=simdutf/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/simdutf/simdutf/
+COMMENT=	Library for unicode validation, transcoding and processing
+LICENSE=	apache-2.0 OR mit
+
+USE_LANGUAGES=		c++
+USE_CXX_FEATURES+=	c++11
+
+CMAKE_CONFIGURE_ARGS+=	-DBUILD_SHARED_LIBS=ON
+CMAKE_CONFIGURE_ARGS+=	-DSIMDUTF_BENCHMARKS=OFF
+CMAKE_CONFIGURE_ARGS+=	-DSIMDUTF_TOOLS=OFF
+CMAKE_CONFIGURE_ARGS+=	-DSIMDUTF_TESTS=OFF
+
+PKGCONFIG_OVERRIDE+=	simdutf.pc.in
+
+INSTALLATION_DIRS+=	share/doc/${PKGBASE}
+
+# this needed in order to comply with
+# the mit and apache licenses and redistribution
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/LICENSE-MIT ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+	${INSTALL_DATA} ${WRKSRC}/LICENSE-APACHE ${DESTDIR}${PREFIX}/share/doc/${PKGBASE}
+
+.include "../../devel/cmake/build.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/simdutf/PLIST b/simdutf/PLIST
new file mode 100644
index 0000000000..ec7abf5d01
--- /dev/null
+++ b/simdutf/PLIST
@@ -0,0 +1,21 @@
+@comment $NetBSD$
+include/simdutf.h
+include/simdutf/avx512.h
+include/simdutf/common_defs.h
+include/simdutf/compiler_check.h
+include/simdutf/encoding_types.h
+include/simdutf/error.h
+include/simdutf/implementation.h
+include/simdutf/internal/isadetection.h
+include/simdutf/portability.h
+include/simdutf/simdutf_version.h
+lib/cmake/simdutf/simdutf-config-version.cmake
+lib/cmake/simdutf/simdutf-config.cmake
+lib/cmake/simdutf/simdutfTargets-release.cmake
+lib/cmake/simdutf/simdutfTargets.cmake
+lib/libsimdutf.so
+lib/libsimdutf.so.${PKGVERSION}
+lib/libsimdutf.so.5
+lib/pkgconfig/simdutf.pc
+share/doc/simdutf/LICENSE-APACHE
+share/doc/simdutf/LICENSE-MIT
diff --git a/simdutf/buildlink3.mk b/simdutf/buildlink3.mk
new file mode 100644
index 0000000000..6396f5ceff
--- /dev/null
+++ b/simdutf/buildlink3.mk
@@ -0,0 +1,13 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	simdutf
+
+.if !defined(SIMDUTF_BUILDLINK3_MK)
+SIMDUTF_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.simdutf+=	simdutf>=4.0.4
+BUILDLINK_PKGSRCDIR.simdutf?=	../../wip/simdutf
+
+.endif	# SIMDUTF_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-simdutf
diff --git a/simdutf/distinfo b/simdutf/distinfo
new file mode 100644
index 0000000000..4a8e9cbe0d
--- /dev/null
+++ b/simdutf/distinfo
@@ -0,0 +1,7 @@
+$NetBSD$
+
+BLAKE2s (simdutf-4.0.4.tar.gz) = 89160e70117b3c229a29f4d822e3305ec319821f3b6c5d97635b6d34be974b6a
+SHA512 (simdutf-4.0.4.tar.gz) = f14bb4a79ca23237d299f84893a56a14844a0a2762cf3eaf2c8b2d9cf9471ec77c87a33f8a792cc62dff41b02f61513312bb735d6de61cb0a7e4d05b03de76a6
+Size (simdutf-4.0.4.tar.gz) = 1867836 bytes
+SHA1 (patch-CMakeLists.txt) = 03e7a05b55e0d6a09d6a085441e57bb71b05a6c0
+SHA1 (patch-src_CMakeLists.txt) = c687a77ed3f6b6994c6fcbfd84e8648a6d3608bc
diff --git a/simdutf/patches/patch-CMakeLists.txt b/simdutf/patches/patch-CMakeLists.txt
new file mode 100644
index 0000000000..7d8435fbdd
--- /dev/null
+++ b/simdutf/patches/patch-CMakeLists.txt
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Don't build singleheader version of simduft.
+The singleheader is not installed and not
+building it removes dependecy on python.
+
+--- CMakeLists.txt.orig	2023-11-15 22:34:03.000000000 +0000
++++ CMakeLists.txt
+@@ -33,7 +33,6 @@ option(SIMDUTF_ICONV "Whether to use ico
+ set(SIMDUTF_SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR})
+ 
+ add_subdirectory(src)
+-add_subdirectory(singleheader)
+ 
+ if (SIMDUTF_TESTS)
+   message(STATUS "The tests are enabled.")
diff --git a/simdutf/patches/patch-src_CMakeLists.txt b/simdutf/patches/patch-src_CMakeLists.txt
new file mode 100644
index 0000000000..41c38e2558
--- /dev/null
+++ b/simdutf/patches/patch-src_CMakeLists.txt
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Don't leak -fPIC to cmake users of simdutf
+
+--- src/CMakeLists.txt.orig	2023-11-16 14:48:22.396784033 +0000
++++ src/CMakeLists.txt
+@@ -15,9 +15,6 @@ if(MSVC)
+     target_compile_options(simdutf PRIVATE /WX /W3 /sdl /w34714) # https://docs.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4714?view=vs-2019
+   endif()
+ else(MSVC)
+-  if(NOT WIN32)
+-    target_compile_options(simdutf INTERFACE -fPIC)
+-  endif()
+   target_compile_options(simdutf PRIVATE -Wall -Wextra -Weffc++)
+   target_compile_options(simdutf PRIVATE -Wfatal-errors -Wsign-compare -Wshadow -Wwrite-strings -Wpointer-arith -Winit-self -Wconversion -Wno-sign-conversion)
+ endif(MSVC)


Home | Main Index | Thread Index | Old Index