Gentoo Archives: gentoo-commits

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