1 |
commit: 750f0ff86e081df5bcd0be78cd048fef39e6566c |
2 |
Author: Zoltan Puskas <zoltan <AT> sinustrom <DOT> info> |
3 |
AuthorDate: Wed May 25 05:34:04 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri May 27 13:51:44 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=750f0ff8 |
7 |
|
8 |
sci-electronics/kicad: Remove obsolete 4.0.0, 4.0.0-r1, 4.0.1, 4.0.2 ebuilds. |
9 |
|
10 |
Package-Manager: portage-2.3.0_rc1 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/1533 |
12 |
|
13 |
Signed-off-by: Patrice Clement <monsieurp <AT> gentoo.org> |
14 |
|
15 |
sci-electronics/kicad/Manifest | 4 - |
16 |
sci-electronics/kicad/kicad-4.0.0-r1.ebuild | 191 ---------------------------- |
17 |
sci-electronics/kicad/kicad-4.0.0.ebuild | 183 -------------------------- |
18 |
sci-electronics/kicad/kicad-4.0.1.ebuild | 185 --------------------------- |
19 |
sci-electronics/kicad/kicad-4.0.2.ebuild | 185 --------------------------- |
20 |
5 files changed, 748 deletions(-) |
21 |
|
22 |
diff --git a/sci-electronics/kicad/Manifest b/sci-electronics/kicad/Manifest |
23 |
index 9af4f83..7d23793 100644 |
24 |
--- a/sci-electronics/kicad/Manifest |
25 |
+++ b/sci-electronics/kicad/Manifest |
26 |
@@ -1,12 +1,8 @@ |
27 |
-DIST kicad-4.0.0-i18n.tar.gz 2269856 SHA256 cfd0814a553c117de5a2caba7e366bb501de5d5e408d22b05efd5c66946cc3f0 SHA512 51844fa140b93ed65c4699b79e24a846a546c3d395397893838ba067d82ac9a40dc57c5960cfc935396d6e1b3cd1db3899bcfe203d32bd10422f81eaee6bebae WHIRLPOOL cbbc6e5f8ecb6d6246a320d6cef27bec12171e53ce3baa768c2b2d118e0a4640348bf7b0da96694d0a4c02c6a23e01f9abe68fde66e586a99d1fb58812de061c |
28 |
-DIST kicad-4.0.0-library.tar.gz 105069103 SHA256 e1f9770e624256e6760a2fa9dc57f3f52fd42589d50fe0225fe14565cf44ecc7 SHA512 1cdf7d90a97a0303330896e8c92346766a2192f78361a48c25bf3ee126a9b43bfd8da39c465c62193bead378f7a8540083cb5113f18119f8268858c91fcd00b1 WHIRLPOOL 732c925ba4878c9173d64cd3f62c274945901c563e65a7ee04f3660a7a85acfbc92af7717a5fde9ada828c8bf7c84b24aa4200c13b3e46434b81ebd10e3814ac |
29 |
-DIST kicad-4.0.0.tar.xz 10840448 SHA256 fdc1368dbbe3f5e7981741e4870883ce3cd89c6081077828411ef044b5e93862 SHA512 db929a7c90af406e4a550b4f5e2333c44f0b8ac06219a5f476d46d10c6e284e117e652d6a1df864a909945ba0469447a7a82ba8ca72809f165c7cd1ae655c86a WHIRLPOOL 248cc15e1325db833a50cc456bf80254e7074ae46eadb43553f80c54bc154491b9d5fade07e9a27dfaf08ee5af84d29097690a453e9c2bb1b1eaeb644c072054 |
30 |
DIST kicad-4.0.1-i18n.tar.gz 2273300 SHA256 646f2f394046543be9fd57b2b5fc01f1869b4879958fc13a29f60b3502b7ca30 SHA512 56c87f94bb8c3a1f92dee6a5d88fe0a7d6778110cf1fbd019e7481fa89d0d3df447eb90d49f7621dd7006a4e23ce16f752eeba368057d4d970e280c77e22cc25 WHIRLPOOL 3a592d6c59da763dd554ebf85f9d627da58fb6ca38c435712742e0e58ab60bb59ec6c6b5757e651c7c1656ea23153237d236d680a3f3276ef1e1d4b29b24f413 |
31 |
DIST kicad-4.0.1-library.tar.gz 105054096 SHA256 4d1ec105a422a0130be02f4d712d5c22ab223a7963f2b98e75b6847254269e46 SHA512 88b9d31230ac85e4b4341b0b2194d6fc622c03d62e80c65d82d999e02324d902ce90881fd5592bde9e8c2695370cb0c35e8e4473f640d1a25eddf453637b6b6f WHIRLPOOL 50cce4a0147982f8693009833831a3876c987ea24be938ed51a39d823935d424fbe7940b6f7565c42a318b4e71c24c31f8b0fcbfd5e63db247856312a775001b |
32 |
DIST kicad-4.0.1.tar.xz 10837804 SHA256 73a9f8713ba93ce34e5f9c26e9667f33a22f4e33192fa6bd15d3fc0edea54bde SHA512 da9d5ba7f6a323d80621304e368c9783febedf7c545f31a6ca69bddc8573e7c7aa127c774cc29e173eae947debd444b5a04b0483800d6c0d1303e32a714e3d26 WHIRLPOOL 0985d7b38df1224787b0509407f34043d71f4eac847486bf4633cacb9c3bc32df9590c0516e3189e4b0f5ba17fde93ead467e200e95ecb763f7054cc1baac107 |
33 |
DIST kicad-4.0.2-i18n.tar.gz 2290139 SHA256 05a9a5b1c9a2aa0e0712171c5e71cc3b74c43254a7d5fdd3d3c76e32ff927bea SHA512 2021706d0e96f6a82b57b8f187b703f37c32ee6efb99323ec191de141c2bfc89b590949cdbf2eea6cc618afc84bbac9fae758fdbb088aed3ab06649279bcab21 WHIRLPOOL 0797d587ed4009bc9be6aac0b19f2cd0581e497f074e6cfd33adff6a44b68c215c06c084d8221a57a0f39e228d70e9760bf368770d2bc7bd361be1688a65ab9b |
34 |
DIST kicad-4.0.2-library.tar.gz 105106185 SHA256 0499da0fa617248a4196e50ff65c0bf78cb456bf1ca4bd6c72d956044b310bef SHA512 14f7136ded81f54fcccbb4555f77b0079d637a08b15b2fd60b729226dbc5adfb5fe7489060ba1d3b949ca1d94d95623df28cceac93ee600165598d9fd78711e7 WHIRLPOOL c5080ad602684ccdb60493745714398027af2ba09b4a2187740b89fcac923941adda80c744a12338d8c6eda07763fdae12428a8c9d06379a637e3e0ee881bef1 |
35 |
DIST kicad-4.0.2.tar.xz 10841200 SHA256 2eae6986843a29862ab399a30b50454582d22f58ed3f53eb50d0c85e5d488eb9 SHA512 b0817cca7b8d0216507d78c602d332deaf2a68528b129309067b01e254c6600af5513dea7f44570beb4a339bc044ef7966890a91aeda6fd5a95515657cd1628a WHIRLPOOL 7ae9b072addeea8cc3d6daa69b8f19d077604f0ec5d1e5dfed53efe6b0a32f6b12c1156c2f52092a859d9f716cab83d16b17b0e3abbc0c72a2bafacb3be27719 |
36 |
-DIST kicad-footprints-4.0.0.tar.gz 1056498 SHA256 684c1197dab01c2aa31de94fbe8530470a81d7729db73c39183792c45b0b54f0 SHA512 f19d1a662e39df46d3c11089f9a4baff83e56a0931259cd9ee9fcec1f3108f4c778e89f77168a544910b723ce1b6a99842dc34b323eed509973c8655620b0447 WHIRLPOOL 10a66194d03cfd52b5897fbd2e24fd1166b321e933b849729ea8fa3ee44aad0774057479dd8461bd50a779bb0df755dc5ac0141d43369e0ec7656522143c4b0c |
37 |
DIST kicad-footprints-4.0.1.tar.gz 801985 SHA256 e3b195706c8f30928c34478a87607e996def94a19982f8987a783b8e4ffe112f SHA512 4fef1792eee8be951c77a8684942ecfa9047b602796f90e746010d63f72f5981cb2c90efe28ba7bd7d22894256d23f71b47eb170056e7b4423f72120f5413725 WHIRLPOOL b41eb7149b14af4c3dd37bc19f7bba9afcc896c1b5d523e7bead0c6695dad7255527f952042589181876dc598d7a85963ab4f86b6c3179e0e82e6f187712c298 |
38 |
DIST kicad-footprints-4.0.2.tar.gz 802003 SHA256 eff257abc2d5e4b1b87b2251c74b5c751271505c0605f31f8f4390dedff43f6f SHA512 2b54bbbcaac8ae17f9b27f2ba2542be10a84fda46266dfa249699d731ceb3de1c8129bcd1e88f045b2fb20af9a58658ef65390ea702e7c583923a50b10cd5a29 WHIRLPOOL bf9f9475092eb6a9167d5297731942c9f0ad48a49ba05d04db400cff64c46a413ffec68d524f39edbfee05fb55216da5b69dd2c1f409e955cb0758da1383b140 |
39 |
|
40 |
diff --git a/sci-electronics/kicad/kicad-4.0.0-r1.ebuild b/sci-electronics/kicad/kicad-4.0.0-r1.ebuild |
41 |
deleted file mode 100644 |
42 |
index a6f68a7..0000000 |
43 |
--- a/sci-electronics/kicad/kicad-4.0.0-r1.ebuild |
44 |
+++ /dev/null |
45 |
@@ -1,191 +0,0 @@ |
46 |
-# Copyright 1999-2016 Gentoo Foundation |
47 |
-# Distributed under the terms of the GNU General Public License v2 |
48 |
-# $Id$ |
49 |
- |
50 |
-EAPI=5 |
51 |
-PYTHON_COMPAT=( python2_7 ) |
52 |
- |
53 |
-WX_GTK_VER="3.0" |
54 |
- |
55 |
-inherit cmake-utils flag-o-matic gnome2-utils python-single-r1 vcs-snapshot wxwidgets versionator xdg |
56 |
- |
57 |
-DESCRIPTION="Electronic Schematic and PCB design tools." |
58 |
-HOMEPAGE="http://www.kicad-pcb.org" |
59 |
- |
60 |
-SERIES=$(get_version_component_range 1-2) |
61 |
- |
62 |
-SRC_URI="https://launchpad.net/${PN}/${SERIES}/${PV}/+download/${P}.tar.xz |
63 |
- http://downloads.kicad-pcb.org/libraries/${PN}-footprints-${PV}.tar.gz |
64 |
- !minimal? ( https://github.com/KiCad/${PN}-library/archive/${PV}.tar.gz -> ${P}-library.tar.gz ) |
65 |
- i18n? ( https://github.com/KiCad/${PN}-i18n/archive/${PV}.tar.gz -> ${P}-i18n.tar.gz )" |
66 |
- |
67 |
-LICENSE="GPL-2" |
68 |
-SLOT="0" |
69 |
-KEYWORDS="~amd64 ~x86" |
70 |
-IUSE="debug doc examples github i18n minimal +python webkit" |
71 |
-LANGS="bg ca cs de el es fi fr hu it ja ko nl pl pt ru sk sl sv zh_CN" |
72 |
-for lang in ${LANGS} ; do |
73 |
- IUSE="${IUSE} linguas_${lang}" |
74 |
-done |
75 |
-unset lang |
76 |
-unset LANGS |
77 |
- |
78 |
-REQUIRED_USE=" |
79 |
- github? ( webkit ) |
80 |
- python? ( ${PYTHON_REQUIRED_USE} )" |
81 |
- |
82 |
-CDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit?] |
83 |
- python? ( |
84 |
- dev-python/wxpython:${WX_GTK_VER}[opengl,${PYTHON_USEDEP}] |
85 |
- ${PYTHON_DEPS} |
86 |
- ) |
87 |
- >=dev-libs/boost-1.56[context,nls,threads,python?] |
88 |
- github? ( dev-libs/openssl:0 ) |
89 |
- media-libs/glew |
90 |
- media-libs/freeglut |
91 |
- media-libs/mesa |
92 |
- sys-libs/zlib |
93 |
- x11-libs/cairo" |
94 |
-DEPEND="${CDEPEND} |
95 |
- app-arch/xz-utils |
96 |
- doc? ( app-doc/doxygen ) |
97 |
- i18n? ( >=sys-devel/gettext-0.18 ) |
98 |
- python? ( dev-lang/swig:0 ) |
99 |
- app-text/dos2unix" |
100 |
-RDEPEND="${CDEPEND} |
101 |
- sci-electronics/electronics-menu" |
102 |
- |
103 |
-pkg_setup() { |
104 |
- python-single-r1_pkg_setup |
105 |
-} |
106 |
- |
107 |
-src_prepare() { |
108 |
- xdg_src_prepare |
109 |
- |
110 |
- # remove all the non unix file endings |
111 |
- find "${S}" -type f -name "*.desktop" | xargs -n1 dos2unix |
112 |
- assert "dos2unix failed" |
113 |
- |
114 |
- # Handle optional minimal install. |
115 |
- if use minimal; then |
116 |
- # remove templates as they are not needed to run binaries |
117 |
- sed -e '/add_subdirectory( template )/d' -i CMakeLists.txt || die "sed failed" |
118 |
- else |
119 |
- # create a link to the parts library in the main project folder |
120 |
- ln -s "${WORKDIR}/${P}-library" "${S}/${PN}-library" || die "ln failed" |
121 |
- # create a link to the footprints library and add cmake build rule for it |
122 |
- ln -s "${WORKDIR}/${PN}-footprints-${PV}" "${S}/${PN}-footprints" || die "ln failed" |
123 |
- cp "${FILESDIR}/${PN}-footprints-cmakelists.txt" "${WORKDIR}/${PN}-footprints-${PV}/CMakeLists.txt" || die "cp failed" |
124 |
- # add the libraries directory to cmake as a subproject to build |
125 |
- sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-library )" -i CMakeLists.txt || die "sed failed" |
126 |
- # add the footprints directory to cmake as a subproject to build |
127 |
- sed "/add_subdirectory( ${PN}-library )/a add_subdirectory( ${PN}-footprints )" -i CMakeLists.txt || die "sed failed" |
128 |
- # remove duplicate uninstall directions for the library module |
129 |
- sed '/make uninstall/,/# /d' -i ${PN}-library/CMakeLists.txt || die "sed failed" |
130 |
- fi |
131 |
- |
132 |
- # Add internationalization for the GUI |
133 |
- if use i18n; then |
134 |
- # create a link to the translations library in the main project folder |
135 |
- ln -s "${WORKDIR}/${P}-i18n" "${S}/${PN}-i18n" || die "ln failed" |
136 |
- # Remove unused languages. Project generates only languages specified in the |
137 |
- # file in LINGUAS in the subproject folder. By default all languages are added |
138 |
- # so we sed out the unused ones based on the user linguas_* settings. |
139 |
- local lang |
140 |
- for lang in ${LANGS}; do |
141 |
- if ! use linguas_${lang}; then |
142 |
- sed "/${lang}/d" -i ${PN}-i18n/LINGUAS || die "sed failed" |
143 |
- fi |
144 |
- done |
145 |
- # cmakelists does not respect our build dir variables, so make it point to the right location |
146 |
- sed "s|\${CMAKE_BINARY_DIR}|${WORKDIR}/${P}_build|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
147 |
- # we also make from the master project so the source dir is understood incorretly, replace that too |
148 |
- sed "s|\${CMAKE_SOURCE_DIR}/\${LANG}|\${CMAKE_SOURCE_DIR}/${PN}-i18n/\${LANG}|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
149 |
- # add the translations directory to cmake as a subproject to build |
150 |
- sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-i18n )" -i CMakeLists.txt || die "sed failed" |
151 |
- # remove duplicate uninstall directions for the translation module |
152 |
- sed '/make uninstall/,$d' -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
153 |
- fi |
154 |
- |
155 |
- # Install examples in the right place if requested |
156 |
- if use examples; then |
157 |
- # install demos into the examples folder too |
158 |
- sed -e 's:${KICAD_DATA}/demos:${KICAD_DOCS}/examples:' -i CMakeLists.txt || die "sed failed" |
159 |
- else |
160 |
- # remove additional demos/examples as its not strictly required to run the binaries |
161 |
- sed -e '/add_subdirectory( demos )/d' -i CMakeLists.txt || die "sed failed" |
162 |
- fi |
163 |
- |
164 |
- # Add important missing doc files |
165 |
- sed -e 's/INSTALL.txt/AUTHORS.txt CHANGELOG.txt README.txt TODO.txt/' -i CMakeLists.txt || die "sed failed" |
166 |
-} |
167 |
- |
168 |
-src_configure() { |
169 |
- local mycmakeargs=( |
170 |
- -DPYTHON_DEST="$(python_get_sitedir)" |
171 |
- -DPYTHON_EXECUTABLE="${PYTHON}" |
172 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
173 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
174 |
- -DKICAD_DOCS="/usr/share/doc/${PF}" |
175 |
- -DKICAD_HELP="/usr/share/doc/${PF}/help" |
176 |
- -DKICAD_REPO_NAME="stable" |
177 |
- -DKICAD_BUILD_VERSION="${PV}" |
178 |
- -DwxUSE_UNICODE=ON |
179 |
- -DKICAD_SKIP_BOOST=ON |
180 |
- $(cmake-utils_use github BUILD_GITHUB_PLUGIN) |
181 |
- $(cmake-utils_use python KICAD_SCRIPTING) |
182 |
- $(cmake-utils_use python KICAD_SCRIPTING_MODULES) |
183 |
- $(cmake-utils_use python KICAD_SCRIPTING_WXPYTHON) |
184 |
- $(cmake-utils_use webkit KICAD_USE_WEBKIT) |
185 |
- $(usex i18n "-DKICAD_I18N_UNIX_STRICT_PATH=1" "") |
186 |
- ) |
187 |
- if use debug; then |
188 |
- append-cxxflags "-DDEBUG" |
189 |
- append-cflags "-DDEBUG" |
190 |
- fi |
191 |
- cmake-utils_src_configure |
192 |
-} |
193 |
- |
194 |
-src_compile() { |
195 |
- cmake-utils_src_compile |
196 |
- if use doc; then |
197 |
- doxygen Doxyfile || die "doxygen failed" |
198 |
- fi |
199 |
-} |
200 |
- |
201 |
-src_install() { |
202 |
- cmake-utils_src_install |
203 |
- use python && python_optimize |
204 |
- if use doc ; then |
205 |
- dodoc uncrustify.cfg |
206 |
- cd Documentation || die "cd failed" |
207 |
- dodoc -r GUI_Translation_HOWTO.pdf guidelines/UIpolicies.txt doxygen/. |
208 |
- fi |
209 |
-} |
210 |
- |
211 |
-pkg_preinst() { |
212 |
- xdg_pkg_preinst |
213 |
- gnome2_icon_savelist |
214 |
-} |
215 |
- |
216 |
-pkg_postinst() { |
217 |
- xdg_pkg_postinst |
218 |
- gnome2_icon_cache_update |
219 |
- |
220 |
- if use minimal ; then |
221 |
- ewarn "If the schematic and/or board editors complain about missing libraries when you" |
222 |
- ewarn "open old projects, you will have to take one or more of the following actions :" |
223 |
- ewarn "- Install the missing libraries manually." |
224 |
- ewarn "- Remove the libraries from the 'Libs and Dir' preferences." |
225 |
- ewarn "- Fix the libraries' locations in the 'Libs and Dir' preferences." |
226 |
- ewarn "- Emerge ${PN} without the 'minimal' USE flag." |
227 |
- fi |
228 |
- elog "" |
229 |
- elog "You may want to emerge media-gfx/wings if you want to create 3D models of components." |
230 |
- elog "For help and extended documentation emerge app-doc/kicad-doc." |
231 |
-} |
232 |
- |
233 |
-pkg_postrm() { |
234 |
- xdg_pkg_postrm |
235 |
- gnome2_icon_cache_update |
236 |
-} |
237 |
|
238 |
diff --git a/sci-electronics/kicad/kicad-4.0.0.ebuild b/sci-electronics/kicad/kicad-4.0.0.ebuild |
239 |
deleted file mode 100644 |
240 |
index a47eda6..0000000 |
241 |
--- a/sci-electronics/kicad/kicad-4.0.0.ebuild |
242 |
+++ /dev/null |
243 |
@@ -1,183 +0,0 @@ |
244 |
-# Copyright 1999-2016 Gentoo Foundation |
245 |
-# Distributed under the terms of the GNU General Public License v2 |
246 |
-# $Id$ |
247 |
- |
248 |
-EAPI="5" |
249 |
-PYTHON_COMPAT=( python2_7 ) |
250 |
- |
251 |
-WX_GTK_VER="3.0" |
252 |
- |
253 |
-inherit cmake-utils fdo-mime flag-o-matic gnome2-utils python-single-r1 vcs-snapshot wxwidgets versionator |
254 |
- |
255 |
-DESCRIPTION="Electronic Schematic and PCB design tools." |
256 |
-HOMEPAGE="http://www.kicad-pcb.org" |
257 |
- |
258 |
-SERIES=$(get_version_component_range 1-2) |
259 |
- |
260 |
-SRC_URI="https://launchpad.net/${PN}/${SERIES}/${PV}/+download/${P}.tar.xz |
261 |
- !minimal? ( https://github.com/KiCad/${PN}-library/archive/${PV}.tar.gz -> ${P}-library.tar.gz ) |
262 |
- i18n? ( https://github.com/KiCad/${PN}-i18n/archive/${PV}.tar.gz -> ${P}-i18n.tar.gz )" |
263 |
- |
264 |
-LICENSE="GPL-2" |
265 |
-SLOT="0" |
266 |
-KEYWORDS="~amd64 ~x86" |
267 |
-IUSE="debug doc examples github i18n minimal python webkit" |
268 |
-LANGS="bg ca cs de el es fi fr hu it ja ko nl pl pt ru sk sl sv zh_CN" |
269 |
-for lang in ${LANGS} ; do |
270 |
- IUSE="${IUSE} linguas_${lang}" |
271 |
-done |
272 |
-unset lang |
273 |
- |
274 |
-REQUIRED_USE=" |
275 |
- github? ( webkit ) |
276 |
- python? ( ${PYTHON_REQUIRED_USE} )" |
277 |
- |
278 |
-CDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit?] |
279 |
- python? ( |
280 |
- dev-python/wxpython:${WX_GTK_VER}[opengl,${PYTHON_USEDEP}] |
281 |
- ${PYTHON_DEPS} |
282 |
- ) |
283 |
- >=dev-libs/boost-1.56[context,nls,threads,python?] |
284 |
- github? ( dev-libs/openssl:0 ) |
285 |
- media-libs/glew |
286 |
- media-libs/freeglut |
287 |
- media-libs/mesa |
288 |
- sys-libs/zlib |
289 |
- x11-libs/cairo" |
290 |
-DEPEND="${CDEPEND} |
291 |
- app-arch/xz-utils |
292 |
- doc? ( app-doc/doxygen ) |
293 |
- i18n? ( >=sys-devel/gettext-0.18 ) |
294 |
- python? ( dev-lang/swig:0 ) |
295 |
- app-text/dos2unix" |
296 |
-RDEPEND="${CDEPEND} |
297 |
- sci-electronics/electronics-menu" |
298 |
- |
299 |
-pkg_setup() { |
300 |
- python-single-r1_pkg_setup |
301 |
-} |
302 |
- |
303 |
-src_prepare() { |
304 |
- # remove all the non unix file endings |
305 |
- find "${S}" -type f -name "*.desktop" | xargs -n1 dos2unix |
306 |
- assert "dos2unix failed" |
307 |
- |
308 |
- # Handle optional minimal install. |
309 |
- if use minimal; then |
310 |
- # remove templates as they are not needed to run binaries |
311 |
- sed -e '/add_subdirectory( template )/d' -i CMakeLists.txt || die "sed failed" |
312 |
- else |
313 |
- # create a link to the parts library in the main project folder |
314 |
- ln -s "${WORKDIR}/${P}-library" "${S}/${PN}-library" || die "ln failed" |
315 |
- # add the libraries directory to cmake as a subproject to build |
316 |
- sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-library )" -i CMakeLists.txt || die "sed failed" |
317 |
- # remove duplicate uninstall directions for the library module |
318 |
- sed '/make uninstall/,/# /d' -i ${PN}-library/CMakeLists.txt || die "sed failed" |
319 |
- fi |
320 |
- |
321 |
- # Add internationalization for the GUI |
322 |
- if use i18n; then |
323 |
- # create a link to the translations library in the main project folder |
324 |
- ln -s "${WORKDIR}/${P}-i18n" "${S}/${PN}-i18n" || die "ln failed" |
325 |
- # Remove unused languages. Project generates only languages specified in the |
326 |
- # file in LINGUAS in the subproject folder. By default all languages are added |
327 |
- # so we sed out the unused ones based on the user linguas_* settings. |
328 |
- local lang |
329 |
- for lang in ${LANGS}; do |
330 |
- if ! use linguas_${lang}; then |
331 |
- sed "/${lang}/d" -i ${PN}-i18n/LINGUAS || die "sed failed" |
332 |
- fi |
333 |
- done |
334 |
- # cmakelists does not respect our build dir variables, so make it point to the right location |
335 |
- sed "s|\${CMAKE_BINARY_DIR}|${WORKDIR}/${P}_build|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
336 |
- # we also make from the master project so the source dir is understood incorretly, replace that too |
337 |
- sed "s|\${CMAKE_SOURCE_DIR}/\${LANG}|\${CMAKE_SOURCE_DIR}/${PN}-i18n/\${LANG}|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
338 |
- # add the translations directory to cmake as a subproject to build |
339 |
- sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-i18n )" -i CMakeLists.txt || die "sed failed" |
340 |
- # remove duplicate uninstall directions for the translation module |
341 |
- sed '/make uninstall/,$d' -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
342 |
- fi |
343 |
- |
344 |
- # Install examples in the right place if requested |
345 |
- if use examples; then |
346 |
- # install demos into the examples folder too |
347 |
- sed -e 's:${KICAD_DATA}/demos:${KICAD_DOCS}/examples:' -i CMakeLists.txt || die "sed failed" |
348 |
- else |
349 |
- # remove additional demos/examples as its not strictly required to run the binaries |
350 |
- sed -e '/add_subdirectory( demos )/d' -i CMakeLists.txt || die "sed failed" |
351 |
- fi |
352 |
- |
353 |
- # Add important missing doc files |
354 |
- sed -e 's/INSTALL.txt/AUTHORS.txt CHANGELOG.txt README.txt TODO.txt/' -i CMakeLists.txt || die "sed failed" |
355 |
-} |
356 |
- |
357 |
-src_configure() { |
358 |
- need-wxwidgets unicode |
359 |
- |
360 |
- local mycmakeargs=( |
361 |
- -DPYTHON_DEST="$(python_get_sitedir)" |
362 |
- -DPYTHON_EXECUTABLE="${PYTHON}" |
363 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
364 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
365 |
- -DKICAD_DOCS="/usr/share/doc/${PF}" |
366 |
- -DKICAD_HELP="/usr/share/doc/${PF}/help" |
367 |
- -DwxUSE_UNICODE=ON |
368 |
- -DKICAD_SKIP_BOOST=ON |
369 |
- $(cmake-utils_use github BUILD_GITHUB_PLUGIN) |
370 |
- $(cmake-utils_use python KICAD_SCRIPTING) |
371 |
- $(cmake-utils_use python KICAD_SCRIPTING_MODULES) |
372 |
- $(cmake-utils_use python KICAD_SCRIPTING_WXPYTHON) |
373 |
- $(cmake-utils_use webkit KICAD_USE_WEBKIT) |
374 |
- $(usex i18n "-DKICAD_I18N_UNIX_STRICT_PATH=1" "") |
375 |
- ) |
376 |
- if use debug; then |
377 |
- append-cxxflags "-DDEBUG" |
378 |
- append-cflags "-DDEBUG" |
379 |
- fi |
380 |
- cmake-utils_src_configure |
381 |
-} |
382 |
- |
383 |
-src_compile() { |
384 |
- cmake-utils_src_compile |
385 |
- if use doc; then |
386 |
- doxygen Doxyfile || die "doxygen failed" |
387 |
- fi |
388 |
-} |
389 |
- |
390 |
-src_install() { |
391 |
- cmake-utils_src_install |
392 |
- use python && python_optimize |
393 |
- if use doc ; then |
394 |
- dodoc uncrustify.cfg |
395 |
- cd Documentation || die "cd failed" |
396 |
- dodoc -r GUI_Translation_HOWTO.pdf guidelines/UIpolicies.txt doxygen/. |
397 |
- fi |
398 |
-} |
399 |
- |
400 |
-pkg_preinst() { |
401 |
- gnome2_icon_savelist |
402 |
-} |
403 |
- |
404 |
-pkg_postinst() { |
405 |
- fdo-mime_desktop_database_update |
406 |
- fdo-mime_mime_database_update |
407 |
- gnome2_icon_cache_update |
408 |
- |
409 |
- if use minimal ; then |
410 |
- ewarn "If the schematic and/or board editors complain about missing libraries when you" |
411 |
- ewarn "open old projects, you will have to take one or more of the following actions :" |
412 |
- ewarn "- Install the missing libraries manually." |
413 |
- ewarn "- Remove the libraries from the 'Libs and Dir' preferences." |
414 |
- ewarn "- Fix the libraries' locations in the 'Libs and Dir' preferences." |
415 |
- ewarn "- Emerge ${PN} without the 'minimal' USE flag." |
416 |
- fi |
417 |
- elog "" |
418 |
- elog "You may want to emerge media-gfx/wings if you want to create 3D models of components." |
419 |
- elog "For help and extended documentation emerge app-doc/kicad-doc." |
420 |
-} |
421 |
- |
422 |
-pkg_postrm() { |
423 |
- fdo-mime_desktop_database_update |
424 |
- fdo-mime_mime_database_update |
425 |
- gnome2_icon_cache_update |
426 |
-} |
427 |
|
428 |
diff --git a/sci-electronics/kicad/kicad-4.0.1.ebuild b/sci-electronics/kicad/kicad-4.0.1.ebuild |
429 |
deleted file mode 100644 |
430 |
index 64b2726..0000000 |
431 |
--- a/sci-electronics/kicad/kicad-4.0.1.ebuild |
432 |
+++ /dev/null |
433 |
@@ -1,185 +0,0 @@ |
434 |
-# Copyright 1999-2016 Gentoo Foundation |
435 |
-# Distributed under the terms of the GNU General Public License v2 |
436 |
-# $Id$ |
437 |
- |
438 |
-EAPI="5" |
439 |
-PYTHON_COMPAT=( python2_7 ) |
440 |
- |
441 |
-WX_GTK_VER="3.0" |
442 |
- |
443 |
-inherit cmake-utils fdo-mime flag-o-matic gnome2-utils python-single-r1 vcs-snapshot wxwidgets versionator |
444 |
- |
445 |
-DESCRIPTION="Electronic Schematic and PCB design tools." |
446 |
-HOMEPAGE="http://www.kicad-pcb.org" |
447 |
- |
448 |
-SERIES=$(get_version_component_range 1-2) |
449 |
- |
450 |
-SRC_URI="https://launchpad.net/${PN}/${SERIES}/${PV}/+download/${P}.tar.xz |
451 |
- !minimal? ( https://github.com/KiCad/${PN}-library/archive/${PV}.tar.gz -> ${P}-library.tar.gz ) |
452 |
- i18n? ( https://github.com/KiCad/${PN}-i18n/archive/${PV}.tar.gz -> ${P}-i18n.tar.gz )" |
453 |
- |
454 |
-LICENSE="GPL-2" |
455 |
-SLOT="0" |
456 |
-KEYWORDS="~amd64 ~x86" |
457 |
-IUSE="debug doc examples github i18n minimal python webkit" |
458 |
-LANGS="bg ca cs de el es fi fr hu it ja ko nl pl pt ru sk sl sv zh_CN" |
459 |
-for lang in ${LANGS} ; do |
460 |
- IUSE="${IUSE} linguas_${lang}" |
461 |
-done |
462 |
-unset lang |
463 |
- |
464 |
-REQUIRED_USE=" |
465 |
- github? ( webkit ) |
466 |
- python? ( ${PYTHON_REQUIRED_USE} )" |
467 |
- |
468 |
-CDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit?] |
469 |
- python? ( |
470 |
- dev-python/wxpython:${WX_GTK_VER}[opengl,${PYTHON_USEDEP}] |
471 |
- ${PYTHON_DEPS} |
472 |
- ) |
473 |
- >=dev-libs/boost-1.56[context,nls,threads,python?] |
474 |
- github? ( dev-libs/openssl:0 ) |
475 |
- media-libs/glew |
476 |
- media-libs/freeglut |
477 |
- media-libs/mesa |
478 |
- sys-libs/zlib |
479 |
- x11-libs/cairo" |
480 |
-DEPEND="${CDEPEND} |
481 |
- app-arch/xz-utils |
482 |
- doc? ( app-doc/doxygen ) |
483 |
- i18n? ( >=sys-devel/gettext-0.18 ) |
484 |
- python? ( dev-lang/swig:0 ) |
485 |
- app-text/dos2unix" |
486 |
-RDEPEND="${CDEPEND} |
487 |
- sci-electronics/electronics-menu" |
488 |
- |
489 |
-pkg_setup() { |
490 |
- python-single-r1_pkg_setup |
491 |
-} |
492 |
- |
493 |
-src_prepare() { |
494 |
- # remove all the non unix file endings |
495 |
- find "${S}" -type f -name "*.desktop" | xargs -n1 dos2unix |
496 |
- assert "dos2unix failed" |
497 |
- |
498 |
- # Handle optional minimal install. |
499 |
- if use minimal; then |
500 |
- # remove templates as they are not needed to run binaries |
501 |
- sed -e '/add_subdirectory( template )/d' -i CMakeLists.txt || die "sed failed" |
502 |
- else |
503 |
- # create a link to the parts library in the main project folder |
504 |
- ln -s "${WORKDIR}/${P}-library" "${S}/${PN}-library" || die "ln failed" |
505 |
- # add the libraries directory to cmake as a subproject to build |
506 |
- sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-library )" -i CMakeLists.txt || die "sed failed" |
507 |
- # remove duplicate uninstall directions for the library module |
508 |
- sed '/make uninstall/,/# /d' -i ${PN}-library/CMakeLists.txt || die "sed failed" |
509 |
- fi |
510 |
- |
511 |
- # Add internationalization for the GUI |
512 |
- if use i18n; then |
513 |
- # create a link to the translations library in the main project folder |
514 |
- ln -s "${WORKDIR}/${P}-i18n" "${S}/${PN}-i18n" || die "ln failed" |
515 |
- # Remove unused languages. Project generates only languages specified in the |
516 |
- # file in LINGUAS in the subproject folder. By default all languages are added |
517 |
- # so we sed out the unused ones based on the user linguas_* settings. |
518 |
- local lang |
519 |
- for lang in ${LANGS}; do |
520 |
- if ! use linguas_${lang}; then |
521 |
- sed "/${lang}/d" -i ${PN}-i18n/LINGUAS || die "sed failed" |
522 |
- fi |
523 |
- done |
524 |
- # cmakelists does not respect our build dir variables, so make it point to the right location |
525 |
- sed "s|\${CMAKE_BINARY_DIR}|${WORKDIR}/${P}_build|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
526 |
- # we also make from the master project so the source dir is understood incorretly, replace that too |
527 |
- sed "s|\${CMAKE_SOURCE_DIR}/\${LANG}|\${CMAKE_SOURCE_DIR}/${PN}-i18n/\${LANG}|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
528 |
- # add the translations directory to cmake as a subproject to build |
529 |
- sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-i18n )" -i CMakeLists.txt || die "sed failed" |
530 |
- # remove duplicate uninstall directions for the translation module |
531 |
- sed '/make uninstall/,$d' -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
532 |
- fi |
533 |
- |
534 |
- # Install examples in the right place if requested |
535 |
- if use examples; then |
536 |
- # install demos into the examples folder too |
537 |
- sed -e 's:${KICAD_DATA}/demos:${KICAD_DOCS}/examples:' -i CMakeLists.txt || die "sed failed" |
538 |
- else |
539 |
- # remove additional demos/examples as its not strictly required to run the binaries |
540 |
- sed -e '/add_subdirectory( demos )/d' -i CMakeLists.txt || die "sed failed" |
541 |
- fi |
542 |
- |
543 |
- # Add important missing doc files |
544 |
- sed -e 's/INSTALL.txt/AUTHORS.txt CHANGELOG.txt README.txt TODO.txt/' -i CMakeLists.txt || die "sed failed" |
545 |
-} |
546 |
- |
547 |
-src_configure() { |
548 |
- need-wxwidgets unicode |
549 |
- |
550 |
- local mycmakeargs=( |
551 |
- -DPYTHON_DEST="$(python_get_sitedir)" |
552 |
- -DPYTHON_EXECUTABLE="${PYTHON}" |
553 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
554 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
555 |
- -DKICAD_DOCS="/usr/share/doc/${PF}" |
556 |
- -DKICAD_HELP="/usr/share/doc/${PF}/help" |
557 |
- -DKICAD_REPO_NAME="stable" |
558 |
- -DKICAD_BUILD_VERSION="${PV}" |
559 |
- -DwxUSE_UNICODE=ON |
560 |
- -DKICAD_SKIP_BOOST=ON |
561 |
- $(cmake-utils_use github BUILD_GITHUB_PLUGIN) |
562 |
- $(cmake-utils_use python KICAD_SCRIPTING) |
563 |
- $(cmake-utils_use python KICAD_SCRIPTING_MODULES) |
564 |
- $(cmake-utils_use python KICAD_SCRIPTING_WXPYTHON) |
565 |
- $(cmake-utils_use webkit KICAD_USE_WEBKIT) |
566 |
- $(usex i18n "-DKICAD_I18N_UNIX_STRICT_PATH=1" "") |
567 |
- ) |
568 |
- if use debug; then |
569 |
- append-cxxflags "-DDEBUG" |
570 |
- append-cflags "-DDEBUG" |
571 |
- fi |
572 |
- cmake-utils_src_configure |
573 |
-} |
574 |
- |
575 |
-src_compile() { |
576 |
- cmake-utils_src_compile |
577 |
- if use doc; then |
578 |
- doxygen Doxyfile || die "doxygen failed" |
579 |
- fi |
580 |
-} |
581 |
- |
582 |
-src_install() { |
583 |
- cmake-utils_src_install |
584 |
- use python && python_optimize |
585 |
- if use doc ; then |
586 |
- dodoc uncrustify.cfg |
587 |
- cd Documentation || die "cd failed" |
588 |
- dodoc -r GUI_Translation_HOWTO.pdf guidelines/UIpolicies.txt doxygen/. |
589 |
- fi |
590 |
-} |
591 |
- |
592 |
-pkg_preinst() { |
593 |
- gnome2_icon_savelist |
594 |
-} |
595 |
- |
596 |
-pkg_postinst() { |
597 |
- fdo-mime_desktop_database_update |
598 |
- fdo-mime_mime_database_update |
599 |
- gnome2_icon_cache_update |
600 |
- |
601 |
- if use minimal ; then |
602 |
- ewarn "If the schematic and/or board editors complain about missing libraries when you" |
603 |
- ewarn "open old projects, you will have to take one or more of the following actions :" |
604 |
- ewarn "- Install the missing libraries manually." |
605 |
- ewarn "- Remove the libraries from the 'Libs and Dir' preferences." |
606 |
- ewarn "- Fix the libraries' locations in the 'Libs and Dir' preferences." |
607 |
- ewarn "- Emerge ${PN} without the 'minimal' USE flag." |
608 |
- fi |
609 |
- elog "" |
610 |
- elog "You may want to emerge media-gfx/wings if you want to create 3D models of components." |
611 |
- elog "For help and extended documentation emerge app-doc/kicad-doc." |
612 |
-} |
613 |
- |
614 |
-pkg_postrm() { |
615 |
- fdo-mime_desktop_database_update |
616 |
- fdo-mime_mime_database_update |
617 |
- gnome2_icon_cache_update |
618 |
-} |
619 |
|
620 |
diff --git a/sci-electronics/kicad/kicad-4.0.2.ebuild b/sci-electronics/kicad/kicad-4.0.2.ebuild |
621 |
deleted file mode 100644 |
622 |
index 64b2726..0000000 |
623 |
--- a/sci-electronics/kicad/kicad-4.0.2.ebuild |
624 |
+++ /dev/null |
625 |
@@ -1,185 +0,0 @@ |
626 |
-# Copyright 1999-2016 Gentoo Foundation |
627 |
-# Distributed under the terms of the GNU General Public License v2 |
628 |
-# $Id$ |
629 |
- |
630 |
-EAPI="5" |
631 |
-PYTHON_COMPAT=( python2_7 ) |
632 |
- |
633 |
-WX_GTK_VER="3.0" |
634 |
- |
635 |
-inherit cmake-utils fdo-mime flag-o-matic gnome2-utils python-single-r1 vcs-snapshot wxwidgets versionator |
636 |
- |
637 |
-DESCRIPTION="Electronic Schematic and PCB design tools." |
638 |
-HOMEPAGE="http://www.kicad-pcb.org" |
639 |
- |
640 |
-SERIES=$(get_version_component_range 1-2) |
641 |
- |
642 |
-SRC_URI="https://launchpad.net/${PN}/${SERIES}/${PV}/+download/${P}.tar.xz |
643 |
- !minimal? ( https://github.com/KiCad/${PN}-library/archive/${PV}.tar.gz -> ${P}-library.tar.gz ) |
644 |
- i18n? ( https://github.com/KiCad/${PN}-i18n/archive/${PV}.tar.gz -> ${P}-i18n.tar.gz )" |
645 |
- |
646 |
-LICENSE="GPL-2" |
647 |
-SLOT="0" |
648 |
-KEYWORDS="~amd64 ~x86" |
649 |
-IUSE="debug doc examples github i18n minimal python webkit" |
650 |
-LANGS="bg ca cs de el es fi fr hu it ja ko nl pl pt ru sk sl sv zh_CN" |
651 |
-for lang in ${LANGS} ; do |
652 |
- IUSE="${IUSE} linguas_${lang}" |
653 |
-done |
654 |
-unset lang |
655 |
- |
656 |
-REQUIRED_USE=" |
657 |
- github? ( webkit ) |
658 |
- python? ( ${PYTHON_REQUIRED_USE} )" |
659 |
- |
660 |
-CDEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X,opengl,webkit?] |
661 |
- python? ( |
662 |
- dev-python/wxpython:${WX_GTK_VER}[opengl,${PYTHON_USEDEP}] |
663 |
- ${PYTHON_DEPS} |
664 |
- ) |
665 |
- >=dev-libs/boost-1.56[context,nls,threads,python?] |
666 |
- github? ( dev-libs/openssl:0 ) |
667 |
- media-libs/glew |
668 |
- media-libs/freeglut |
669 |
- media-libs/mesa |
670 |
- sys-libs/zlib |
671 |
- x11-libs/cairo" |
672 |
-DEPEND="${CDEPEND} |
673 |
- app-arch/xz-utils |
674 |
- doc? ( app-doc/doxygen ) |
675 |
- i18n? ( >=sys-devel/gettext-0.18 ) |
676 |
- python? ( dev-lang/swig:0 ) |
677 |
- app-text/dos2unix" |
678 |
-RDEPEND="${CDEPEND} |
679 |
- sci-electronics/electronics-menu" |
680 |
- |
681 |
-pkg_setup() { |
682 |
- python-single-r1_pkg_setup |
683 |
-} |
684 |
- |
685 |
-src_prepare() { |
686 |
- # remove all the non unix file endings |
687 |
- find "${S}" -type f -name "*.desktop" | xargs -n1 dos2unix |
688 |
- assert "dos2unix failed" |
689 |
- |
690 |
- # Handle optional minimal install. |
691 |
- if use minimal; then |
692 |
- # remove templates as they are not needed to run binaries |
693 |
- sed -e '/add_subdirectory( template )/d' -i CMakeLists.txt || die "sed failed" |
694 |
- else |
695 |
- # create a link to the parts library in the main project folder |
696 |
- ln -s "${WORKDIR}/${P}-library" "${S}/${PN}-library" || die "ln failed" |
697 |
- # add the libraries directory to cmake as a subproject to build |
698 |
- sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-library )" -i CMakeLists.txt || die "sed failed" |
699 |
- # remove duplicate uninstall directions for the library module |
700 |
- sed '/make uninstall/,/# /d' -i ${PN}-library/CMakeLists.txt || die "sed failed" |
701 |
- fi |
702 |
- |
703 |
- # Add internationalization for the GUI |
704 |
- if use i18n; then |
705 |
- # create a link to the translations library in the main project folder |
706 |
- ln -s "${WORKDIR}/${P}-i18n" "${S}/${PN}-i18n" || die "ln failed" |
707 |
- # Remove unused languages. Project generates only languages specified in the |
708 |
- # file in LINGUAS in the subproject folder. By default all languages are added |
709 |
- # so we sed out the unused ones based on the user linguas_* settings. |
710 |
- local lang |
711 |
- for lang in ${LANGS}; do |
712 |
- if ! use linguas_${lang}; then |
713 |
- sed "/${lang}/d" -i ${PN}-i18n/LINGUAS || die "sed failed" |
714 |
- fi |
715 |
- done |
716 |
- # cmakelists does not respect our build dir variables, so make it point to the right location |
717 |
- sed "s|\${CMAKE_BINARY_DIR}|${WORKDIR}/${P}_build|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
718 |
- # we also make from the master project so the source dir is understood incorretly, replace that too |
719 |
- sed "s|\${CMAKE_SOURCE_DIR}/\${LANG}|\${CMAKE_SOURCE_DIR}/${PN}-i18n/\${LANG}|g" -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
720 |
- # add the translations directory to cmake as a subproject to build |
721 |
- sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-i18n )" -i CMakeLists.txt || die "sed failed" |
722 |
- # remove duplicate uninstall directions for the translation module |
723 |
- sed '/make uninstall/,$d' -i ${PN}-i18n/CMakeLists.txt || die "sed failed" |
724 |
- fi |
725 |
- |
726 |
- # Install examples in the right place if requested |
727 |
- if use examples; then |
728 |
- # install demos into the examples folder too |
729 |
- sed -e 's:${KICAD_DATA}/demos:${KICAD_DOCS}/examples:' -i CMakeLists.txt || die "sed failed" |
730 |
- else |
731 |
- # remove additional demos/examples as its not strictly required to run the binaries |
732 |
- sed -e '/add_subdirectory( demos )/d' -i CMakeLists.txt || die "sed failed" |
733 |
- fi |
734 |
- |
735 |
- # Add important missing doc files |
736 |
- sed -e 's/INSTALL.txt/AUTHORS.txt CHANGELOG.txt README.txt TODO.txt/' -i CMakeLists.txt || die "sed failed" |
737 |
-} |
738 |
- |
739 |
-src_configure() { |
740 |
- need-wxwidgets unicode |
741 |
- |
742 |
- local mycmakeargs=( |
743 |
- -DPYTHON_DEST="$(python_get_sitedir)" |
744 |
- -DPYTHON_EXECUTABLE="${PYTHON}" |
745 |
- -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
746 |
- -DPYTHON_LIBRARY="$(python_get_library_path)" |
747 |
- -DKICAD_DOCS="/usr/share/doc/${PF}" |
748 |
- -DKICAD_HELP="/usr/share/doc/${PF}/help" |
749 |
- -DKICAD_REPO_NAME="stable" |
750 |
- -DKICAD_BUILD_VERSION="${PV}" |
751 |
- -DwxUSE_UNICODE=ON |
752 |
- -DKICAD_SKIP_BOOST=ON |
753 |
- $(cmake-utils_use github BUILD_GITHUB_PLUGIN) |
754 |
- $(cmake-utils_use python KICAD_SCRIPTING) |
755 |
- $(cmake-utils_use python KICAD_SCRIPTING_MODULES) |
756 |
- $(cmake-utils_use python KICAD_SCRIPTING_WXPYTHON) |
757 |
- $(cmake-utils_use webkit KICAD_USE_WEBKIT) |
758 |
- $(usex i18n "-DKICAD_I18N_UNIX_STRICT_PATH=1" "") |
759 |
- ) |
760 |
- if use debug; then |
761 |
- append-cxxflags "-DDEBUG" |
762 |
- append-cflags "-DDEBUG" |
763 |
- fi |
764 |
- cmake-utils_src_configure |
765 |
-} |
766 |
- |
767 |
-src_compile() { |
768 |
- cmake-utils_src_compile |
769 |
- if use doc; then |
770 |
- doxygen Doxyfile || die "doxygen failed" |
771 |
- fi |
772 |
-} |
773 |
- |
774 |
-src_install() { |
775 |
- cmake-utils_src_install |
776 |
- use python && python_optimize |
777 |
- if use doc ; then |
778 |
- dodoc uncrustify.cfg |
779 |
- cd Documentation || die "cd failed" |
780 |
- dodoc -r GUI_Translation_HOWTO.pdf guidelines/UIpolicies.txt doxygen/. |
781 |
- fi |
782 |
-} |
783 |
- |
784 |
-pkg_preinst() { |
785 |
- gnome2_icon_savelist |
786 |
-} |
787 |
- |
788 |
-pkg_postinst() { |
789 |
- fdo-mime_desktop_database_update |
790 |
- fdo-mime_mime_database_update |
791 |
- gnome2_icon_cache_update |
792 |
- |
793 |
- if use minimal ; then |
794 |
- ewarn "If the schematic and/or board editors complain about missing libraries when you" |
795 |
- ewarn "open old projects, you will have to take one or more of the following actions :" |
796 |
- ewarn "- Install the missing libraries manually." |
797 |
- ewarn "- Remove the libraries from the 'Libs and Dir' preferences." |
798 |
- ewarn "- Fix the libraries' locations in the 'Libs and Dir' preferences." |
799 |
- ewarn "- Emerge ${PN} without the 'minimal' USE flag." |
800 |
- fi |
801 |
- elog "" |
802 |
- elog "You may want to emerge media-gfx/wings if you want to create 3D models of components." |
803 |
- elog "For help and extended documentation emerge app-doc/kicad-doc." |
804 |
-} |
805 |
- |
806 |
-pkg_postrm() { |
807 |
- fdo-mime_desktop_database_update |
808 |
- fdo-mime_mime_database_update |
809 |
- gnome2_icon_cache_update |
810 |
-} |