Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/replicatorg/
Date: Wed, 03 Jan 2018 18:39:25
Message-Id: 1515004700.e21b1b0fdcedb0852946c20d1f2cfcfebbaad5bc.soap@gentoo
1 commit: e21b1b0fdcedb0852946c20d1f2cfcfebbaad5bc
2 Author: David Seifert <soap <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 3 18:38:20 2018 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 3 18:38:20 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e21b1b0f
7
8 media-gfx/replicatorg: Port to EAPI 6
9
10 Package-Manager: Portage-2.3.19, Repoman-2.3.6
11
12 media-gfx/replicatorg/replicatorg-37-r2.ebuild | 72 ++++++++++++++------------
13 media-gfx/replicatorg/replicatorg-40-r1.ebuild | 72 ++++++++++++++------------
14 2 files changed, 80 insertions(+), 64 deletions(-)
15
16 diff --git a/media-gfx/replicatorg/replicatorg-37-r2.ebuild b/media-gfx/replicatorg/replicatorg-37-r2.ebuild
17 index fbb7b8981ea..d2ec0905f93 100644
18 --- a/media-gfx/replicatorg/replicatorg-37-r2.ebuild
19 +++ b/media-gfx/replicatorg/replicatorg-37-r2.ebuild
20 @@ -1,9 +1,9 @@
21 -# Copyright 1999-2017 Gentoo Foundation
22 +# Copyright 1999-2018 Gentoo Foundation
23 # Distributed under the terms of the GNU General Public License v2
24
25 -EAPI="3"
26 +EAPI=6
27
28 -inherit eutils versionator user
29 +inherit versionator user
30
31 MY_P="${PN}-00${PV}"
32
33 @@ -11,45 +11,30 @@ DESCRIPTION="ReplicatorG is a simple, open source 3D printing program"
34 HOMEPAGE="http://replicat.org/start https://github.com/makerbot/ReplicatorG"
35 SRC_URI="https://replicatorg.googlecode.com/files/${MY_P}-linux.tgz"
36
37 -SLOT="0"
38 LICENSE="GPL-2"
39 +SLOT="0"
40 KEYWORDS="~amd64 ~x86"
41 -
42 IUSE=""
43
44 -COMMON_DEPEND="dev-java/oracle-jre-bin"
45 +COMMON_DEPEND="dev-java/oracle-jre-bin:*"
46 RDEPEND="${COMMON_DEPEND}"
47 DEPEND="${COMMON_DEPEND}"
48
49 S="${WORKDIR}/${MY_P}"
50
51 +QA_WX_LOAD="
52 + /opt/replicatorg/skein_engines/slic3r_engines/linux/lib/vrt/f319e78215d06c9bbdc612ed9aef7e56/SSLeay.so
53 + /opt/replicatorg/skein_engines/slic3r_engines/linux/lib/vrt/80ccae99bc6b1afe192d6aa7724673cf/SSLeay.so"
54 +QA_TEXTRELS="
55 + /opt/replicatorg/skein_engines/slic3r_engines/linux/lib/vrt/f319e78215d06c9bbdc612ed9aef7e56/SSLeay.so
56 + /opt/replicatorg/skein_engines/slic3r_engines/linux/lib/vrt/80ccae99bc6b1afe192d6aa7724673cf/SSLeay.so
57 + /opt/replicatorg/lib-i686/libj3dcore-ogl.so
58 + /opt/replicatorg/lib-i686/libj3dcore-ogl-cg.so"
59 +
60 pkg_setup() {
61 enewgroup replicator
62 }
63
64 -pkg_postinst() {
65 - elog "Replicatorg requires Sun/Oracle JRE and will not work with OpenJDK."
66 - elog
67 - elog "Ensure that your user account has permissions to access serial port,"
68 - elog "if you plan to connect directly to a 3d printer rather than using"
69 - elog "a flash card. Printing directly from replicatorg is preferred."
70 - elog
71 - elog "The replicator printer will likely show up in /dev as ttyACM0."
72 - elog "You may want to autoload the cdc_acm kernel module."
73 - elog
74 - elog "Note that replicatorg includes its own version of skeinforge."
75 - elog "There doesn't seem to be a simple way to depend on an external"
76 - elog "version."
77 - elog
78 - elog "Replicatorg users should add themselves to the replicator group"
79 - elog "to avoid upstream warnings about not being able to modify shared"
80 - elog "skeinforge scripts."
81 - elog
82 - chmod -R g+w "${ROOT}"/opt/replicatorg
83 - chown -R root:replicator "${ROOT}"/opt/replicatorg
84 - chmod 0755 /opt/replicatorg
85 -}
86 -
87 src_install() {
88 dodir \
89 /opt/replicatorg \
90 @@ -61,7 +46,8 @@ src_install() {
91
92 dobin "${FILESDIR}"/replicatorg
93
94 - /bin/cp -R --preserve=mode \
95 + insinto /opt/replicatorg/
96 + doins -r \
97 docs \
98 examples \
99 lib \
100 @@ -71,8 +57,7 @@ src_install() {
101 scripts \
102 replicatorg \
103 skein_engines \
104 - tools \
105 - "${D}"/opt/replicatorg/
106 + tools
107
108 insinto /usr/share/replicatorg
109 doins -r \
110 @@ -80,5 +65,28 @@ src_install() {
111 license.txt \
112 readme.txt \
113 todo.txt
114 +}
115
116 +pkg_postinst() {
117 + elog "Replicatorg requires Sun/Oracle JRE and will not work with OpenJDK."
118 + elog
119 + elog "Ensure that your user account has permissions to access serial port,"
120 + elog "if you plan to connect directly to a 3d printer rather than using"
121 + elog "a flash card. Printing directly from replicatorg is preferred."
122 + elog
123 + elog "The replicator printer will likely show up in /dev as ttyACM0."
124 + elog "You may want to autoload the cdc_acm kernel module."
125 + elog
126 + elog "Note that replicatorg includes its own version of skeinforge."
127 + elog "There doesn't seem to be a simple way to depend on an external"
128 + elog "version."
129 + elog
130 + elog "Replicatorg users should add themselves to the replicator group"
131 + elog "to avoid upstream warnings about not being able to modify shared"
132 + elog "skeinforge scripts."
133 + elog
134 +
135 + chmod -R g+w "${EROOT%/}"/opt/replicatorg
136 + chown -R root:replicator "${EROOT%/}"/opt/replicatorg
137 + chmod 0755 /opt/replicatorg
138 }
139
140 diff --git a/media-gfx/replicatorg/replicatorg-40-r1.ebuild b/media-gfx/replicatorg/replicatorg-40-r1.ebuild
141 index 2653c8696e8..217806f00c4 100644
142 --- a/media-gfx/replicatorg/replicatorg-40-r1.ebuild
143 +++ b/media-gfx/replicatorg/replicatorg-40-r1.ebuild
144 @@ -1,9 +1,9 @@
145 -# Copyright 1999-2017 Gentoo Foundation
146 +# Copyright 1999-2018 Gentoo Foundation
147 # Distributed under the terms of the GNU General Public License v2
148
149 -EAPI="3"
150 +EAPI=6
151
152 -inherit eutils versionator user
153 +inherit versionator user
154
155 MY_P="${PN}-00${PV}"
156
157 @@ -11,45 +11,30 @@ DESCRIPTION="ReplicatorG is a simple, open source 3D printing program"
158 HOMEPAGE="http://replicat.org/start https://github.com/makerbot/ReplicatorG"
159 SRC_URI="https://replicatorg.googlecode.com/files/${MY_P}-linux.tgz"
160
161 -SLOT="0"
162 LICENSE="GPL-2"
163 +SLOT="0"
164 KEYWORDS=""
165 -
166 IUSE=""
167
168 -COMMON_DEPEND="dev-java/oracle-jre-bin"
169 +COMMON_DEPEND="dev-java/oracle-jre-bin:*"
170 RDEPEND="${COMMON_DEPEND}"
171 DEPEND="${COMMON_DEPEND}"
172
173 S="${WORKDIR}/${MY_P}"
174
175 +QA_WX_LOAD="
176 + /opt/replicatorg/skein_engines/slic3r_engines/linux/lib/vrt/f319e78215d06c9bbdc612ed9aef7e56/SSLeay.so
177 + /opt/replicatorg/skein_engines/slic3r_engines/linux/lib/vrt/80ccae99bc6b1afe192d6aa7724673cf/SSLeay.so"
178 +QA_TEXTRELS="
179 + /opt/replicatorg/skein_engines/slic3r_engines/linux/lib/vrt/f319e78215d06c9bbdc612ed9aef7e56/SSLeay.so
180 + /opt/replicatorg/skein_engines/slic3r_engines/linux/lib/vrt/80ccae99bc6b1afe192d6aa7724673cf/SSLeay.so
181 + /opt/replicatorg/lib-i686/libj3dcore-ogl.so
182 + /opt/replicatorg/lib-i686/libj3dcore-ogl-cg.so"
183 +
184 pkg_setup() {
185 enewgroup replicator
186 }
187
188 -pkg_postinst() {
189 - elog "Replicatorg requires Sun/Oracle JRE and will not work with OpenJDK."
190 - elog
191 - elog "Ensure that your user account has permissions to access serial port,"
192 - elog "if you plan to connect directly to a 3d printer rather than using"
193 - elog "a flash card. Printing directly from replicatorg is preferred."
194 - elog
195 - elog "The replicator printer will likely show up in /dev as ttyACM0."
196 - elog "You may want to autoload the cdc_acm kernel module."
197 - elog
198 - elog "Note that replicatorg includes its own version of skeinforge."
199 - elog "There doesn't seem to be a simple way to depend on an external"
200 - elog "version."
201 - elog
202 - elog "Replicatorg users should add themselves to the replicator group"
203 - elog "to avoid upstream warnings about not being able to modify shared"
204 - elog "skeinforge scripts."
205 - elog
206 - chmod -R g+w "${ROOT}"/opt/replicatorg
207 - chown -R root:replicator "${ROOT}"/opt/replicatorg
208 - chmod 0755 /opt/replicatorg
209 -}
210 -
211 src_install() {
212 dodir \
213 /opt/replicatorg \
214 @@ -61,7 +46,8 @@ src_install() {
215
216 dobin "${FILESDIR}"/replicatorg
217
218 - /bin/cp -R --preserve=mode \
219 + insinto /opt/replicatorg/
220 + doins -r \
221 docs \
222 examples \
223 lib \
224 @@ -71,8 +57,7 @@ src_install() {
225 scripts \
226 replicatorg \
227 skein_engines \
228 - tools \
229 - "${D}"/opt/replicatorg/
230 + tools
231
232 insinto /usr/share/replicatorg
233 doins -r \
234 @@ -80,5 +65,28 @@ src_install() {
235 license.txt \
236 readme.txt \
237 todo.txt
238 +}
239
240 +pkg_postinst() {
241 + elog "Replicatorg requires Sun/Oracle JRE and will not work with OpenJDK."
242 + elog
243 + elog "Ensure that your user account has permissions to access serial port,"
244 + elog "if you plan to connect directly to a 3d printer rather than using"
245 + elog "a flash card. Printing directly from replicatorg is preferred."
246 + elog
247 + elog "The replicator printer will likely show up in /dev as ttyACM0."
248 + elog "You may want to autoload the cdc_acm kernel module."
249 + elog
250 + elog "Note that replicatorg includes its own version of skeinforge."
251 + elog "There doesn't seem to be a simple way to depend on an external"
252 + elog "version."
253 + elog
254 + elog "Replicatorg users should add themselves to the replicator group"
255 + elog "to avoid upstream warnings about not being able to modify shared"
256 + elog "skeinforge scripts."
257 + elog
258 +
259 + chmod -R g+w "${EROOT%/}"/opt/replicatorg
260 + chown -R root:replicator "${EROOT%/}"/opt/replicatorg
261 + chmod 0755 /opt/replicatorg
262 }