* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libarcus/, dev-libs/libarcus/files/
@ 2016-04-28 14:12 Ian Delaney
0 siblings, 0 replies; 2+ messages in thread
From: Ian Delaney @ 2016-04-28 14:12 UTC (permalink / raw
To: gentoo-commits
commit: 987453ea66b051c13f59a5e32389dfca099cddb6
Author: Marshall Brewer (Gentoo Key) <tomboy64 <AT> sina <DOT> cn>
AuthorDate: Tue Apr 12 20:11:43 2016 +0000
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
CommitDate: Thu Apr 28 14:12:20 2016 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=987453ea
dev-libs/libarcus: initial ebuild, version 1.0.0_pre20160307
Closes: https://github.com/gentoo/gentoo/pull/1298
Signed-off-by: Ian Delaney <idella4 <AT> gentoo.org>
dev-libs/libarcus/Manifest | 1 +
.../files/libarcus-1.0.0-fix-install-paths.patch | 77 ++++++++++++++++++++++
.../libarcus/libarcus-1.0.0_pre20160307.ebuild | 43 ++++++++++++
dev-libs/libarcus/metadata.xml | 22 +++++++
4 files changed, 143 insertions(+)
diff --git a/dev-libs/libarcus/Manifest b/dev-libs/libarcus/Manifest
new file mode 100644
index 0000000..32b3f1b
--- /dev/null
+++ b/dev-libs/libarcus/Manifest
@@ -0,0 +1 @@
+DIST libarcus-1.0.0_pre20160307.tar.gz 40461 SHA256 ca4f286cc8bae08ddf166fa470f8381f25cf61629168ca965a2f4079e758ebfc SHA512 ec654fbe2d34ad60afd0c1f3745e9f0ef5709e3698ea78d17089dad5e86cb686f38a0ea4cca07b6911058ebdf61c17b51a89c002cbf74cbbd4a68a133d8984e5 WHIRLPOOL 0c688c0fb20022a14bce6870fd1da84c891b2f68f335d9f6ebcc25432dab51823b3e9d20be8a3a51a69bc1832c3cd55576c91e0246fcc15fc4456916d5278b28
diff --git a/dev-libs/libarcus/files/libarcus-1.0.0-fix-install-paths.patch b/dev-libs/libarcus/files/libarcus-1.0.0-fix-install-paths.patch
new file mode 100644
index 0000000..b1473f7
--- /dev/null
+++ b/dev-libs/libarcus/files/libarcus-1.0.0-fix-install-paths.patch
@@ -0,0 +1,77 @@
+diff -Naur a/CMakeLists.txt b/CMakeLists.txt
+--- a/CMakeLists.txt 2016-03-07 10:36:38.000000000 +0100
++++ b/CMakeLists.txt 2016-04-16 11:54:15.499524812 +0200
+@@ -1,6 +1,7 @@
+ project(arcus)
+ cmake_minimum_required(VERSION 2.8.12)
+
++include(GNUInstallDirs)
+ include(CMakePackageConfigHelpers)
+
+ option(BUILD_PYTHON "Build " ON)
+@@ -14,10 +15,12 @@
+
+ if(BUILD_PYTHON)
+ set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
+- if(APPLE OR WIN32)
+- set(PYTHON_SITE_PACKAGES_DIR lib/python3.4/site-packages CACHE STRING "Directory to install Python bindings to")
+- else()
+- set(PYTHON_SITE_PACKAGES_DIR lib/python3/dist-packages CACHE STRING "Directory to install Python bindings to")
++ if(NOT PYTHON_SITE_PACKAGES_DIR)
++ if(APPLE OR WIN32)
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}.${PYTHON_VERSION_MINOR}/site-packages CACHE STRING "Directory to install Python bindings to")
++ else()
++ set(PYTHON_SITE_PACKAGES_DIR lib/python${PYTHON_VERSION_MAJOR}/dist-packages CACHE STRING "Directory to install Python bindings to")
++ endif()
+ endif()
+ find_package(SIP REQUIRED)
+ include_directories(python/ src/ ${PYTHON_INCLUDE_DIR} ${SIP_INCLUDE_DIR})
+@@ -57,7 +60,7 @@
+ set(ARCUS_VERSION 1.0.0)
+ set(ARCUS_SOVERSION 2)
+
+-set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
++set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}")
+
+ if(BUILD_STATIC)
+ add_library(Arcus STATIC ${arcus_SRCS})
+@@ -89,7 +92,7 @@
+ target_include_directories(Arcus PUBLIC
+ ${PROTOBUF_INCLUDE_DIR}
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
+- $<INSTALL_INTERFACE:include>
++ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
+ )
+ target_link_libraries(Arcus PUBLIC
+ ${PROTOBUF_LIBRARY}
+@@ -120,23 +123,23 @@
+
+ install(TARGETS Arcus
+ EXPORT Arcus-targets
+- RUNTIME DESTINATION bin
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib
+- PUBLIC_HEADER DESTINATION include/Arcus
++ RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
++ LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
++ PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/Arcus
+ )
+
+ install(EXPORT Arcus-targets
+- DESTINATION lib/cmake/Arcus
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Arcus
+ )
+
+-configure_package_config_file(ArcusConfig.cmake.in ${CMAKE_BINARY_DIR}/ArcusConfig.cmake INSTALL_DESTINATION lib/cmake/Arcus)
++configure_package_config_file(ArcusConfig.cmake.in ${CMAKE_BINARY_DIR}/ArcusConfig.cmake INSTALL_DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Arcus)
+ write_basic_package_version_file(${CMAKE_BINARY_DIR}/ArcusConfigVersion.cmake VERSION ${ARCUS_VERSION} COMPATIBILITY SameMajorVersion)
+
+ install(FILES
+ ${CMAKE_BINARY_DIR}/ArcusConfig.cmake
+ ${CMAKE_BINARY_DIR}/ArcusConfigVersion.cmake
+- DESTINATION lib/cmake/Arcus
++ DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/Arcus
+ )
+
+ include(CPackConfig.cmake)
diff --git a/dev-libs/libarcus/libarcus-1.0.0_pre20160307.ebuild b/dev-libs/libarcus/libarcus-1.0.0_pre20160307.ebuild
new file mode 100644
index 0000000..6f1f571
--- /dev/null
+++ b/dev-libs/libarcus/libarcus-1.0.0_pre20160307.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+PYTHON_COMPAT=( python3_4 python3_5 )
+inherit cmake-utils python-single-r1
+
+MY_PN="libArcus"
+COMMIT="1db8a8e57dbf0d68d9e9f85ef9022b8eae17c9ec"
+
+DESCRIPTION="This library facilitates communication between Cura and its backend"
+HOMEPAGE="https://github.com/Ultimaker/libArcus"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0/2"
+IUSE="examples python static-libs"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/sip[${PYTHON_USEDEP}]
+ >=dev-libs/protobuf-3:=
+ >=dev-python/protobuf-python-3:*[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_PN}-${COMMIT}"
+PATCHES=( "${FILESDIR}/${PN}-1.0.0-fix-install-paths.patch" )
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_PYTHON=$(usex python ON OFF)
+ -DBUILD_EXAMPLES=$(usex examples ON OFF)
+ -DBUILD_STATIC=$(usex static-libs ON OFF)
+ )
+ use python && mycmakeargs+=( -DPYTHON_SITE_PACKAGES_DIR="$(python_get_sitedir)" )
+ cmake-utils_src_configure
+}
diff --git a/dev-libs/libarcus/metadata.xml b/dev-libs/libarcus/metadata.xml
new file mode 100644
index 0000000..8e6bee1
--- /dev/null
+++ b/dev-libs/libarcus/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>tomboy64@sina.cn</email>
+ <name>Matthew Brewer</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Gentoo Proxy Maintainers Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>3dprint@gentoo.org</email>
+ <name>Gentoo 3D Printer Project</name>
+ </maintainer>
+ <slots>
+ <subslots>soname major version number</subslots>
+ </slots>
+ <upstream>
+ <remote-id type="github">Ultimaker/libArcus</remote-id>
+ </upstream>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/libarcus/, dev-libs/libarcus/files/
@ 2020-11-30 18:37 Dennis Lamm
0 siblings, 0 replies; 2+ messages in thread
From: Dennis Lamm @ 2020-11-30 18:37 UTC (permalink / raw
To: gentoo-commits
commit: a8d57019e0c5031d613cfdf9fc7353c8089d9b2a
Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 29 08:23:00 2020 +0000
Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
CommitDate: Mon Nov 30 18:37:37 2020 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a8d57019
dev-libs/libarcus: bump to 4.8.0
Signed-off-by: Dennis Lamm <expeditoneer <AT> gentoo.org>
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
dev-libs/libarcus/Manifest | 1 +
.../libarcus-4.8.0-deprecated-protobuf-calls.patch | 30 ++++++++++++
dev-libs/libarcus/libarcus-4.8.0.ebuild | 56 ++++++++++++++++++++++
3 files changed, 87 insertions(+)
diff --git a/dev-libs/libarcus/Manifest b/dev-libs/libarcus/Manifest
index d8ca478bc09..9bba1d63eee 100644
--- a/dev-libs/libarcus/Manifest
+++ b/dev-libs/libarcus/Manifest
@@ -1,2 +1,3 @@
DIST libarcus-4.6.1.tar.gz 31938 BLAKE2B c1da0181e07f297549df92ed23848343f0dadf94af7ce64ff2661e5c09c68768d47180aff505f2a225af2d49e493b8511ac9560a9b51a4eef98d6da82566b093 SHA512 3c56133fee2eb152f0557a1860d1d298b44a021a53247687ce938949c49e1999c3e2287552e67ff65a58bf6aecbd82c8412da394f83a9981bfa68d29e9501250
DIST libarcus-4.7.0.tar.gz 31944 BLAKE2B 93cd7e8dab674b1e145c0fd15bcc8901982e9c26f82fa5b6b9582568701b70edeb1a589e1e1c94f9e14100d08b12580e58aa1724917b88f9c099f12ca47e4e57 SHA512 5eb8e84ff8e87966fc3ff1d71ec69f8fece493e25e022f7f1ba7ef218e75b5be86cededc28faf57634b09617990f62247e6cd6f373f940cf145ee6d8e8635374
+DIST libarcus-4.8.0.tar.gz 31906 BLAKE2B 677fafa3875834c7602bc85b7246f50ed0dc49e886814c4562ce41a1a7baecfb4fb0bac42aada5339fe73cbd3fc5ac3b28076bf72a1e24591a947d747c6eb794 SHA512 44db9b48ab6be08c30f2121d68197a7347eaf3ee255649969a773afbe45ec2433e2cc082aa72f6d40dad7ea28345da858471fff9a129365a4e848df8c8c07689
diff --git a/dev-libs/libarcus/files/libarcus-4.8.0-deprecated-protobuf-calls.patch b/dev-libs/libarcus/files/libarcus-4.8.0-deprecated-protobuf-calls.patch
new file mode 100644
index 00000000000..659885d406e
--- /dev/null
+++ b/dev-libs/libarcus/files/libarcus-4.8.0-deprecated-protobuf-calls.patch
@@ -0,0 +1,30 @@
+--- a/src/Socket_p.h
++++ b/src/Socket_p.h
+@@ -128,9 +128,6 @@
+
+ static const int keep_alive_rate = 500; //Number of milliseconds between sending keepalive packets
+
+- // This value determines when protobuf should warn about very large messages.
+- static const int message_size_warning = 400 * 1048576;
+-
+ // This value determines when protobuf should error out because the message is too large.
+ // Due to the way Protobuf is implemented, messages large than 512MiB will cause issues.
+ static const int message_size_maximum = 500 * 1048576;
+@@ -362,7 +359,7 @@
+ return;
+ }
+
+- uint32_t message_size = message->ByteSize();
++ uint32_t message_size = message->ByteSizeLong();
+ if(platform_socket.writeUInt32(message_size) == -1)
+ {
+ error(ErrorCode::SendFailedError, "Could not send message size");
+@@ -548,7 +545,7 @@
+
+ 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));
diff --git a/dev-libs/libarcus/libarcus-4.8.0.ebuild b/dev-libs/libarcus/libarcus-4.8.0.ebuild
new file mode 100644
index 00000000000..b4abce1942f
--- /dev/null
+++ b/dev-libs/libarcus/libarcus-4.8.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+inherit cmake python-single-r1
+
+MY_PN="libArcus"
+
+DESCRIPTION="This library facilitates communication between Cura and its backend"
+HOMEPAGE="https://github.com/Ultimaker/libArcus"
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0/3"
+KEYWORDS="~amd64 ~arm64 ~x86"
+IUSE="examples +python static-libs"
+REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-libs/protobuf:=
+ $(python_gen_cond_dep '
+ dev-python/sip[${PYTHON_MULTI_USEDEP}]
+ python? ( dev-python/protobuf-python[${PYTHON_MULTI_USEDEP}] )
+ ')"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-deprecated-protobuf-calls.patch
+)
+
+pkg_setup() {
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # Find SIP for current python version, not the latest installed
+ sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" \
+ CMakeLists.txt cmake/FindSIP.cmake || die
+
+ cmake_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_EXAMPLES=$(usex examples ON OFF)
+ -DBUILD_PYTHON=$(usex python ON OFF)
+ -DBUILD_STATIC=$(usex static-libs ON OFF)
+ )
+
+ cmake_src_configure
+}
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-30 18:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-28 14:12 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libarcus/, dev-libs/libarcus/files/ Ian Delaney
-- strict thread matches above, loose matches on Subject: below --
2020-11-30 18:37 Dennis Lamm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox