pkgsrc-WIP-changes archive

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

libArcus: Import libArcus-4.11.0 as wip/libArcus



Module Name:	pkgsrc-wip
Committed By:	Atsushi Toyokura <asteria.at%gmail.com@localhost>
Pushed By:	steleto
Date:		Sat Nov 6 12:40:15 2021 +0900
Changeset:	6755c245fa75c5bfc2d66668320c8a854c956df1

Modified Files:
	Makefile
Added Files:
	libArcus/DESCR
	libArcus/Makefile
	libArcus/PLIST
	libArcus/buildlink3.mk
	libArcus/distinfo
	libArcus/patches/patch-src_Socket__p.h

Log Message:
libArcus: Import libArcus-4.11.0 as wip/libArcus

This library contains C++ code and Python3 bindings for creating a
socket in a thread and using this socket to send and receive messages
based on the Protocol Buffers library. It is designed to facilitate
the communication between Cura and its backend and similar code.

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

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

diffstat:
 Makefile                               |  1 +
 libArcus/DESCR                         |  4 ++++
 libArcus/Makefile                      | 36 ++++++++++++++++++++++++++++++++++
 libArcus/PLIST                         | 15 ++++++++++++++
 libArcus/buildlink3.mk                 | 16 +++++++++++++++
 libArcus/distinfo                      |  6 ++++++
 libArcus/patches/patch-src_Socket__p.h | 15 ++++++++++++++
 7 files changed, 93 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 2e9ae17eca..91e993c208 100644
--- a/Makefile
+++ b/Makefile
@@ -1997,6 +1997,7 @@ SUBDIR+=	lgogdownloader-git
 SUBDIR+=	lha
 SUBDIR+=	lhapdf
 SUBDIR+=	lhs2tex
+SUBDIR+=	libArcus
 SUBDIR+=	libGenome
 SUBDIR+=	libLLVM
 SUBDIR+=	libLLVM38
diff --git a/libArcus/DESCR b/libArcus/DESCR
new file mode 100644
index 0000000000..5d8b8fc438
--- /dev/null
+++ b/libArcus/DESCR
@@ -0,0 +1,4 @@
+This library contains C++ code and Python3 bindings for creating a
+socket in a thread and using this socket to send and receive messages
+based on the Protocol Buffers library. It is designed to facilitate
+the communication between Cura and its backend and similar code.
diff --git a/libArcus/Makefile b/libArcus/Makefile
new file mode 100644
index 0000000000..20cc6917cc
--- /dev/null
+++ b/libArcus/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD$
+
+GITHUB_PROJECT=	libArcus
+GITHUB_TAG=	4.11.0
+DISTNAME=	${GITHUB_TAG}
+PKGNAME=	${GITHUB_PROJECT}-${DISTNAME}
+CATEGORIES=	net
+MASTER_SITES=	${MASTER_SITE_GITHUB:=Ultimaker/}
+DIST_SUBDIR=	${GITHUB_PROJECT}
+
+MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/Ultimaker/libArcus/
+COMMENT=	Creating a socket in a thread and using this socket to messages
+LICENSE=	gnu-lgpl-v3
+
+USE_CMAKE=	yes
+USE_LANGUAGES=	c c++
+
+SUBST_CLASSES+=		sip
+SUBST_STAGE.sip=	pre-configure
+SUBST_MESSAGE.sip=	Rename py-sip name.
+SUBST_FILES.sip=	cmake/FindSIP.cmake
+SUBST_SED.sip=		-e 's|\(SIP_EXECUTABLE sip\)|\1${PYVERSSUFFIX}|'
+
+SUBST_CLASSES+=			fix-prefix
+SUBST_STAGE.fix-prefix=		pre-install
+SUBST_MESSAGE.fix-prefix=	Fix prefix.
+SUBST_FILES.fix-prefix=		CMakeFiles/Export/lib/cmake/Arcus/Arcus-targets.cmake
+SUBST_SED.fix-prefix=		-e 's|${WRKDIR}/.buildlink|${PREFIX}|g'
+
+PY_PATCHPLIST=	YES
+
+.include "../../lang/python/extension.mk"
+.include "../../devel/protobuf/buildlink3.mk"
+.include "../../x11/py-sip/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/libArcus/PLIST b/libArcus/PLIST
new file mode 100644
index 0000000000..4085bc8960
--- /dev/null
+++ b/libArcus/PLIST
@@ -0,0 +1,15 @@
+@comment $NetBSD$
+include/Arcus/ArcusExport.h
+include/Arcus/Error.h
+include/Arcus/MessageTypeStore.h
+include/Arcus/Socket.h
+include/Arcus/SocketListener.h
+include/Arcus/Types.h
+lib/cmake/Arcus/Arcus-targets-noconfig.cmake
+lib/cmake/Arcus/Arcus-targets.cmake
+lib/cmake/Arcus/ArcusConfig.cmake
+lib/cmake/Arcus/ArcusConfigVersion.cmake
+lib/libArcus.so
+lib/libArcus.so.1.1.0
+lib/libArcus.so.3
+${PYSITELIB}/Arcus.so
diff --git a/libArcus/buildlink3.mk b/libArcus/buildlink3.mk
new file mode 100644
index 0000000000..9116a9dfd6
--- /dev/null
+++ b/libArcus/buildlink3.mk
@@ -0,0 +1,16 @@
+# $NetBSD$
+
+BUILDLINK_TREE+=	libArcus
+
+.if !defined(LIBARCUS_BUILDLINK3_MK)
+LIBARCUS_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.libArcus+=	libArcus>=4.11.0
+BUILDLINK_PKGSRCDIR.libArcus?=		../../wip/libArcus
+
+.include "../../lang/python/extension.mk"
+.include "../../devel/protobuf/buildlink3.mk"
+.include "../../x11/py-sip/buildlink3.mk"
+.endif	# LIBARCUS_BUILDLINK3_MK
+
+BUILDLINK_TREE+=	-libArcus
diff --git a/libArcus/distinfo b/libArcus/distinfo
new file mode 100644
index 0000000000..385a5a499f
--- /dev/null
+++ b/libArcus/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+BLAKE2s (libArcus/4.11.0.tar.gz) = ff215f3c57feaa77d6d87bf977d885f63c6ce74ad488a51c65eac9884079284a
+SHA512 (libArcus/4.11.0.tar.gz) = 3a23b63787121b510f35c77f8d184a1773a8e53e7e15a238a7454022c30674a687d9b74414516c24f3330e8689243fad93e82eb50f3d8a64b748020bd2c7b135
+Size (libArcus/4.11.0.tar.gz) = 32061 bytes
+SHA1 (patch-src_Socket__p.h) = c7933e7fe5e6c7a4ebf913bade8b99fdc3fe1395
diff --git a/libArcus/patches/patch-src_Socket__p.h b/libArcus/patches/patch-src_Socket__p.h
new file mode 100644
index 0000000000..d86a3019d4
--- /dev/null
+++ b/libArcus/patches/patch-src_Socket__p.h
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix build against protobuf 3.18+
+
+--- src/Socket_p.h.orig	2021-11-06 03:27:34.010477969 +0000
++++ src/Socket_p.h
+@@ -548,7 +548,7 @@ namespace Arcus
+ 
+         google::protobuf::io::ArrayInputStream array(wire_message->data, wire_message->size);
+         google::protobuf::io::CodedInputStream stream(&array);
+-        stream.SetTotalBytesLimit(message_size_maximum, message_size_warning);
++        stream.SetTotalBytesLimit(message_size_maximum);
+         if(!message->ParseFromCodedStream(&stream))
+         {
+             error(ErrorCode::ParseFailedError, "Failed to parse message:" + std::string(wire_message->data));


Home | Main Index | Thread Index | Old Index