1 |
commit: 3f456ecd53c42a7dd56df8a2ef51f3cffd57901d |
2 |
Author: Mathy Vanvoorden <mathy <AT> vanvoorden <DOT> be> |
3 |
AuthorDate: Mon Jun 7 15:57:40 2021 +0000 |
4 |
Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jun 10 17:40:52 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3f456ecd |
7 |
|
8 |
dev-libs/libcharon: Version bump to 4.9.1 |
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/libcharon/Manifest | 1 + |
16 |
dev-libs/libcharon/libcharon-4.9.1.ebuild | 73 +++++++++++++++++++++++++++++++ |
17 |
2 files changed, 74 insertions(+) |
18 |
|
19 |
diff --git a/dev-libs/libcharon/Manifest b/dev-libs/libcharon/Manifest |
20 |
index 0e334c6a336..3764ed0bee8 100644 |
21 |
--- a/dev-libs/libcharon/Manifest |
22 |
+++ b/dev-libs/libcharon/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST libcharon-4.8.0.tar.gz 151223 BLAKE2B fe4d2901908367569b45c466d31ac6e290979a8bd39c84f9c3ceb3ed91e9d9f1a789703fa5006706e21d77bd46b3185571df3f6157c7722e3e35244d27e0231c SHA512 33d3e9aa4e356fbf1d41555cfe2a5470d8f02b1d4f59d83e1ba89236b5e4489a93bdf24fad6f9bd2b0f843c053c485a082f5ee57437862ac40522aa61280b19c |
25 |
+DIST libcharon-4.9.1.tar.gz 151243 BLAKE2B 8557efe4667a83297a4bcfc8307e2322a379e52d50ad1648d873a923e182b3be1651a13c7402ac041fd134036a75a42e825adf2cc27271af218db44af7e48473 SHA512 41d611f8d3bf0f762a38a00c159104df04b73cd5c4f7e9ebcfe3ac9cdd0c8e31e505c4fd4ef8f8a6f1c02bf882bb3e14ea4e92c8b15169a91cbd1815e36310fa |
26 |
|
27 |
diff --git a/dev-libs/libcharon/libcharon-4.9.1.ebuild b/dev-libs/libcharon/libcharon-4.9.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..f7557d50913 |
30 |
--- /dev/null |
31 |
+++ b/dev-libs/libcharon/libcharon-4.9.1.ebuild |
32 |
@@ -0,0 +1,73 @@ |
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..9} ) |
39 |
+ |
40 |
+inherit cmake python-single-r1 |
41 |
+ |
42 |
+MY_PN="libCharon" |
43 |
+ |
44 |
+DESCRIPTION="This library facilitates communication between Cura and its backend" |
45 |
+HOMEPAGE="https://github.com/Ultimaker/libCharon" |
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 |
+ |
52 |
+IUSE="+client +dbus test" |
53 |
+RESTRICT="!test? ( test )" |
54 |
+ |
55 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
56 |
+RDEPEND=" |
57 |
+ ${PYTHON_DEPS} |
58 |
+ dbus? ( |
59 |
+ acct-group/ultimaker |
60 |
+ acct-user/ultimaker |
61 |
+ sys-apps/dbus |
62 |
+ )" |
63 |
+ |
64 |
+DEPEND="${PYTHON_DEPS} |
65 |
+ test? ( |
66 |
+ $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_MULTI_USEDEP}]') |
67 |
+ )" |
68 |
+ |
69 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
70 |
+ |
71 |
+src_prepare() { |
72 |
+ # use current python version, not the latest installed |
73 |
+ # fix python install location |
74 |
+ sed -i \ |
75 |
+ -e "s:find_package(Python3 3.4 REQUIRED:find_package(Python3 ${EPYTHON##python} EXACT REQUIRED:g" \ |
76 |
+ -e "s:lib\${LIB_SUFFIX}/python\${Python3_VERSION_MAJOR}\.\${Python3_VERSION_MINOR}/site-packages:$(python_get_sitedir):g" \ |
77 |
+ CMakeLists.txt || die |
78 |
+ |
79 |
+ sed -i -e "s:/usr/lib/python3/dist-packages/Charon/Service/main.py:$(python_get_sitedir)/Charon/Service/main.py:g" service/charon.service || die |
80 |
+ |
81 |
+ cmake_src_prepare |
82 |
+} |
83 |
+ |
84 |
+src_configure() { |
85 |
+ local mycmakeargs=( |
86 |
+ -DINSTALL_CLIENT=$(usex client ON OFF) |
87 |
+ -DINSTALL_SERVICE=$(usex dbus ON OFF) |
88 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
89 |
+ ) |
90 |
+ |
91 |
+ cmake_src_configure |
92 |
+} |
93 |
+ |
94 |
+src_install() { |
95 |
+ cmake_src_install |
96 |
+ |
97 |
+ python_optimize "${D}/usr/$(get_libdir)" |
98 |
+} |
99 |
+ |
100 |
+pkg_postinst() { |
101 |
+ if use dbus ; then |
102 |
+ elog "To start the Charon File Metadata service at boot, add it to the default runlevel with:" |
103 |
+ elog " systemctl enable charon" |
104 |
+ fi |
105 |
+} |