Gentoo Archives: gentoo-commits

From: Virgil Dupras <vdupras@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/kicad/, sci-electronics/kicad/files/
Date: Fri, 07 Sep 2018 12:03:37
Message-Id: 1536321697.22fe2623355fa8f7045537cd84b76bb3aef436fc.vdupras@gentoo
1 commit: 22fe2623355fa8f7045537cd84b76bb3aef436fc
2 Author: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 7 12:01:37 2018 +0000
4 Commit: Virgil Dupras <vdupras <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 7 12:01:37 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22fe2623
7
8 sci-electronics/kicad: remove old
9
10 Package-Manager: Portage-2.3.49, Repoman-2.3.10
11
12 sci-electronics/kicad/Manifest | 5 -
13 .../kicad/files/kicad-4.0.4-boost-context.patch | 107 -----------
14 sci-electronics/kicad/kicad-4.0.4.ebuild | 204 ---------------------
15 3 files changed, 316 deletions(-)
16
17 diff --git a/sci-electronics/kicad/Manifest b/sci-electronics/kicad/Manifest
18 index 8ef3f97151a..80f7881b37e 100644
19 --- a/sci-electronics/kicad/Manifest
20 +++ b/sci-electronics/kicad/Manifest
21 @@ -1,10 +1,5 @@
22 -DIST kicad-4.0.4-i18n.tar.gz 2409039 BLAKE2B 95e0e8c8b001957df1f244ba5fef5b36658c75b3c903b495faab8c8ccb524d02dbb79b0197fa0485fc5f93a5a0088861bada57cd85d7982191437bdf8f7b1f3c SHA512 5fcbf54aeff92c142652908dda9e727e8b076aec4531f2bb4d27aa9fd946e92621141a9709a9469c133010cca019e4e6bc9731366e8c1adbe38078f5a6fcaedf
23 -DIST kicad-4.0.4.tar.xz 10672424 BLAKE2B 16bef2545e697757be270eeff6820e75b1a79a37528f264e127587131c519cbdf67a774a4a9a8ff32c90b236279746ffd2164cb4d8885dc68d2664ef3dd178de SHA512 230eb10d42e004c51d790db0d21dc08653944ca6cc4b728ad34b506f1a2b009c23369ddae417c8fafd420cb8045900dd4145cd1071867c759ab406dd12be3242
24 DIST kicad-4.0.7-i18n.tar.gz 2578242 BLAKE2B 610f580d9584cf9ef96686c3d7b7081d4c3a0d2c670482eaa2ef32720a7e71630670845a6050bae8e51df7ac41e30f73d3d11be65ea477ad9efd9fbb5176e2df SHA512 4880705fd7e95c939b7f5e2b7730fd37c426be10596f4cfa80d7df102d9e67232621900395d45f4e735986054f74fb215ae2002a2818faae32b1c75e3cb7e10a
25 DIST kicad-4.0.7.tar.xz 10678656 BLAKE2B 54be9a3f5ae6378ac05cb327c28b1a358d895e736a116e1bf5151f021973b9510eab4671a67f222c3be2ef67929954b9576c5c28ef2b6a14708f8c019729969b SHA512 7b2acd9efadf5d48565f71bd0df2474ecc8fc04145953c13ac27363d48dbe6b0de091e311713635f603aed89ce0759a1d623abb37a139e2c87184ca4e717145b
26 DIST kicad-5.0.0.tar.xz 14284708 BLAKE2B 9f4414c4476aca8f2da1d7171b53f56d5ea216f11fc025695a228f93ec05e2f271cbab8429ed39445602a3a0707a31d44cce83eae0ad651167c471f52f3867cd SHA512 79d4d34e8eaa5b6e4c7baac39a76f86af89adbaf3f9181b8cd846ed3a8db1b4c6dd7a36efefda3394d33ef828917909ad3bd8bb22435af9c6f671efbff125b42
27 -DIST kicad-footprints-4.0.4.tar.gz 1400434 BLAKE2B eaf81e977a3d65305034f60eff18f6955cf6b805c2a28a2019c4bb2bd8de9868906a0f9e5ac17810c4779940c6b78e06472661966775cfb196b8cd8fc1ae4083 SHA512 7d42eea2c7c84961e05e0e61d6380e3d294d696e1321bb4406391125379fd6a3dc2b38e7ff8be51b684786bed892738452218f4c5a95c547319f1eaafc0cea6e
28 DIST kicad-footprints-4.0.7.tar.gz 4758012 BLAKE2B ca7ddcad3d1ca658d0d5b7c0a4a0e9a3906619bdbf14195b3bd14c528c01b6e9c1f185036ad495fc88a33a53040ae4d338230d8b2bbb598a69a1c07ddfec3cce SHA512 9ba08f528d4b3fa6f165a20333ad2e0f6bc4165b51da77bdb080ad2c8cc12c029927ddb2f6aa669b4dac5fac52b8bdbec803d1b7b3fc639e9481bb866b8e3d6f
29 -DIST kicad-libcontext.tar.gz 25599 BLAKE2B b8871ab552745dfe29504b97c3c3e23f9e63100ef108c5a116512029f4973791e3d2bca240877319ee177f0a28da4a7946ae5cfaf18eaca0f5b0b1660335a520 SHA512 3b469dcf0e0f4e23f304d0068468a99516e89588d8f36a821af10e751f919cb8a9077d52109fdd43c1c2a443e026b38d0d3aa4774823d05755c9db35742d32d9
30 -DIST kicad-library-4.0.4.tar.gz 87947075 BLAKE2B b9176ad7ba05f32a5ed42012818a7636fd0f8993630627480557c3d8ab99884b31090f66f438a86dbc842677629cca629333be1d7b05f06a3c12373e57622954 SHA512 57f905277cf581cfda6ca574d87bbdd3a870cd240a151b2c8faedc7ecbfa2cc122b67937cbdbf028be77727cdf4fac9cdc3512ce5bfe80d0f6cbb4f444ccfd6c
31 DIST kicad-library-4.0.7.tar.gz 475804416 BLAKE2B 0d6df1df7a72258e896552551996ff13e985976e03b6aafbe900dcc04c9b8eb6e5c1abc242ae5020c1bd20b51e9cc1e60f520b478954edcb6368db7f9ee46df0 SHA512 c5365e18e806102aace785895259deca708a61e0ce37262f5ee2482a8a1f86bc9ce1d37e0fb63cb0661bd5c71064ac36ca2260c9c02ed9790744eedd0a5b5360
32
33 diff --git a/sci-electronics/kicad/files/kicad-4.0.4-boost-context.patch b/sci-electronics/kicad/files/kicad-4.0.4-boost-context.patch
34 deleted file mode 100644
35 index 529a82c018f..00000000000
36 --- a/sci-electronics/kicad/files/kicad-4.0.4-boost-context.patch
37 +++ /dev/null
38 @@ -1,107 +0,0 @@
39 -diff -Naur kicad-4.0.2-orig/common/system/libcontext.cpp kicad-4.0.2/common/system/libcontext.cpp
40 ---- kicad-4.0.2-orig/common/system/libcontext.cpp 2016-06-16 22:30:58.000000000 -0700
41 -+++ kicad-4.0.2/common/system/libcontext.cpp 2016-06-16 22:35:46.654719468 -0700
42 -@@ -13,7 +13,7 @@
43 - http://www.boost.org/LICENSE_1_0.txt)
44 -
45 - */
46 --#include "libcontext.h"
47 -+#include <system/libcontext.h>
48 - #if defined(LIBCONTEXT_PLATFORM_windows_i386) && defined(LIBCONTEXT_COMPILER_gcc)
49 - __asm (
50 - ".text\n"
51 -diff -Naur kicad-4.0.2-orig/CMakeLists.txt kicad-4.0.2/CMakeLists.txt
52 ---- kicad-4.0.2-orig/CMakeLists.txt 2016-02-13 13:14:42.000000000 -0800
53 -+++ kicad-4.0.2/CMakeLists.txt 2016-06-11 01:11:25.623484908 -0700
54 -@@ -561,7 +561,7 @@
55 - # Download boost and possibly build parts of it
56 - #################################################
57 - if( KICAD_SKIP_BOOST )
58 -- find_package( Boost 1.54.0 REQUIRED COMPONENTS context date_time filesystem iostreams locale
59 -+ find_package( Boost 1.54.0 REQUIRED COMPONENTS date_time filesystem iostreams locale
60 - program_options regex system thread )
61 -
62 - if( NOT Boost_FOUND )
63 -diff -Naur kicad-4.0.2-orig/common/CMakeLists.txt kicad-4.0.2/common/CMakeLists.txt
64 ---- kicad-4.0.2-orig/common/CMakeLists.txt 2016-02-13 13:14:42.000000000 -0800
65 -+++ kicad-4.0.2/common/CMakeLists.txt 2016-06-11 01:10:04.886830434 -0700
66 -@@ -256,6 +256,8 @@
67 - view/view_item.cpp
68 - view/view_group.cpp
69 -
70 -+ system/libcontext.cpp
71 -+
72 - math/math_util.cpp
73 -
74 - tool/tool_action.cpp
75 -diff -Naur kicad-4.0.2-orig/include/tool/coroutine.h kicad-4.0.2/include/tool/coroutine.h
76 ---- kicad-4.0.2-orig/include/tool/coroutine.h 2016-02-13 13:14:42.000000000 -0800
77 -+++ kicad-4.0.2/include/tool/coroutine.h 2016-06-11 01:07:06.035378422 -0700
78 -@@ -27,8 +27,7 @@
79 -
80 - #include <cstdlib>
81 -
82 --#include <boost/context/fcontext.hpp>
83 --#include <boost/version.hpp>
84 -+#include <system/libcontext.h>
85 -
86 - #include "delegate.h"
87 -
88 -@@ -92,10 +91,8 @@
89 - if( m_saved )
90 - delete m_saved;
91 -
92 --#if BOOST_VERSION >= 105600
93 - if( m_self )
94 - delete m_self;
95 --#endif
96 -
97 - if( m_stack )
98 - free( m_stack );
99 -@@ -156,13 +153,9 @@
100 - assert( m_saved == NULL );
101 -
102 - m_args = &aArgs;
103 --#if BOOST_VERSION >= 105600
104 -- m_self = new boost::context::fcontext_t();
105 -- *m_self = boost::context::make_fcontext( sp, m_stackSize, callerStub );
106 --#else
107 -- m_self = boost::context::make_fcontext( sp, m_stackSize, callerStub );
108 --#endif
109 -- m_saved = new boost::context::fcontext_t();
110 -+ m_self = new fcontext_t();
111 -+ *m_self = make_fcontext( sp, m_stackSize, callerStub );
112 -+ m_saved = new fcontext_t();
113 -
114 - m_running = true;
115 - // off we go!
116 -@@ -222,14 +215,10 @@
117 - }
118 -
119 - ///> Wrapper for jump_fcontext to assure compatibility between different boost versions
120 -- static inline intptr_t jump(boost::context::fcontext_t* aOld, boost::context::fcontext_t* aNew,
121 -+ static inline intptr_t jump(fcontext_t* aOld, fcontext_t* aNew,
122 - intptr_t aP, bool aPreserveFPU = true )
123 - {
124 --#if BOOST_VERSION >= 105600
125 -- return boost::context::jump_fcontext( aOld, *aNew, aP, aPreserveFPU );
126 --#else
127 -- return boost::context::jump_fcontext( aOld, aNew, aP, aPreserveFPU );
128 --#endif
129 -+ return jump_fcontext( aOld, *aNew, aP, aPreserveFPU );
130 - }
131 -
132 - template <typename T>
133 -@@ -252,10 +241,10 @@
134 - ReturnType m_retVal;
135 -
136 - ///< saved caller context
137 -- boost::context::fcontext_t* m_saved;
138 -+ fcontext_t* m_saved;
139 -
140 - ///< saved coroutine context
141 -- boost::context::fcontext_t* m_self;
142 -+ fcontext_t* m_self;
143 -
144 - ///< coroutine stack
145 - void* m_stack;
146
147 diff --git a/sci-electronics/kicad/kicad-4.0.4.ebuild b/sci-electronics/kicad/kicad-4.0.4.ebuild
148 deleted file mode 100644
149 index 6c75dc7aba9..00000000000
150 --- a/sci-electronics/kicad/kicad-4.0.4.ebuild
151 +++ /dev/null
152 @@ -1,204 +0,0 @@
153 -# Copyright 1999-2018 Gentoo Foundation
154 -# Distributed under the terms of the GNU General Public License v2
155 -
156 -EAPI=5
157 -PYTHON_COMPAT=( python2_7 )
158 -
159 -WX_GTK_VER="3.0"
160 -
161 -inherit cmake-utils eutils flag-o-matic gnome2-utils python-single-r1 wxwidgets vcs-snapshot versionator xdg
162 -
163 -DESCRIPTION="Electronic Schematic and PCB design tools."
164 -HOMEPAGE="http://www.kicad-pcb.org"
165 -LIBCONTEXT_COMMIT="3d92a1a50f4749b5a92131a957c9615473be85b4"
166 -
167 -SERIES=$(get_version_component_range 1-2)
168 -
169 -SRC_URI="https://launchpad.net/${PN}/${SERIES}/${PV}/+download/${P}.tar.xz
170 - !minimal? (
171 - http://downloads.kicad-pcb.org/libraries/${PN}-footprints-${PV}.tar.gz
172 - http://downloads.kicad-pcb.org/libraries/kicad-library-${PV}.tar.gz
173 - )
174 - i18n? ( https://github.com/KiCad/${PN}-i18n/archive/${PV}.tar.gz -> ${P}-i18n.tar.gz )
175 - https://github.com/twlostow/libcontext/archive/${LIBCONTEXT_COMMIT}.tar.gz -> ${PN}-libcontext.tar.gz"
176 -
177 -LICENSE="GPL-2+ GPL-3+ Boost-1.0"
178 -SLOT="0"
179 -KEYWORDS="amd64 x86"
180 -IUSE="debug doc examples github i18n libressl minimal +python"
181 -LANGS="bg ca cs de el es fi fr hu it ja ko nl pl pt ru sk sl sv zh-CN"
182 -for lang in ${LANGS} ; do
183 - IUSE="${IUSE} l10n_${lang}"
184 -done
185 -unset lang
186 -
187 -REQUIRED_USE="
188 - python? ( ${PYTHON_REQUIRED_USE} )"
189 -
190 -COMMON_DEPEND="x11-libs/wxGTK:${WX_GTK_VER}[X,opengl]
191 - python? (
192 - dev-python/wxpython:${WX_GTK_VER}[opengl,${PYTHON_USEDEP}]
193 - ${PYTHON_DEPS}
194 - )
195 - >=dev-libs/boost-1.56[nls,threads,python?]
196 - github? (
197 - libressl? ( dev-libs/libressl:0 )
198 - !libressl? ( dev-libs/openssl:0 )
199 - )
200 - media-libs/glew:0=
201 - media-libs/freeglut
202 - media-libs/mesa
203 - sys-libs/zlib
204 - x11-libs/cairo"
205 -DEPEND="${COMMON_DEPEND}
206 - doc? ( app-doc/doxygen )
207 - i18n? ( virtual/libintl )
208 - python? ( dev-lang/swig:0 )"
209 -RDEPEND="${COMMON_DEPEND}
210 - sci-electronics/electronics-menu"
211 -
212 -pkg_setup() {
213 - python-single-r1_pkg_setup
214 -}
215 -
216 -src_prepare() {
217 - xdg_src_prepare
218 -
219 - # Add separated out libcontext files and patch source to use them
220 - mkdir -p "${S}/common/system/" || die
221 - mkdir -p "${S}/include/system/" || die
222 - cp "${WORKDIR}/${PN}-libcontext/libcontext.cpp" "${S}/common/system/libcontext.cpp" || die
223 - cp "${WORKDIR}/${PN}-libcontext/libcontext.h" "${S}/include/system/libcontext.h" || die
224 - # Path source to use new "built in" libcontext. Also patch libcontext.cpp to have correct include file.
225 - # Path must be applied after new libcontext files have been copied to the kicad source directory.
226 - epatch "${FILESDIR}/${P}-boost-context.patch"
227 -
228 - # remove all the non unix file endings
229 - edos2unix $(find "${S}" -type f -name "*.desktop")
230 -
231 - # Remove cvpcb desktop file while it does nothing
232 - rm "${WORKDIR}/${P}/resources/linux/mime/applications/cvpcb.desktop" || die
233 -
234 - # Handle optional minimal install.
235 - if use minimal; then
236 - # remove templates as they are not needed to run binaries
237 - sed -e '/add_subdirectory( template )/d' -i CMakeLists.txt || die
238 - else
239 - # create a link to the parts library in the main project folder
240 - ln -s "${WORKDIR}/kicad-library-${PV}" "${S}/${PN}-library" || die
241 - # create a link to the footprints library and add cmake build rule for it
242 - ln -s "${WORKDIR}/${PN}-footprints-${PV}" "${S}/${PN}-footprints" || die
243 - cp "${FILESDIR}/${PN}-footprints-cmakelists.txt" "${WORKDIR}/${PN}-footprints-${PV}/CMakeLists.txt" || die
244 - # add the libraries directory to cmake as a subproject to build
245 - sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-library )" -i CMakeLists.txt || die
246 - # add the footprints directory to cmake as a subproject to build
247 - sed "/add_subdirectory( ${PN}-library )/a add_subdirectory( ${PN}-footprints )" -i CMakeLists.txt || die
248 - # remove duplicate uninstall directions for the library module
249 - sed '/make uninstall/,/# /d' -i ${PN}-library/CMakeLists.txt || die
250 - fi
251 -
252 - # Add internationalization for the GUI
253 - if use i18n; then
254 - # create a link to the translations library in the main project folder
255 - ln -s "${WORKDIR}/${P}-i18n" "${S}/${PN}-i18n" || die
256 - # Remove unused languages. Project generates only languages specified in the
257 - # file in LINGUAS in the subproject folder. By default all languages are added
258 - # so we sed out the unused ones based on the user l10n_* settings.
259 - local lang
260 - for lang in ${LANGS}; do
261 - if ! use l10n_${lang}; then
262 - lang="${lang//-/_}"
263 - sed "/${lang}/d" -i ${PN}-i18n/LINGUAS || die
264 - fi
265 - done
266 - # cmakelists does not respect our build dir variables, so make it point to the right location
267 - sed "s|\${CMAKE_BINARY_DIR}|${WORKDIR}/${P}_build|g" -i ${PN}-i18n/CMakeLists.txt || die
268 - # we also make from the master project so the source dir is understood incorretly, replace that too
269 - sed "s|\${CMAKE_SOURCE_DIR}/\${LANG}|\${CMAKE_SOURCE_DIR}/${PN}-i18n/\${LANG}|g" -i ${PN}-i18n/CMakeLists.txt || die
270 - # add the translations directory to cmake as a subproject to build
271 - sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-i18n )" -i CMakeLists.txt || die
272 - # remove duplicate uninstall directions for the translation module
273 - sed '/make uninstall/,$d' -i ${PN}-i18n/CMakeLists.txt || die
274 - fi
275 -
276 - # Install examples in the right place if requested
277 - if use examples; then
278 - # install demos into the examples folder too
279 - sed -e 's:${KICAD_DATA}/demos:${KICAD_DOCS}/examples:' -i CMakeLists.txt || die
280 - else
281 - # remove additional demos/examples as its not strictly required to run the binaries
282 - sed -e '/add_subdirectory( demos )/d' -i CMakeLists.txt || die
283 - fi
284 -
285 - # Add important missing doc files
286 - sed -e 's/INSTALL.txt/AUTHORS.txt CHANGELOG.txt README.txt TODO.txt/' -i CMakeLists.txt || die
287 -}
288 -
289 -src_configure() {
290 - local mycmakeargs=(
291 - -DPYTHON_DEST="$(python_get_sitedir)"
292 - -DPYTHON_EXECUTABLE="${PYTHON}"
293 - -DPYTHON_INCLUDE_DIR="$(python_get_includedir)"
294 - -DPYTHON_LIBRARY="$(python_get_library_path)"
295 - -DKICAD_DOCS="/usr/share/doc/${PF}"
296 - -DKICAD_HELP="/usr/share/doc/${PF}/help"
297 - -DKICAD_REPO_NAME="stable"
298 - -DKICAD_BUILD_VERSION="${PV}"
299 - -DwxUSE_UNICODE=ON
300 - -DKICAD_SKIP_BOOST=ON
301 - $(cmake-utils_use github BUILD_GITHUB_PLUGIN)
302 - $(cmake-utils_use python KICAD_SCRIPTING)
303 - $(cmake-utils_use python KICAD_SCRIPTING_MODULES)
304 - $(cmake-utils_use python KICAD_SCRIPTING_WXPYTHON)
305 - $(usex i18n "-DKICAD_I18N_UNIX_STRICT_PATH=1" "")
306 - )
307 - if use debug; then
308 - append-cxxflags "-DDEBUG"
309 - append-cflags "-DDEBUG"
310 - fi
311 - cmake-utils_src_configure
312 -}
313 -
314 -src_compile() {
315 - cmake-utils_src_compile
316 - if use doc; then
317 - doxygen Doxyfile || die
318 - fi
319 -}
320 -
321 -src_install() {
322 - cmake-utils_src_install
323 - use python && python_optimize
324 - if use doc ; then
325 - dodoc uncrustify.cfg
326 - cd Documentation || die
327 - dodoc -r GUI_Translation_HOWTO.pdf guidelines/UIpolicies.txt doxygen/.
328 - fi
329 -}
330 -
331 -pkg_preinst() {
332 - xdg_pkg_preinst
333 - gnome2_icon_savelist
334 -}
335 -
336 -pkg_postinst() {
337 - xdg_pkg_postinst
338 - gnome2_icon_cache_update
339 -
340 - if use minimal ; then
341 - ewarn "If the schematic and/or board editors complain about missing libraries when you"
342 - ewarn "open old projects, you will have to take one or more of the following actions :"
343 - ewarn "- Install the missing libraries manually."
344 - ewarn "- Remove the libraries from the 'Libs and Dir' preferences."
345 - ewarn "- Fix the libraries' locations in the 'Libs and Dir' preferences."
346 - ewarn "- Emerge ${PN} without the 'minimal' USE flag."
347 - fi
348 - elog ""
349 - elog "You may want to emerge media-gfx/wings if you want to create 3D models of components."
350 - elog "For help and extended documentation emerge app-doc/kicad-doc."
351 -}
352 -
353 -pkg_postrm() {
354 - xdg_pkg_postrm
355 - gnome2_icon_cache_update
356 -}