1 |
commit: 7061259150fb5832c68a3ffc0b83242049e2ee63 |
2 |
Author: Zoltan Puskas <zoltan <AT> sinustrom <DOT> info> |
3 |
AuthorDate: Tue Oct 27 02:41:27 2015 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Nov 1 03:51:35 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70612591 |
7 |
|
8 |
sci-electronics/kicad: bump to KiCad-4.0.0-rc1 |
9 |
|
10 |
New use flags: examples, github, i18n, minimal, python, webkit. |
11 |
More languages for i18n. Package source now downloads from project |
12 |
website. Update dependencies and address wxwidgets upgrade issue. |
13 |
USE flag 'debug' made functional in the bumped ebuild. Remove |
14 |
outdated kicad-20130518.ebuild |
15 |
|
16 |
Gentoo-Bug: #560768 |
17 |
Gentoo-Bug: #499040 |
18 |
Gentoo-Bug: #560766 |
19 |
|
20 |
Pull request https://github.com/gentoo/gentoo/pull/313 |
21 |
|
22 |
sci-electronics/kicad/Manifest | 5 +- |
23 |
.../kicad/files/kicad-desktop-file.patch | 35 ---- |
24 |
.../kicad/files/kicad-missing-doc.patch | 25 --- |
25 |
.../kicad/files/kicad-native-boost.patch | 27 --- |
26 |
sci-electronics/kicad/files/kicad-scripts.patch | 25 --- |
27 |
sci-electronics/kicad/kicad-20130518.ebuild | 129 --------------- |
28 |
sci-electronics/kicad/kicad-4.0.0_rc1.ebuild | 183 +++++++++++++++++++++ |
29 |
sci-electronics/kicad/metadata.xml | 11 +- |
30 |
8 files changed, 196 insertions(+), 244 deletions(-) |
31 |
|
32 |
diff --git a/sci-electronics/kicad/Manifest b/sci-electronics/kicad/Manifest |
33 |
index 8d9fa05..37addfd 100644 |
34 |
--- a/sci-electronics/kicad/Manifest |
35 |
+++ b/sci-electronics/kicad/Manifest |
36 |
@@ -1,2 +1,3 @@ |
37 |
-DIST kicad-2013-05-18-BZR4017-stable-UBUNTU_12.04_full_with_components_doc.tgz 280828915 SHA256 48c91acb9d4f45c7eebbcf4d602841896f11f22bb00721c62d351dd7241efd0b SHA512 8c4b81077c7e23bae6ad6a167fca7e34c006fc6a2a28457ddc276bef94ab43f6bf29f460a9ed5d9e564ef144a106ee82362b3cead3ca64b1361466d8d390619d WHIRLPOOL ed51fdc7ee287d65f4002250e79652d791d2aebe2fc872e1b853cfeccd287bf548346824ffc9afb599ff21721e972db7a5b3c134c662e883cd7d1e5c5b6c5abe |
38 |
-DIST kicad-sources-stable_2013-05-18_BZR4017.zip 15025159 SHA256 cb9ca0d19e5ea8ca45c731eeddbd8a242eb696e619ee98af91f2c7a0095b393d SHA512 747e4719a426646cf38b9951d28aea32085d672371426b44d9f9a575b55e051925ae3fd6c98aea6fa2c21c2c6a6a2f6cc2da461c882b854d033f5d1ce58384ba WHIRLPOOL 69dbeed6da6d1400207c048a49008d6b0876df184d64c520b82e7e82e3826a04ada5563551f1498244ee4d67ec7731f81285a604e671ee73f6518f211ecb8ef0 |
39 |
+DIST kicad-4.0.0-rc1.tar.xz 10951000 SHA256 62c2e95a2d6b8a3cf30bb91146c3d2b1c0df0cbfc070b6e54bcfdf0da2df6973 SHA512 f158906b85e3c4032086c4a75563d47f75f183bc354e1f2fa55e157083005b51829c141e14171dea9092b9b24b6b5ff1c71e3ae485dd1d2d44fe7e63179c1ffa WHIRLPOOL 755fde28cf45196bb60ffb6af7bc0acb92148310ad74807ef71404c418557bc2c6243f41e9040c0217dc970061df09a4092e2a5e52e016888660e4998153c95a |
40 |
+DIST kicad-4.0.0_rc1-i18n.tar.gz 1959024 SHA256 5fbd037e4a76a83ed6be7554ab1add98f7d93dce0db5fea6a0bcd58ef61486bd SHA512 85c2db5d193cd4d1521eb9f454a13892680cb5340c3b86b264bceb36ce0c996f818b64c3edd9dae3ff51046c97ba33702649a1083a36f27a80d316f64465f630 WHIRLPOOL 8141fb59822fdda2bf46a9b8af7fe75d6557a1c3f384e5e2b03e58c5e4c9eca4f167a262f2ed9fd3479c64a8730ff1ba3f46f6cb72c680df9c6d6173ca611ada |
41 |
+DIST kicad-4.0.0_rc1-library.tar.gz 87967616 SHA256 09a9e184e19b6072efdc00fabb65e3c0d498858c17f5fa5ce8d255b21eab3db4 SHA512 f611015a8760d3c9cf26fd99a043d69fa75d398fb287af7e6fe7cfbd70d3ff1aa67abcedeffa00fef60434e3944ac6b59fa4ac9ea50097d910fbabcb6f288165 WHIRLPOOL 83585bbc772da122139dfa643c4045bfef207ea8dbc4a83a5458be6227ff976fe9c48cea2388f9ec0b20e7c697579701b75231b852161b33a9c51ddef480c6f4 |
42 |
|
43 |
diff --git a/sci-electronics/kicad/files/kicad-desktop-file.patch b/sci-electronics/kicad/files/kicad-desktop-file.patch |
44 |
deleted file mode 100644 |
45 |
index 7f982f7..0000000 |
46 |
--- a/sci-electronics/kicad/files/kicad-desktop-file.patch |
47 |
+++ /dev/null |
48 |
@@ -1,35 +0,0 @@ |
49 |
-From cacd01f36db6277111a35fe60ad4762ee3b002e1 Mon Sep 17 00:00:00 2001 |
50 |
-From: Denis Dupeyron <calchan@g.o> |
51 |
-Date: Thu, 18 Apr 2013 15:17:36 -0600 |
52 |
-Subject: [PATCH] Fix desktop category and semicolon |
53 |
- |
54 |
---- |
55 |
- resources/linux/mime/applications/eeschema.desktop | 2 +- |
56 |
- resources/linux/mime/applications/kicad.desktop | 2 +- |
57 |
- 2 files changed, 2 insertions(+), 2 deletions(-) |
58 |
- |
59 |
-diff --git a/resources/linux/mime/applications/eeschema.desktop b/resources/linux/mime/applications/eeschema.desktop |
60 |
-index 3042eae..0ed616c 100644 |
61 |
---- a/resources/linux/mime/applications/eeschema.desktop |
62 |
-+++ b/resources/linux/mime/applications/eeschema.desktop |
63 |
-@@ -1,5 +1,5 @@ |
64 |
- [Desktop Entry] |
65 |
--Categories=Development;Electronics |
66 |
-+Categories=Electronics; |
67 |
- Comment=Design an electronic schematic |
68 |
- Comment[fr]=Dessiner des schémas électroniques |
69 |
- Exec=eeschema |
70 |
-diff --git a/resources/linux/mime/applications/kicad.desktop b/resources/linux/mime/applications/kicad.desktop |
71 |
-index 1d7645b..3a23e34 100644 |
72 |
---- a/resources/linux/mime/applications/kicad.desktop |
73 |
-+++ b/resources/linux/mime/applications/kicad.desktop |
74 |
-@@ -1,5 +1,5 @@ |
75 |
- [Desktop Entry] |
76 |
--Categories=Development;Electronics |
77 |
-+Categories=Electronics; |
78 |
- Comment=Design a printed circuit board |
79 |
- Comment[fr]=Concevoir un circuit imprimé |
80 |
- Exec=kicad |
81 |
--- |
82 |
-1.8.2.1 |
83 |
- |
84 |
|
85 |
diff --git a/sci-electronics/kicad/files/kicad-missing-doc.patch b/sci-electronics/kicad/files/kicad-missing-doc.patch |
86 |
deleted file mode 100644 |
87 |
index 3b9f966..0000000 |
88 |
--- a/sci-electronics/kicad/files/kicad-missing-doc.patch |
89 |
+++ /dev/null |
90 |
@@ -1,25 +0,0 @@ |
91 |
-From 096b02e38c5e86902d5403fcb14313be8dd70fb3 Mon Sep 17 00:00:00 2001 |
92 |
-From: Denis Dupeyron <calchan@g.o> |
93 |
-Date: Thu, 18 Apr 2013 08:11:28 -0600 |
94 |
-Subject: [PATCH] Add missing documentation |
95 |
- |
96 |
---- |
97 |
- CMakeLists.txt | 2 +- |
98 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
99 |
- |
100 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
101 |
-index 9e6e29a..1069a5f 100644 |
102 |
---- a/CMakeLists.txt |
103 |
-+++ b/CMakeLists.txt |
104 |
-@@ -415,7 +415,7 @@ add_custom_target(uninstall |
105 |
- #================================================ |
106 |
- # Installation parameters |
107 |
- #================================================ |
108 |
--install(FILES INSTALL.txt |
109 |
-+install(FILES AUTHORS.txt CHANGELOG.txt README.txt |
110 |
- DESTINATION ${KICAD_DOCS} |
111 |
- COMPONENT resources) |
112 |
- |
113 |
--- |
114 |
-1.8.2.1 |
115 |
- |
116 |
|
117 |
diff --git a/sci-electronics/kicad/files/kicad-native-boost.patch b/sci-electronics/kicad/files/kicad-native-boost.patch |
118 |
deleted file mode 100644 |
119 |
index 595d5f3..0000000 |
120 |
--- a/sci-electronics/kicad/files/kicad-native-boost.patch |
121 |
+++ /dev/null |
122 |
@@ -1,27 +0,0 @@ |
123 |
-From 50a62d296e803b75ae46c964173e8b2be0661618 Mon Sep 17 00:00:00 2001 |
124 |
-From: Denis Dupeyron <calchan@g.o> |
125 |
-Date: Thu, 18 Apr 2013 08:01:43 -0600 |
126 |
-Subject: [PATCH] Use native Boost |
127 |
- |
128 |
---- |
129 |
- CMakeLists.txt | 4 ++-- |
130 |
- 1 file changed, 2 insertions(+), 2 deletions(-) |
131 |
- |
132 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
133 |
-index e3c6ae2..9e6e29a 100644 |
134 |
---- a/CMakeLists.txt |
135 |
-+++ b/CMakeLists.txt |
136 |
-@@ -260,8 +260,8 @@ check_find_package_result(OPENGL_FOUND "OpenGL") |
137 |
- # kicad now includes needed boost files. |
138 |
- # the two next lines can be uncommented to use the native boost lib. |
139 |
- # but this is not a good idea |
140 |
--#find_package(Boost 1.36 QUIET) |
141 |
--#check_find_package_result(Boost_FOUND "Boost") |
142 |
-+find_package(Boost 1.36 QUIET) |
143 |
-+check_find_package_result(Boost_FOUND "Boost") |
144 |
- |
145 |
- ########################## |
146 |
- # Find wxWidgets library # |
147 |
--- |
148 |
-1.8.2.1 |
149 |
- |
150 |
|
151 |
diff --git a/sci-electronics/kicad/files/kicad-scripts.patch b/sci-electronics/kicad/files/kicad-scripts.patch |
152 |
deleted file mode 100644 |
153 |
index 9f46157..0000000 |
154 |
--- a/sci-electronics/kicad/files/kicad-scripts.patch |
155 |
+++ /dev/null |
156 |
@@ -1,25 +0,0 @@ |
157 |
-From 065491b83fb7f82606150aa89e70ac99738992e0 Mon Sep 17 00:00:00 2001 |
158 |
-From: Denis Dupeyron <calchan@g.o> |
159 |
-Date: Wed, 5 Jun 2013 14:03:07 -0600 |
160 |
-Subject: [PATCH] Fix install location of scripts directory |
161 |
- |
162 |
---- |
163 |
- CMakeLists.txt | 2 +- |
164 |
- 1 file changed, 1 insertion(+), 1 deletion(-) |
165 |
- |
166 |
-diff --git a/CMakeLists.txt b/CMakeLists.txt |
167 |
-index 59fe7c3..3f3bb14 100644 |
168 |
---- a/CMakeLists.txt |
169 |
-+++ b/CMakeLists.txt |
170 |
-@@ -428,7 +428,7 @@ install(FILES resources/freeroute.jnlp |
171 |
- ### |
172 |
- if(UNIX) |
173 |
- install(DIRECTORY scripts |
174 |
-- DESTINATION ${KICAD_DOCS} |
175 |
-+ DESTINATION ${KICAD_DATA} |
176 |
- COMPONENT resources |
177 |
- PATTERN ".svn" EXCLUDE) |
178 |
- endif() |
179 |
--- |
180 |
-1.8.2.1 |
181 |
- |
182 |
|
183 |
diff --git a/sci-electronics/kicad/kicad-20130518.ebuild b/sci-electronics/kicad/kicad-20130518.ebuild |
184 |
deleted file mode 100644 |
185 |
index 4b7a080..0000000 |
186 |
--- a/sci-electronics/kicad/kicad-20130518.ebuild |
187 |
+++ /dev/null |
188 |
@@ -1,129 +0,0 @@ |
189 |
-# Copyright 1999-2014 Gentoo Foundation |
190 |
-# Distributed under the terms of the GNU General Public License v2 |
191 |
-# $Id$ |
192 |
- |
193 |
-#TODO: |
194 |
-# - python and wxpython scripting |
195 |
- |
196 |
-EAPI="5" |
197 |
- |
198 |
-WX_GTK_VER="2.8" |
199 |
- |
200 |
-inherit eutils unpacker cmake-utils wxwidgets fdo-mime gnome2-utils |
201 |
- |
202 |
-DESCRIPTION="Electronic Schematic and PCB design tools" |
203 |
-HOMEPAGE="http://www.kicad-pcb.org" |
204 |
- |
205 |
-RELEASE_DATE="2013-05-18" |
206 |
-BZR_REV="4017" |
207 |
-UBUNTU_VER="12.04" |
208 |
-BASE_SRC_URI="http://iut-tice.ujf-grenoble.fr/cao" |
209 |
-SRC_URI="${BASE_SRC_URI}/${PN}-sources-stable_${RELEASE_DATE}_BZR${BZR_REV}.zip |
210 |
- ${BASE_SRC_URI}/${PN}-${RELEASE_DATE}-BZR${BZR_REV}-stable-UBUNTU_${UBUNTU_VER}_full_with_components_doc.tgz" |
211 |
- |
212 |
-LICENSE="GPL-2 kicad-doc" |
213 |
-SLOT="0" |
214 |
- |
215 |
-KEYWORDS="~amd64 ~x86" |
216 |
- |
217 |
-IUSE="debug" |
218 |
-LANGS="de en es fr hu it ja pl pt ru zh_CN" |
219 |
-for lang in ${LANGS} ; do |
220 |
- IUSE="${IUSE} linguas_${lang}" |
221 |
-done |
222 |
- |
223 |
-CDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[gnome,opengl,X] |
224 |
- dev-python/wxpython:${WX_GTK_VER}[opengl]" |
225 |
-DEPEND="${CDEPEND} |
226 |
- >=dev-util/cmake-2.6.4 |
227 |
- >=dev-libs/boost-1.49[python] |
228 |
- app-doc/doxygen" |
229 |
-RDEPEND="${CDEPEND} |
230 |
- sys-libs/zlib |
231 |
- sci-electronics/electronics-menu" |
232 |
- |
233 |
-S="${WORKDIR}/stable_${RELEASE_DATE}_BZR${BZR_REV}" |
234 |
- |
235 |
-src_prepare() { |
236 |
- epatch "${FILESDIR}/${PN}-native-boost.patch" |
237 |
- epatch "${FILESDIR}/${PN}-desktop-file.patch" |
238 |
- epatch "${FILESDIR}/${PN}-scripts.patch" |
239 |
- epatch "${FILESDIR}/${PN}-missing-doc.patch" |
240 |
- rm -f resources/linux/mime/applications/eeschema.desktop |
241 |
-} |
242 |
- |
243 |
-src_configure() { |
244 |
- need-wxwidgets unicode |
245 |
- |
246 |
- mycmakeargs="${mycmakeargs} |
247 |
- -DKICAD_STABLE_VERSION=ON |
248 |
- -DKICAD_wxUSE_UNICODE=ON |
249 |
- -DKICAD_DOCS=/usr/share/doc/${PN} |
250 |
- -DKICAD_HELP=/usr/share/doc/${PN}" |
251 |
- |
252 |
-# -DKICAD_SCRIPTING=ON |
253 |
-# -DKICAD_SCRIPTING_MODULES=ON |
254 |
-# -DKICAD_SCRIPTING_WXPYTHON=ON |
255 |
- |
256 |
- cmake-utils_src_configure |
257 |
-} |
258 |
- |
259 |
-src_compile() { |
260 |
- cmake-utils_src_compile all doxygen-docs |
261 |
-} |
262 |
- |
263 |
-src_install() { |
264 |
- cmake-utils_src_install |
265 |
- |
266 |
- insinto /usr/share/${PN} |
267 |
- doins -r "${WORKDIR}/${PN}/share/library" |
268 |
- doins -r "${WORKDIR}/${PN}/share/modules" |
269 |
- |
270 |
- insinto /usr/share/doc/${PN} |
271 |
- doins -r "${WORKDIR}/${PN}/doc/contrib" |
272 |
- |
273 |
- insinto /usr/share/doc/${PN}/help |
274 |
- for lang in $LANGS ; do |
275 |
- if [[ -d "${WORKDIR}/${PN}/doc/help/${lang}" ]] ; then |
276 |
- use linguas_$lang && doins -r "${WORKDIR}/${PN}/doc/help/${lang}" |
277 |
- fi |
278 |
- done |
279 |
- |
280 |
- insinto /usr/share/doc/${PN}/tutorials |
281 |
- for lang in $LANGS ; do |
282 |
- if [[ -d "${WORKDIR}/${PN}/doc/tutorials/${lang}" ]] ; then |
283 |
- use linguas_$lang && doins -r "${WORKDIR}/${PN}/doc/tutorials/${lang}" |
284 |
- fi |
285 |
- done |
286 |
- |
287 |
- local dev_doc="/usr/share/doc/${PN}/development" |
288 |
- insinto ${dev_doc} |
289 |
- doins HOW_TO_CONTRIBUTE.txt notes_about_pcbnew_new_file_format.odt TODO.txt uncrustify.cfg |
290 |
- doins "${WORKDIR}/${PN}/doc/help/file_formats/file_formats.pdf" |
291 |
- cd Documentation |
292 |
- doins -r * |
293 |
- |
294 |
- docompress -x \ |
295 |
- ${dev_doc}/GUI_Translation_HOWTO.odt \ |
296 |
- ${dev_doc}/notes_about_pcbnew_new_file_format.odt \ |
297 |
- ${dev_doc}/uncrustify.cfg |
298 |
- ${dev_doc}/file_formats.pdf |
299 |
-} |
300 |
- |
301 |
-pkg_preinst() { |
302 |
- gnome2_icon_savelist |
303 |
-} |
304 |
- |
305 |
-pkg_postinst() { |
306 |
- fdo-mime_desktop_database_update |
307 |
- fdo-mime_mime_database_update |
308 |
- gnome2_icon_cache_update |
309 |
- |
310 |
- elog "You may want to emerge media-gfx/wings if you want to create 3D models of components." |
311 |
-} |
312 |
- |
313 |
-pkg_postrm() { |
314 |
- fdo-mime_desktop_database_update |
315 |
- fdo-mime_mime_database_update |
316 |
- gnome2_icon_cache_update |
317 |
-} |
318 |
|
319 |
diff --git a/sci-electronics/kicad/kicad-4.0.0_rc1.ebuild b/sci-electronics/kicad/kicad-4.0.0_rc1.ebuild |
320 |
new file mode 100644 |
321 |
index 0000000..257c293 |
322 |
--- /dev/null |
323 |
+++ b/sci-electronics/kicad/kicad-4.0.0_rc1.ebuild |
324 |
@@ -0,0 +1,183 @@ |
325 |
+# Copyright 1999-2015 Gentoo Foundation |
326 |
+# Distributed under the terms of the GNU General Public License v2 |
327 |
+# $Id$ |
328 |
+ |
329 |
+EAPI="5" |
330 |
+PYTHON_COMPAT=( python2_7 ) |
331 |
+ |
332 |
+WX_GTK_VER="3.0" |
333 |
+ |
334 |
+inherit cmake-utils fdo-mime flag-o-matic gnome2-utils python-single-r1 python-utils-r1 vcs-snapshot wxwidgets versionator |
335 |
+ |
336 |
+DESCRIPTION="Electronic Schematic and PCB design tools." |
337 |
+HOMEPAGE="http://www.kicad-pcb.org" |
338 |
+ |
339 |
+SERIES=$(get_version_component_range 1-2) |
340 |
+MY_PV=$(replace_version_separator 3 '-') |
341 |
+ |
342 |
+LIB_REVISION="bd0ec6a20c7cc0556093f60eac723e4505947784" |
343 |
+DOC_REVISION="0d0ed7b9de3afbba5d51fb6d7a25834000ed1099" |
344 |
+I18N_REVISION="bf793d30d64f4e75ea7a109ea434c1a27926b158" |
345 |
+ |
346 |
+SRC_URI="https://launchpad.net/${PN}/${SERIES}/${MY_PV}/+download/${PN}-${MY_PV}.tar.xz |
347 |
+ !minimal? ( https://github.com/KiCad/${PN}-library/tarball/${LIB_REVISION} -> ${P}-library.tar.gz ) |
348 |
+ i18n? ( https://github.com/KiCad/${PN}-i18n/tarball/${I18N_REVISION} -> ${P}-i18n.tar.gz )" |
349 |
+ |
350 |
+LICENSE="GPL-2" |
351 |
+SLOT="0" |
352 |
+KEYWORDS="~amd64 ~x86" |
353 |
+IUSE="debug doc examples github i18n minimal python webkit" |
354 |
+LANGS="bg ca cs de el es fi fr hu it ja ko nl pl pt ru sk sl sv zh_CN" |
355 |
+for lang in ${LANGS} ; do |
356 |
+ IUSE="${IUSE} linguas_${lang}" |
357 |
+done |
358 |
+unset lang |
359 |
+ |
360 |
+REQUIRED_USE=" |
361 |
+ github? ( webkit ) |
362 |
+ python? ( ${PYTHON_REQUIRED_USE} )" |
363 |
+ |
364 |
+CDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit?] |
365 |
+ python? ( |
366 |
+ dev-python/wxpython:${WX_GTK_VER}[opengl,${PYTHON_USEDEP}] |
367 |
+ ${PYTHON_DEPS} |
368 |
+ ) |
369 |
+ >=dev-libs/boost-1.56[context,threads,python?] |
370 |
+ github? ( dev-libs/openssl:0 ) |
371 |
+ media-libs/glew |
372 |
+ media-libs/freeglut |
373 |
+ media-libs/mesa |
374 |
+ sys-libs/zlib |
375 |
+ x11-libs/cairo" |
376 |
+DEPEND="${CDEPEND} |
377 |
+ app-arch/xz-utils |
378 |
+ doc? ( app-doc/doxygen ) |
379 |
+ i18n? ( >=sys-devel/gettext-0.18 ) |
380 |
+ python? ( dev-lang/swig:0 )" |
381 |
+RDEPEND="${CDEPEND} |
382 |
+ sci-electronics/electronics-menu" |
383 |
+ |
384 |
+S="${WORKDIR}/${PN}-${MY_PV}" |
385 |
+ |
386 |
+pkg_setup() { |
387 |
+ python-single-r1_pkg_setup |
388 |
+} |
389 |
+ |
390 |
+src_prepare() { |
391 |
+ if use python; then |
392 |
+ # dev-python/wxpython doesn't support python3 |
393 |
+ sed '/set(_PYTHON3_VERSIONS 3.3 3.2 3.1 3.0)/d' -i CMakeModules/FindPythonLibs.cmake || die "sed failed" |
394 |
+ fi |
395 |
+ |
396 |
+ # Handle optional minimal install. |
397 |
+ if use minimal; then |
398 |
+ # remove tempaltes as they are not needed to run binaries |
399 |
+ sed -e '/add_subdirectory( template )/d' -i CMakeLists.txt || die "sed failed" |
400 |
+ else |
401 |
+ # create a link to the parts library in the main project folder |
402 |
+ ln -s "${WORKDIR}/${P}-library" "${S}/${PN}-library" || die "ln failed" |
403 |
+ # add the libraries directory to cmake as a subproject to build |
404 |
+ sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-library )" -i CMakeLists.txt || die "sed failed" |
405 |
+ # add the libraries directory subproject also to uninstallation procedures |
406 |
+ sed '/make uninstall/,/# /d' -i ${PN}-library/CMakeLists.txt || die "sed failed" |
407 |
+ fi |
408 |
+ |
409 |
+ # Add internationalization for the GUI |
410 |
+ if use i18n; then |
411 |
+ # create a link to the translations library in the main project folder |
412 |
+ ln -s "${WORKDIR}/${P}-i18n" "${S}/${PN}-i18n" || die "ln failed" |
413 |
+ # Remove unused languages. Project generates only languages specified in the |
414 |
+ # file in LINGUAS in the subproject folder. By default all languages are added |
415 |
+ # so we sed out the unused ones based on the user linguas_* settings. |
416 |
+ local lang="" |
417 |
+ for lang in ${LANGS}; do |
418 |
+ if ! use linguas_${lang}; then |
419 |
+ sed "/${lang}/d" -i ${PN}-i18n/LINGUAS || die "sed failed" |
420 |
+ fi |
421 |
+ done |
422 |
+ # cmakelists does not respect our build dir variables, so make it point to the right location |
423 |
+ sed "s|\${CMAKE_BINARY_DIR}|${WORKDIR}/${P}_build|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
424 |
+ # we also make from the master project so the source dir is understood incorretly, replace that too |
425 |
+ sed "s|\${CMAKE_SOURCE_DIR}/\${LANG}|\${CMAKE_SOURCE_DIR}/${PN}-i18n/\${LANG}|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
426 |
+ # add the translations directory to cmake as a subproject to build |
427 |
+ sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-i18n )" -i CMakeLists.txt || die "sed failed" |
428 |
+ # add the translations directory subproject also to uninstallation procedures |
429 |
+ sed '/make uninstall/,$d' -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
430 |
+ fi |
431 |
+ |
432 |
+ # Install examples in the right place if requested |
433 |
+ if use examples; then |
434 |
+ sed -e 's:${KICAD_DATA}/demos:${KICAD_DOCS}/examples:' -i CMakeLists.txt || die "sed failed" |
435 |
+ else |
436 |
+ sed -e '/add_subdirectory( demos )/d' -i CMakeLists.txt || die "sed failed" |
437 |
+ fi |
438 |
+ |
439 |
+ # Add important missing doc files |
440 |
+ sed -e 's/INSTALL.txt/AUTHORS.txt CHANGELOG.txt README.txt TODO.txt/' -i CMakeLists.txt || die "sed failed" |
441 |
+} |
442 |
+ |
443 |
+src_configure() { |
444 |
+ need-wxwidgets unicode |
445 |
+ |
446 |
+ local mycmakeargs=( |
447 |
+ -DKICAD_DOCS="/usr/share/doc/${PF}" |
448 |
+ -DKICAD_HELP="/usr/share/doc/${PF}/help" |
449 |
+ -DwxUSE_UNICODE=ON |
450 |
+ -DKICAD_SKIP_BOOST=ON |
451 |
+ $(cmake-utils_use github BUILD_GITHUB_PLUGIN) |
452 |
+ $(cmake-utils_use python KICAD_SCRIPTING) |
453 |
+ $(cmake-utils_use python KICAD_SCRIPTING_MODULES) |
454 |
+ $(cmake-utils_use python KICAD_SCRIPTING_WXPYTHON) |
455 |
+ $(cmake-utils_use webkit KICAD_USE_WEBKIT) |
456 |
+ $(usex i18n "-DKICAD_I18N_UNIX_STRICT_PATH=1" "") |
457 |
+ ) |
458 |
+ if use debug; then |
459 |
+ append-flags "-DDEBUG" |
460 |
+ fi |
461 |
+ cmake-utils_src_configure |
462 |
+} |
463 |
+ |
464 |
+src_compile() { |
465 |
+ cmake-utils_src_compile |
466 |
+ if use doc; then |
467 |
+ doxygen Doxyfile || die "doxygen failed" |
468 |
+ fi |
469 |
+} |
470 |
+ |
471 |
+src_install() { |
472 |
+ cmake-utils_src_install |
473 |
+ use python && python_optimize "${D}/usr/$(get_libdir)/${EPYTHON}/site-packages/pcbnew.py" |
474 |
+ if use doc ; then |
475 |
+ insinto /usr/share/doc/${PF} |
476 |
+ doins uncrustify.cfg |
477 |
+ cd Documentation || die "cd failed" |
478 |
+ doins -r GUI_Translation_HOWTO.pdf guidelines/UIpolicies.txt doxygen/* |
479 |
+ fi |
480 |
+} |
481 |
+ |
482 |
+pkg_preinst() { |
483 |
+ gnome2_icon_savelist |
484 |
+} |
485 |
+ |
486 |
+pkg_postinst() { |
487 |
+ fdo-mime_desktop_database_update |
488 |
+ fdo-mime_mime_database_update |
489 |
+ gnome2_icon_cache_update |
490 |
+ |
491 |
+ if use minimal ; then |
492 |
+ ewarn "If the schematic and/or board editors complain about missing libraries when you" |
493 |
+ ewarn "open old projects, you will have to take one or more of the following actions :" |
494 |
+ ewarn "- Install the missing libraries manually." |
495 |
+ ewarn "- Remove the libraries from the 'Libs and Dir' preferences." |
496 |
+ ewarn "- Fix the libraries' locations in the 'Libs and Dir' preferences." |
497 |
+ ewarn "- Emerge ${PN} without the 'minimal' USE flag." |
498 |
+ ewarn "" |
499 |
+ fi |
500 |
+ elog "You may want to emerge media-gfx/wings if you want to create 3D models of components." |
501 |
+} |
502 |
+ |
503 |
+pkg_postrm() { |
504 |
+ fdo-mime_desktop_database_update |
505 |
+ fdo-mime_mime_database_update |
506 |
+ gnome2_icon_cache_update |
507 |
+} |
508 |
|
509 |
diff --git a/sci-electronics/kicad/metadata.xml b/sci-electronics/kicad/metadata.xml |
510 |
index 62924d2..43e97e3 100644 |
511 |
--- a/sci-electronics/kicad/metadata.xml |
512 |
+++ b/sci-electronics/kicad/metadata.xml |
513 |
@@ -1,9 +1,18 @@ |
514 |
<?xml version="1.0" encoding="UTF-8"?> |
515 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
516 |
<pkgmetadata> |
517 |
+ <herd>proxy-maintainers</herd> |
518 |
<maintainer> |
519 |
- <email>maintainer-needed@g.o</email> |
520 |
+ <email>zoltan@×××××××××.info</email> |
521 |
+ <name>Zoltan Puskas</name> |
522 |
+ <description>Proxied maintainer. Assign bugs to him.</description> |
523 |
</maintainer> |
524 |
+ <use> |
525 |
+ <flag name="github">Add github support into PCB editor</flag> |
526 |
+ <flag name="i18n">Allow GUI internationalization through linguas_* use flags</flag> |
527 |
+ <flag name="minimal">Build only binaries without parts library and examples</flag> |
528 |
+ <flag name="python">Enable python scripting support</flag> |
529 |
+ </use> |
530 |
<longdescription> |
531 |
Kicad is an open source (GPL) software for the creation of electronic |
532 |
schematic diagrams and printed circuit board artwork. |