Gentoo Archives: gentoo-commits

From: Dennis Lamm <expeditioneer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: acct-user/ultimaker/, dev-libs/libcharon/, acct-group/ultimaker/
Date: Mon, 31 Aug 2020 04:36:25
Message-Id: 1598848576.dcf01ac58265770e794a20de4cdb2a1fcdef69be.expeditioneer@gentoo
1 commit: dcf01ac58265770e794a20de4cdb2a1fcdef69be
2 Author: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 30 17:18:28 2020 +0000
4 Commit: Dennis Lamm <expeditioneer <AT> gentoo <DOT> org>
5 CommitDate: Mon Aug 31 04:36:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcf01ac5
7
8 dev-libs/libcharon: version bump 4.7.0
9
10 Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
11 Closes: https://github.com/gentoo/gentoo/pull/17236
12 Signed-off-by: Dennis Lamm <expeditioneer <AT> gentoo.org>
13
14 acct-group/ultimaker/metadata.xml | 8 ++++
15 acct-group/ultimaker/ultimaker-0.ebuild | 9 ++++
16 acct-user/ultimaker/metadata.xml | 8 ++++
17 acct-user/ultimaker/ultimaker-0.ebuild | 12 +++++
18 dev-libs/libcharon/Manifest | 1 +
19 dev-libs/libcharon/libcharon-4.7.0.ebuild | 73 +++++++++++++++++++++++++++++++
20 dev-libs/libcharon/metadata.xml | 6 +++
21 7 files changed, 117 insertions(+)
22
23 diff --git a/acct-group/ultimaker/metadata.xml b/acct-group/ultimaker/metadata.xml
24 new file mode 100644
25 index 00000000000..ffe9ae031fb
26 --- /dev/null
27 +++ b/acct-group/ultimaker/metadata.xml
28 @@ -0,0 +1,8 @@
29 +<?xml version="1.0" encoding="UTF-8"?>
30 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
31 +<pkgmetadata>
32 + <maintainer type="project">
33 + <email>3dprint@g.o</email>
34 + <name>Gentoo 3D Printer Project</name>
35 + </maintainer>
36 +</pkgmetadata>
37
38 diff --git a/acct-group/ultimaker/ultimaker-0.ebuild b/acct-group/ultimaker/ultimaker-0.ebuild
39 new file mode 100644
40 index 00000000000..af415ea3785
41 --- /dev/null
42 +++ b/acct-group/ultimaker/ultimaker-0.ebuild
43 @@ -0,0 +1,9 @@
44 +# Copyright 2020 Gentoo Authors
45 +# Distributed under the terms of the GNU General Public License v2
46 +
47 +EAPI=7
48 +
49 +inherit acct-group
50 +
51 +DESCRIPTION="Group for ultimaker"
52 +ACCT_GROUP_ID=369
53
54 diff --git a/acct-user/ultimaker/metadata.xml b/acct-user/ultimaker/metadata.xml
55 new file mode 100644
56 index 00000000000..ffe9ae031fb
57 --- /dev/null
58 +++ b/acct-user/ultimaker/metadata.xml
59 @@ -0,0 +1,8 @@
60 +<?xml version="1.0" encoding="UTF-8"?>
61 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
62 +<pkgmetadata>
63 + <maintainer type="project">
64 + <email>3dprint@g.o</email>
65 + <name>Gentoo 3D Printer Project</name>
66 + </maintainer>
67 +</pkgmetadata>
68
69 diff --git a/acct-user/ultimaker/ultimaker-0.ebuild b/acct-user/ultimaker/ultimaker-0.ebuild
70 new file mode 100644
71 index 00000000000..547a4b09a66
72 --- /dev/null
73 +++ b/acct-user/ultimaker/ultimaker-0.ebuild
74 @@ -0,0 +1,12 @@
75 +# Copyright 2020 Gentoo Authors
76 +# Distributed under the terms of the GNU General Public License v2
77 +
78 +EAPI=7
79 +
80 +inherit acct-user
81 +
82 +DESCRIPTION="User for ultimaker"
83 +ACCT_USER_ID=369
84 +ACCT_USER_GROUPS=( ${PN} )
85 +
86 +acct-user_add_deps
87
88 diff --git a/dev-libs/libcharon/Manifest b/dev-libs/libcharon/Manifest
89 index a6fd1bb6f85..ade0148767f 100644
90 --- a/dev-libs/libcharon/Manifest
91 +++ b/dev-libs/libcharon/Manifest
92 @@ -3,3 +3,4 @@ DIST libcharon-3.6.0.tar.gz 143947 BLAKE2B 5787f734e0d494eb9fc151fcf240c36b0ade3
93 DIST libcharon-4.2.0.tar.gz 145482 BLAKE2B 38f2efa1c19f81646e8b9692c57d71dda0a53fcc7c120e973f8faf55a0d92d4f8daa21e3debb873f4965f37c7e1cf0f5f1aaaebb9d078565d4fcb3edc57c9314 SHA512 4011cba788ed1789c0f364d605dfe2fc775a1f5e0ab9f0457454094f9cc3a400fdc7241692e88abae968e32e3c5394bef95cd3f77d2c68e4dbfc73ed27905b86
94 DIST libcharon-4.3.0.tar.gz 145484 BLAKE2B cbb0edca76921c32b69809dfa8e07c07baedba90ff3c8f2ad5128cc1efa60e34f0f96c1936567825f7e876d298ef1ed4c10d0058f5b3697f87c412891654fabb SHA512 77ed18fbd11c008659a02419250647c9c977a57772d648f4af353c637224ba586006665e60e7fa2394b9f8cf53359a6211b936b5920ccc379754a743dbf2416f
95 DIST libcharon-4.6.1.tar.gz 145486 BLAKE2B 43a3bcddf128da9305711757b707394b5b0c23da27e27c3615d521e0af79683b2a525fefa7ae877581b56dae4c1dd7036c3189c17f8f86c92492b46e129a22b3 SHA512 43f7606529a933067bcb82a16e95d76f713a7847535887968c2933131d3197ec6127376e10c7d5f1debd218fc902962329fe22d4f9229b434a804daff94122cc
96 +DIST libcharon-4.7.0.tar.gz 151221 BLAKE2B af9fe83e07303e1ff296b878c9745a329531a9957ad16a9b39b36e53f3f2275f850806b6d1a51638013c7148f3ee68b92489a67629a6026056a8c4ed3f2338b1 SHA512 690ce086bf8bba3eee2ce087d02ce00c23a7ac4079b0a2961c05cf75d461b0d5dee0c1f86ed769b50f1cd9ef83d8570a54f4fac628e0c19a5a593138292bc64c
97
98 diff --git a/dev-libs/libcharon/libcharon-4.7.0.ebuild b/dev-libs/libcharon/libcharon-4.7.0.ebuild
99 new file mode 100644
100 index 00000000000..5ebb18cff1f
101 --- /dev/null
102 +++ b/dev-libs/libcharon/libcharon-4.7.0.ebuild
103 @@ -0,0 +1,73 @@
104 +# Copyright 1999-2020 Gentoo Authors
105 +# Distributed under the terms of the GNU General Public License v2
106 +
107 +EAPI=7
108 +
109 +PYTHON_COMPAT=( python3_{6..9} )
110 +
111 +inherit cmake python-single-r1
112 +
113 +MY_PN="libCharon"
114 +
115 +DESCRIPTION="This library facilitates communication between Cura and its backend"
116 +HOMEPAGE="https://github.com/Ultimaker/libCharon"
117 +SRC_URI="https://github.com/Ultimaker/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
118 +
119 +LICENSE="LGPL-3"
120 +SLOT="0/3"
121 +KEYWORDS="~amd64 ~x86"
122 +
123 +IUSE="+client +dbus test"
124 +RESTRICT="!test? ( test )"
125 +
126 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
127 +RDEPEND="
128 + ${PYTHON_DEPS}
129 + dbus? (
130 + acct-group/ultimaker
131 + acct-user/ultimaker
132 + sys-apps/dbus
133 + )"
134 +
135 +DEPEND="${PYTHON_DEPS}
136 + test? (
137 + $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_MULTI_USEDEP}]')
138 + )"
139 +
140 +S="${WORKDIR}/${MY_PN}-${PV}"
141 +
142 +src_prepare() {
143 + # use current python version, not the latest installed
144 + # fix python install location
145 + sed -i \
146 + -e "s:find_package(Python3 3.4 REQUIRED:find_package(Python3 ${EPYTHON##python} EXACT REQUIRED:g" \
147 + -e "s:lib\${LIB_SUFFIX}/python\${Python3_VERSION_MAJOR}\.\${Python3_VERSION_MINOR}/site-packages:$(python_get_sitedir):g" \
148 + CMakeLists.txt || die
149 +
150 + 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
151 +
152 + cmake_src_prepare
153 +}
154 +
155 +src_configure() {
156 + local mycmakeargs=(
157 + -DINSTALL_CLIENT=$(usex client ON OFF)
158 + -DINSTALL_SERVICE=$(usex dbus ON OFF)
159 + -DPython3_EXECUTABLE="${PYTHON}"
160 + )
161 +
162 + cmake_src_configure
163 +}
164 +
165 +src_install() {
166 + cmake_src_install
167 +
168 + python_optimize "${D}/usr/$(get_libdir)"
169 +}
170 +
171 +pkg_postinst() {
172 + if use dbus ; then
173 + elog "To start the Charon File Metadata service at boot, add it to the default runlevel with:"
174 + elog " systemctl enable charon"
175 + fi
176 +}
177
178 diff --git a/dev-libs/libcharon/metadata.xml b/dev-libs/libcharon/metadata.xml
179 index 56f0a7df863..8ac90e1ed2c 100644
180 --- a/dev-libs/libcharon/metadata.xml
181 +++ b/dev-libs/libcharon/metadata.xml
182 @@ -24,6 +24,12 @@
183 <slots>
184 <subslots>soname major version number</subslots>
185 </slots>
186 + <longdescription>
187 + Library to read and write several 3D-printing related file formats including G-Code and Ultimaker File Package (UFP).
188 + </longdescription>
189 + <use>
190 + <flag name="client">Install the charon client library</flag>
191 + </use>
192 <upstream>
193 <remote-id type="github">Ultimaker/libCharon</remote-id>
194 </upstream>