Gentoo Archives: gentoo-commits

From: Matthew Smith <matthew@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libarcus/
Date: Mon, 28 Feb 2022 19:44:01
Message-Id: 1646077373.ae9eee5d13cbb09e546c6a9dce4a02dbbcd65986.matthew@gentoo
1 commit: ae9eee5d13cbb09e546c6a9dce4a02dbbcd65986
2 Author: Matthew Smith <matthew <AT> gentoo <DOT> org>
3 AuthorDate: Mon Feb 28 19:09:00 2022 +0000
4 Commit: Matthew Smith <matthew <AT> gentoo <DOT> org>
5 CommitDate: Mon Feb 28 19:42:53 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ae9eee5d
7
8 dev-libs/libarcus: add 4.13.0
9
10 Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>
11
12 dev-libs/libarcus/Manifest | 1 +
13 dev-libs/libarcus/libarcus-4.13.0.ebuild | 56 ++++++++++++++++++++++++++++++++
14 2 files changed, 57 insertions(+)
15
16 diff --git a/dev-libs/libarcus/Manifest b/dev-libs/libarcus/Manifest
17 index bec981030d04..ec151c0e8f51 100644
18 --- a/dev-libs/libarcus/Manifest
19 +++ b/dev-libs/libarcus/Manifest
20 @@ -1,2 +1,3 @@
21 DIST libarcus-4.12.1.tar.gz 32079 BLAKE2B 0efc45f3ddb4d08f960b2a629b0ad58cad9cbf16e90d75ca4f63706acb3ce8625dbe7c51c9265074f3104b66f23385c41e865fbc603a0b43c848c55a95b1f971 SHA512 0b2f2a0b4c3492725b83f2c8b0bb38a2cba10c27317cedd722b27447f0e36c571f1ae7a796de29cfb30e9827f35449327cc20c21780212fdeb35d05c90c3e2e6
22 +DIST libarcus-4.13.0.tar.gz 32079 BLAKE2B 56ddd99c347936770c5b2a99d337784605a27fda2c8a16e1537b25f5ff4d2ccead20e4992aed6cfba439be73a42dc2785da9681e80bc1a7c0ef0aa3a2c33f630 SHA512 a48ab1cb286c13b817363e113707499f2619724c8d2f7672309f9aad78123a89f60e60e92932d8761af87ec5f868f8c319717457532d45e3f2d8e5c3cc010db5
23 DIST libarcus-4.9.1.tar.gz 31967 BLAKE2B 2ee827c3f1f592ac1efa7557a2cbfa9cf9fd2d43a7be7fd803f94f7b51c9a03be1078d3df319e1bbe2bc37b6ec3a1c6f16996c4e3b6251dd06f6031dd32ad2a9 SHA512 5124b80647cb0715ad94c5eaaeac797a867319de9a8064b689783fdb28598903a69e3a61393db90f5e0b3d10ee30aed844170cab63dc4b7c70509d5129a17cdd
24
25 diff --git a/dev-libs/libarcus/libarcus-4.13.0.ebuild b/dev-libs/libarcus/libarcus-4.13.0.ebuild
26 new file mode 100644
27 index 000000000000..119faccb2d4b
28 --- /dev/null
29 +++ b/dev-libs/libarcus/libarcus-4.13.0.ebuild
30 @@ -0,0 +1,56 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=8
35 +
36 +PYTHON_COMPAT=( python3_{8..10} )
37 +
38 +inherit cmake python-single-r1
39 +
40 +MY_PN="libArcus"
41 +
42 +DESCRIPTION="This library facilitates communication between Cura and its backend"
43 +HOMEPAGE="https://github.com/Ultimaker/libArcus"
44 +SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="LGPL-3"
47 +SLOT="0/3"
48 +KEYWORDS="~amd64 ~arm64 ~x86"
49 +IUSE="examples +python static-libs"
50 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
51 +
52 +RDEPEND="${PYTHON_DEPS}
53 + dev-libs/protobuf:=
54 + $(python_gen_cond_dep '
55 + <dev-python/sip-5[${PYTHON_USEDEP}]
56 + python? ( dev-python/protobuf-python[${PYTHON_USEDEP}] )
57 + ')"
58 +DEPEND="${RDEPEND}"
59 +
60 +S="${WORKDIR}/${MY_PN}-${PV}"
61 +
62 +PATCHES=(
63 + "${FILESDIR}"/${PN}-4.8.0-deprecated-protobuf-calls.patch
64 +)
65 +
66 +pkg_setup() {
67 + use python && python-single-r1_pkg_setup
68 +}
69 +
70 +src_prepare() {
71 + # Find SIP for current python version, not the latest installed
72 + sed -i "s/find_package(Python3 3.4 REQUIRED/find_package(Python3 ${EPYTHON##python} EXACT REQUIRED/g" \
73 + CMakeLists.txt cmake/FindSIP.cmake || die
74 +
75 + cmake_src_prepare
76 +}
77 +
78 +src_configure() {
79 + local mycmakeargs=(
80 + -DBUILD_EXAMPLES=$(usex examples ON OFF)
81 + -DBUILD_PYTHON=$(usex python ON OFF)
82 + -DBUILD_STATIC=$(usex static-libs ON OFF)
83 + )
84 +
85 + cmake_src_configure
86 +}