1 |
commit: ce580e49f575319186322d8e757c4c9b68ab54ab |
2 |
Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Nov 29 08:53:01 2020 +0000 |
4 |
Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 30 18:37:39 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce580e49 |
7 |
|
8 |
dev-libs/libcharon: bump to 4.8.0 |
9 |
|
10 |
Signed-off-by: Dennis Lamm <expeditoneer <AT> gentoo.org> |
11 |
Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org> |
12 |
|
13 |
dev-libs/libcharon/Manifest | 1 + |
14 |
dev-libs/libcharon/libcharon-4.8.0.ebuild | 73 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 74 insertions(+) |
16 |
|
17 |
diff --git a/dev-libs/libcharon/Manifest b/dev-libs/libcharon/Manifest |
18 |
index 110aac1b7d4..4a508101123 100644 |
19 |
--- a/dev-libs/libcharon/Manifest |
20 |
+++ b/dev-libs/libcharon/Manifest |
21 |
@@ -1,2 +1,3 @@ |
22 |
DIST libcharon-4.6.1.tar.gz 145486 BLAKE2B 43a3bcddf128da9305711757b707394b5b0c23da27e27c3615d521e0af79683b2a525fefa7ae877581b56dae4c1dd7036c3189c17f8f86c92492b46e129a22b3 SHA512 43f7606529a933067bcb82a16e95d76f713a7847535887968c2933131d3197ec6127376e10c7d5f1debd218fc902962329fe22d4f9229b434a804daff94122cc |
23 |
DIST libcharon-4.7.0.tar.gz 151221 BLAKE2B af9fe83e07303e1ff296b878c9745a329531a9957ad16a9b39b36e53f3f2275f850806b6d1a51638013c7148f3ee68b92489a67629a6026056a8c4ed3f2338b1 SHA512 690ce086bf8bba3eee2ce087d02ce00c23a7ac4079b0a2961c05cf75d461b0d5dee0c1f86ed769b50f1cd9ef83d8570a54f4fac628e0c19a5a593138292bc64c |
24 |
+DIST libcharon-4.8.0.tar.gz 151223 BLAKE2B fe4d2901908367569b45c466d31ac6e290979a8bd39c84f9c3ceb3ed91e9d9f1a789703fa5006706e21d77bd46b3185571df3f6157c7722e3e35244d27e0231c SHA512 33d3e9aa4e356fbf1d41555cfe2a5470d8f02b1d4f59d83e1ba89236b5e4489a93bdf24fad6f9bd2b0f843c053c485a082f5ee57437862ac40522aa61280b19c |
25 |
|
26 |
diff --git a/dev-libs/libcharon/libcharon-4.8.0.ebuild b/dev-libs/libcharon/libcharon-4.8.0.ebuild |
27 |
new file mode 100644 |
28 |
index 00000000000..8d711b6d6bd |
29 |
--- /dev/null |
30 |
+++ b/dev-libs/libcharon/libcharon-4.8.0.ebuild |
31 |
@@ -0,0 +1,73 @@ |
32 |
+# Copyright 1999-2020 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{6..9} ) |
38 |
+ |
39 |
+inherit cmake python-single-r1 |
40 |
+ |
41 |
+MY_PN="libCharon" |
42 |
+ |
43 |
+DESCRIPTION="This library facilitates communication between Cura and its backend" |
44 |
+HOMEPAGE="https://github.com/Ultimaker/libCharon" |
45 |
+SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
46 |
+ |
47 |
+LICENSE="LGPL-3" |
48 |
+SLOT="0/3" |
49 |
+KEYWORDS="~amd64 ~arm64 ~x86" |
50 |
+ |
51 |
+IUSE="+client +dbus test" |
52 |
+RESTRICT="!test? ( test )" |
53 |
+ |
54 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
55 |
+RDEPEND=" |
56 |
+ ${PYTHON_DEPS} |
57 |
+ dbus? ( |
58 |
+ acct-group/ultimaker |
59 |
+ acct-user/ultimaker |
60 |
+ sys-apps/dbus |
61 |
+ )" |
62 |
+ |
63 |
+DEPEND="${PYTHON_DEPS} |
64 |
+ test? ( |
65 |
+ $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_MULTI_USEDEP}]') |
66 |
+ )" |
67 |
+ |
68 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
69 |
+ |
70 |
+src_prepare() { |
71 |
+ # use current python version, not the latest installed |
72 |
+ # fix python install location |
73 |
+ sed -i \ |
74 |
+ -e "s:find_package(Python3 3.4 REQUIRED:find_package(Python3 ${EPYTHON##python} EXACT REQUIRED:g" \ |
75 |
+ -e "s:lib\${LIB_SUFFIX}/python\${Python3_VERSION_MAJOR}\.\${Python3_VERSION_MINOR}/site-packages:$(python_get_sitedir):g" \ |
76 |
+ CMakeLists.txt || die |
77 |
+ |
78 |
+ 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 |
79 |
+ |
80 |
+ cmake_src_prepare |
81 |
+} |
82 |
+ |
83 |
+src_configure() { |
84 |
+ local mycmakeargs=( |
85 |
+ -DINSTALL_CLIENT=$(usex client ON OFF) |
86 |
+ -DINSTALL_SERVICE=$(usex dbus ON OFF) |
87 |
+ -DPython3_EXECUTABLE="${PYTHON}" |
88 |
+ ) |
89 |
+ |
90 |
+ cmake_src_configure |
91 |
+} |
92 |
+ |
93 |
+src_install() { |
94 |
+ cmake_src_install |
95 |
+ |
96 |
+ python_optimize "${D}/usr/$(get_libdir)" |
97 |
+} |
98 |
+ |
99 |
+pkg_postinst() { |
100 |
+ if use dbus ; then |
101 |
+ elog "To start the Charon File Metadata service at boot, add it to the default runlevel with:" |
102 |
+ elog " systemctl enable charon" |
103 |
+ fi |
104 |
+} |