1 |
commit: a9a271d2aab2102388bdca6a65fbb5763124194c |
2 |
Author: Zoltan Puskas <zoltan <AT> sinustrom <DOT> info> |
3 |
AuthorDate: Mon Nov 20 00:51:15 2017 +0000 |
4 |
Commit: Jonas Stein <jstein <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 20 00:53:58 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9a271d2 |
7 |
|
8 |
sci-electronics/kicad: Version bump to 4.0.7 |
9 |
|
10 |
Removed edos2unix conversion. Files were fixed upstream in the meantime. |
11 |
Closes: https://bugs.gentoo.org/633794 |
12 |
Package-Manager: Portage-2.3.14, Repoman-2.3.5 |
13 |
|
14 |
sci-electronics/kicad/Manifest | 4 + |
15 |
sci-electronics/kicad/kicad-4.0.7.ebuild | 195 +++++++++++++++++++++++++++++++ |
16 |
2 files changed, 199 insertions(+) |
17 |
|
18 |
diff --git a/sci-electronics/kicad/Manifest b/sci-electronics/kicad/Manifest |
19 |
index 73b9bfaf08a..ba9acf6753d 100644 |
20 |
--- a/sci-electronics/kicad/Manifest |
21 |
+++ b/sci-electronics/kicad/Manifest |
22 |
@@ -4,10 +4,14 @@ DIST kicad-4.0.5-i18n.tar.gz 2464569 SHA256 18538b050f7c85eec0aaf3b2fd0a7a37a4eb |
23 |
DIST kicad-4.0.5.tar.xz 10626696 SHA256 73f286733bb69b04749279a1848cbedfad908e7dcd1d11363c7fae7677c85331 SHA512 1486a039237e8d97ed21d62905ab74cb953b76c9d15bdfe7edd7380cf93e4c4b9a23aa82c6f523f6d5272e1dbe06ee8853a80eaabb1d0d9db6e304265f53ba7f WHIRLPOOL a7ca4e8183d44423a2076ca81047965166ed5f15504967ac790c18bedd045e61fbce17e197341876eb73aaa4a9a2571242cc5fcc4853abec99a19b3433690c6e |
24 |
DIST kicad-4.0.6-i18n.tar.gz 2578341 SHA256 eac9f2d2e4b149bd2bda007faefa1548e538c18be1700a7994829a1e5d0e86ac SHA512 d5a531857ed2699d9bbf583bd0716cef7b39d098e351a8e106d16b0001c592469c4f7a47f0c88e040479e5c515b9de3323b9419dfa17761c3f2cd059af2b0f8c WHIRLPOOL 177367132272d3a340d715c187b2bb3faddfd4c754c674d3a4482b39fe4e1f10cd0be67360c6a3a06f3b3d44865c6faa712b4fd721b1a1a52ef40a94741e5d33 |
25 |
DIST kicad-4.0.6.tar.xz 10834136 SHA256 e97cacc179839e65f2afa14d8830a3bed549aaa9ed234c988851971bf2a42298 SHA512 f20e5bdb7f4535e8eb9d8d76926a89ad4b69fd727447269f45695556aed9f7ddfdc05f434021bc210490ccb4b5223658eafc275df8cfaae91e22e3b645f2837e WHIRLPOOL b5997b8e25a5624cc366a08e77ee982a8dda71269a2360743621d923b12855ea7d8bd93efece01f633e2999e8773f8fea10fc313a51b2e4b76abde11846dd405 |
26 |
+DIST kicad-4.0.7-i18n.tar.gz 2578242 SHA256 24e0960ebebefc1b58f62580cf79df82b78286f78394c7e70e3cd08e002bba3b SHA512 4880705fd7e95c939b7f5e2b7730fd37c426be10596f4cfa80d7df102d9e67232621900395d45f4e735986054f74fb215ae2002a2818faae32b1c75e3cb7e10a WHIRLPOOL 226f57521d11fd8f989877ef614aa52c4fdee39766304ed6afdb69265ed84596ac8b9731690d4ec2f44cfcde82fe47863b2453cf8fcf9e20fe36d30d62ba9a1b |
27 |
+DIST kicad-4.0.7.tar.xz 10678656 SHA256 09074c77c6097d0f2ae49711c6d6f6c4490f0c068bba69b17f5f07319255fdc1 SHA512 7b2acd9efadf5d48565f71bd0df2474ecc8fc04145953c13ac27363d48dbe6b0de091e311713635f603aed89ce0759a1d623abb37a139e2c87184ca4e717145b WHIRLPOOL 1b28f7fd1c0630421a700a7ef25082996324e51499f4b7f84d7241e7bf2f4bb3781bfc14bd12a6c180329940603d872766ac7f1ff02ebc02483a98287a2e9e73 |
28 |
DIST kicad-footprints-4.0.4.tar.gz 1400434 SHA256 2b23e282c64c7e72d9ad52a6f114c20572b8c0e3fd9895b9b87b7ccacc7b4479 SHA512 7d42eea2c7c84961e05e0e61d6380e3d294d696e1321bb4406391125379fd6a3dc2b38e7ff8be51b684786bed892738452218f4c5a95c547319f1eaafc0cea6e WHIRLPOOL 6f96d7ecbe94c511f99c6022466704742aec83578790685c2945926682a0a2c50f2ff176bf075b06cea4cd60fe7afbfb8c142096b6b7a1d73020f0327d1281a8 |
29 |
DIST kicad-footprints-4.0.5.tar.gz 2330378 SHA256 50cb02d9eb44b30f8fd68434172a25a93c62cd9a07877091116fd8db8238f9ad SHA512 91122127be4b54bec7b37706d6438853463ed66b1c0c205e8d93709c159744e84ea58f3bf0cb1f4e18df6061f6df3d76f2ff0d6e698c6ba5ce3867d89838d95d WHIRLPOOL 44283efb35c3522e73d36fc51d591bc236cf2f17b8901279d28908b5a227f791597c74c94bff3be904417df42248b5d16e93a9aaa061132809ffe0507911b186 |
30 |
DIST kicad-footprints-4.0.6.tar.gz 5315435 SHA256 cb515000ff82ef369ab852a056d32b679f4fb7cd4f908d6d736516c01bc4af6e SHA512 808a5a16cabeb3c7ffcffbef9eb8b57b42953ea23e025c283ad8258a7fc07fecbfeaa4ffd6d33dc8fe00b63c45216a3a9fbd81568a2e99c07b6833df7f04e1a9 WHIRLPOOL 7679c05952bcf6e32e475e868c0ecda8b6b52626a30a8aa0e9a53755bbefb8816cb4de323274d3e9464c33ebbc2a056068eab81edd62c146c9bc52665ecddd55 |
31 |
+DIST kicad-footprints-4.0.7.tar.gz 4758012 SHA256 7284899f2a42258922b78e8ec7b12dcde7f83490446c4be511a12cfd7ff91923 SHA512 9ba08f528d4b3fa6f165a20333ad2e0f6bc4165b51da77bdb080ad2c8cc12c029927ddb2f6aa669b4dac5fac52b8bdbec803d1b7b3fc639e9481bb866b8e3d6f WHIRLPOOL 996a3b7b4e6541568ca8a61016a3cdb911bfbf439b6d7f8048d5ab97ba92c270856d7e7db0d6d4960291c06b7b5eeb2c04fb5884ed067b99706fdd4a1b0b350d |
32 |
DIST kicad-libcontext.tar.gz 25599 SHA256 37be6072a6016d402b4341e2ceba719cdd8e279e275ea7275d91e19e813a31a3 SHA512 3b469dcf0e0f4e23f304d0068468a99516e89588d8f36a821af10e751f919cb8a9077d52109fdd43c1c2a443e026b38d0d3aa4774823d05755c9db35742d32d9 WHIRLPOOL d05f43544fa4c9d1fae957445782ad610c07564db81c12491fe6aeaf6948a369b3f55114eacb21916fbc9001f20d0a2c4944c3ab0ccc8e57bf9aa44fea507087 |
33 |
DIST kicad-library-4.0.4.tar.gz 87947075 SHA256 22c02d151aba7ea90c519fda953a8cd882d8da7e36ec0e68ed90a6e15151cdf3 SHA512 57f905277cf581cfda6ca574d87bbdd3a870cd240a151b2c8faedc7ecbfa2cc122b67937cbdbf028be77727cdf4fac9cdc3512ce5bfe80d0f6cbb4f444ccfd6c WHIRLPOOL 1ee926de02ca13c420535487437a45ecf8ea652e854105f4849612a30091ff9f9098d422e7e1c49ab1a6a2cb36cb94d9587a7267851307d947c76109b863da7b |
34 |
DIST kicad-library-4.0.5.tar.gz 91081668 SHA256 7169d1cfa1a55cbe7570252e68dc1242ae91458f16a13f7fc3f7804c504b1af1 SHA512 904d3439d1e76d13fe72a221efe2f9f3b0a4115f8e84e78d44a24d5a727138de0b91eec7733e851b9a6fec138897f203229bdf83b772ea49000a6d828ba6f25f WHIRLPOOL f76975e99d69c3ca36532cd22b05edc7b278dd09d8d810fac5466a84687922b3b013242eca6b1a6ba48bb403fe05d2260bbc60136b718185774923013398e956 |
35 |
DIST kicad-library-4.0.6.tar.gz 175137480 SHA256 eedc596583a56325f0f518342218a2af809db23d62dcdc7ad3ad0167da3dc499 SHA512 4c35ce045a59c289e54cf8f634b22e59c272d79f4db047a0049085793b70ce659aba7bdba182f03e7081e65d0921af380aa9ca84eff4d3ec8644822d161ba425 WHIRLPOOL 60c682ee721a098e9e0567b07cf748ae1e82cd0b82365ed5dbb3d84c12ab48e742eb8dc01fcec3dae661b805716d101beffe1c3ed2e5da0debf36f0eeb75968a |
36 |
+DIST kicad-library-4.0.7.tar.gz 475804416 SHA256 bbfe144d4ed0139d288825124da0459f83473f71e7bd949318d2d0e1c33eebab SHA512 c5365e18e806102aace785895259deca708a61e0ce37262f5ee2482a8a1f86bc9ce1d37e0fb63cb0661bd5c71064ac36ca2260c9c02ed9790744eedd0a5b5360 WHIRLPOOL 82c045b606b7d3826f425048917e81a959edbc80a5c42660a1ca7b23d0401237e8298b9128c7e1b5dcd0c130dd2dc2fd01a63fbc406cbc10e40bbf1b15ee05c9 |
37 |
|
38 |
diff --git a/sci-electronics/kicad/kicad-4.0.7.ebuild b/sci-electronics/kicad/kicad-4.0.7.ebuild |
39 |
new file mode 100644 |
40 |
index 00000000000..8576fd05480 |
41 |
--- /dev/null |
42 |
+++ b/sci-electronics/kicad/kicad-4.0.7.ebuild |
43 |
@@ -0,0 +1,195 @@ |
44 |
+# Copyright 1999-2017 Gentoo Foundation |
45 |
+# Distributed under the terms of the GNU General Public License v2 |
46 |
+ |
47 |
+EAPI=6 |
48 |
+PYTHON_COMPAT=( python2_7 ) |
49 |
+ |
50 |
+WX_GTK_VER="3.0" |
51 |
+ |
52 |
+inherit check-reqs cmake-utils flag-o-matic gnome2-utils python-single-r1 wxwidgets vcs-snapshot versionator xdg |
53 |
+ |
54 |
+SERIES=$(get_version_component_range 1-2) |
55 |
+ |
56 |
+DESCRIPTION="Electronic Schematic and PCB design tools." |
57 |
+HOMEPAGE="http://www.kicad-pcb.org" |
58 |
+SRC_URI="https://launchpad.net/${PN}/${SERIES}/${PV}/+download/${P}.tar.xz |
59 |
+ !minimal? ( |
60 |
+ http://downloads.kicad-pcb.org/libraries/${PN}-footprints-${PV}.tar.gz |
61 |
+ http://downloads.kicad-pcb.org/libraries/kicad-library-${PV}.tar.gz |
62 |
+ ) |
63 |
+ i18n? ( https://github.com/KiCad/${PN}-i18n/archive/${PV}.tar.gz -> ${P}-i18n.tar.gz )" |
64 |
+ |
65 |
+LICENSE="GPL-2+ GPL-3+ Boost-1.0" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~amd64 ~x86" |
68 |
+IUSE="debug doc examples github i18n libressl minimal +python" |
69 |
+LANGS="bg ca cs de el es fi fr hu it ja ko nl pl pt ru sk sl sv zh-CN" |
70 |
+for lang in ${LANGS} ; do |
71 |
+ IUSE="${IUSE} l10n_${lang}" |
72 |
+done |
73 |
+unset lang |
74 |
+ |
75 |
+REQUIRED_USE=" |
76 |
+ python? ( ${PYTHON_REQUIRED_USE} )" |
77 |
+ |
78 |
+COMMON_DEPEND=">=x11-libs/wxGTK-3.0.2:${WX_GTK_VER}[X,opengl] |
79 |
+ python? ( |
80 |
+ dev-python/wxpython:${WX_GTK_VER}[opengl,${PYTHON_USEDEP}] |
81 |
+ ${PYTHON_DEPS} |
82 |
+ ) |
83 |
+ >=dev-libs/boost-1.61[context,nls,threads,python?,${PYTHON_USEDEP}] |
84 |
+ github? ( |
85 |
+ libressl? ( dev-libs/libressl:0= ) |
86 |
+ !libressl? ( dev-libs/openssl:0= ) |
87 |
+ ) |
88 |
+ media-libs/glew:0= |
89 |
+ media-libs/freeglut |
90 |
+ media-libs/mesa |
91 |
+ sys-libs/zlib |
92 |
+ x11-libs/cairo" |
93 |
+DEPEND="${COMMON_DEPEND} |
94 |
+ doc? ( app-doc/doxygen ) |
95 |
+ i18n? ( virtual/libintl ) |
96 |
+ python? ( dev-lang/swig:0 )" |
97 |
+RDEPEND="${COMMON_DEPEND} |
98 |
+ sci-electronics/electronics-menu" |
99 |
+ |
100 |
+pkg_pretend() { |
101 |
+ CHECKREQS_DISK_BUILD="8G" |
102 |
+ check-reqs_pkg_pretend |
103 |
+} |
104 |
+ |
105 |
+pkg_setup() { |
106 |
+ use python && python-single-r1_pkg_setup |
107 |
+ setup-wxwidgets |
108 |
+ CHECKREQS_DISK_BUILD="8G" |
109 |
+ check-reqs_pkg_setup |
110 |
+} |
111 |
+ |
112 |
+src_prepare() { |
113 |
+ xdg_src_prepare |
114 |
+ cmake-utils_src_prepare |
115 |
+ |
116 |
+ # Patch to work with >=boost 1.61 |
117 |
+ eapply "${FILESDIR}/${PN}-boost-1.61.patch" |
118 |
+ |
119 |
+ # Remove cvpcb desktop file as it does nothing |
120 |
+ rm "resources/linux/mime/applications/cvpcb.desktop" || die |
121 |
+ |
122 |
+ # Handle optional minimal install. |
123 |
+ if use minimal; then |
124 |
+ # remove templates as they are not needed to run binaries |
125 |
+ sed -e '/add_subdirectory( template )/d' -i CMakeLists.txt || die |
126 |
+ else |
127 |
+ # create a link to the parts library in the main project folder |
128 |
+ ln -s "${WORKDIR}/kicad-library-${PV}" "${S}/${PN}-library" || die |
129 |
+ # create a link to the footprints library and add cmake build rule for it |
130 |
+ ln -s "${WORKDIR}/${PN}-footprints-${PV}" "${S}/${PN}-footprints" || die |
131 |
+ cp "${FILESDIR}/${PN}-footprints-cmakelists.txt" "${WORKDIR}/${PN}-footprints-${PV}/CMakeLists.txt" || die |
132 |
+ # add the libraries directory to cmake as a subproject to build |
133 |
+ sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-library )" -i CMakeLists.txt || die |
134 |
+ # add the footprints directory to cmake as a subproject to build |
135 |
+ sed "/add_subdirectory( ${PN}-library )/a add_subdirectory( ${PN}-footprints )" -i CMakeLists.txt || die |
136 |
+ # remove duplicate uninstall directions for the library module |
137 |
+ sed '/make uninstall/,/# /d' -i ${PN}-library/CMakeLists.txt || die |
138 |
+ fi |
139 |
+ |
140 |
+ # Add internationalization for the GUI |
141 |
+ if use i18n; then |
142 |
+ # create a link to the translations library in the main project folder |
143 |
+ ln -s "${WORKDIR}/${P}-i18n" "${S}/${PN}-i18n" || die |
144 |
+ # Remove unused languages. Project generates only languages specified in the |
145 |
+ # file in LINGUAS in the subproject folder. By default all languages are added |
146 |
+ # so we sed out the unused ones based on the user l10n_* settings. |
147 |
+ local lang |
148 |
+ for lang in ${LANGS}; do |
149 |
+ if ! use l10n_${lang}; then |
150 |
+ lang="${lang//-/_}" # Needed to turn zh-CN to zh_CN as KiCad does not follow l10n standard here |
151 |
+ sed "/${lang}/d" -i ${PN}-i18n/LINGUAS || die |
152 |
+ fi |
153 |
+ done |
154 |
+ # cmakelists does not respect our build dir variables, so make it point to the right location |
155 |
+ sed "s|\${CMAKE_BINARY_DIR}|${WORKDIR}/${P}_build|g" -i ${PN}-i18n/CMakeLists.txt || die |
156 |
+ # we also make from the master project so the source dir is understood incorretly, replace that too |
157 |
+ sed "s|\${CMAKE_SOURCE_DIR}/\${LANG}|\${CMAKE_SOURCE_DIR}/${PN}-i18n/\${LANG}|g" -i ${PN}-i18n/CMakeLists.txt || die |
158 |
+ # add the translations directory to cmake as a subproject to build |
159 |
+ sed "/add_subdirectory( bitmaps_png )/a add_subdirectory( ${PN}-i18n )" -i CMakeLists.txt || die |
160 |
+ # remove duplicate uninstall directions for the translation module |
161 |
+ sed '/make uninstall/,$d' -i ${PN}-i18n/CMakeLists.txt || die |
162 |
+ fi |
163 |
+ |
164 |
+ # Install examples if requested |
165 |
+ use examples || sed -e '/add_subdirectory( demos )/d' -i CMakeLists.txt || die |
166 |
+ |
167 |
+ # Add important missing doc files |
168 |
+ sed -e 's/INSTALL.txt/AUTHORS.txt CHANGELOG.txt README.txt TODO.txt/' -i CMakeLists.txt || die |
169 |
+} |
170 |
+ |
171 |
+src_configure() { |
172 |
+ local mycmakeargs=( |
173 |
+ -DKICAD_DOCS="/usr/share/doc/${PF}" |
174 |
+ -DKICAD_HELP="/usr/share/doc/${PF}/help" |
175 |
+ -DwxUSE_UNICODE=ON |
176 |
+ -DKICAD_SKIP_BOOST=ON |
177 |
+ -DBUILD_GITHUB_PLUGIN="$(usex github)" |
178 |
+ -DKICAD_SCRIPTING="$(usex python)" |
179 |
+ -DKICAD_SCRIPTING_MODULES="$(usex python)" |
180 |
+ -DKICAD_SCRIPTING_WXPYTHON="$(usex python)" |
181 |
+ -DKICAD_I18N_UNIX_STRICT_PATH="$(usex i18n)" |
182 |
+ -DCMAKE_CXX_FLAGS="-std=c++11" |
183 |
+ ) |
184 |
+ use python && mycmakeargs+=( |
185 |
+ -DPYTHON_DEST="$(python_get_sitedir)" |
186 |
+ -DPYTHON_EXECUTABLE="${PYTHON}" |
187 |
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
188 |
+ -DPYTHON_LIBRARY="$(python_get_library_path)" |
189 |
+ ) |
190 |
+ if use debug; then |
191 |
+ append-cxxflags "-DDEBUG" |
192 |
+ append-cflags "-DDEBUG" |
193 |
+ fi |
194 |
+ cmake-utils_src_configure |
195 |
+} |
196 |
+ |
197 |
+src_compile() { |
198 |
+ cmake-utils_src_compile |
199 |
+ if use doc; then |
200 |
+ doxygen Doxyfile || die |
201 |
+ fi |
202 |
+} |
203 |
+ |
204 |
+src_install() { |
205 |
+ cmake-utils_src_install |
206 |
+ use python && python_optimize |
207 |
+ if use doc ; then |
208 |
+ dodoc uncrustify.cfg |
209 |
+ cd Documentation || die |
210 |
+ dodoc -r GUI_Translation_HOWTO.pdf guidelines/UIpolicies.txt doxygen/. |
211 |
+ fi |
212 |
+} |
213 |
+ |
214 |
+pkg_preinst() { |
215 |
+ xdg_pkg_preinst |
216 |
+} |
217 |
+ |
218 |
+pkg_postinst() { |
219 |
+ xdg_pkg_postinst |
220 |
+ gnome2_icon_cache_update |
221 |
+ |
222 |
+ if use minimal ; then |
223 |
+ ewarn "If the schematic and/or board editors complain about missing libraries when you" |
224 |
+ ewarn "open old projects, you will have to take one or more of the following actions :" |
225 |
+ ewarn "- Install the missing libraries manually." |
226 |
+ ewarn "- Remove the libraries from the 'Libs and Dir' preferences." |
227 |
+ ewarn "- Fix the libraries' locations in the 'Libs and Dir' preferences." |
228 |
+ ewarn "- Emerge ${PN} without the 'minimal' USE flag." |
229 |
+ fi |
230 |
+ elog "" |
231 |
+ elog "You may want to emerge media-gfx/wings if you want to create 3D models of components." |
232 |
+ elog "For help and extended documentation emerge app-doc/kicad-doc." |
233 |
+} |
234 |
+ |
235 |
+pkg_postrm() { |
236 |
+ xdg_pkg_postrm |
237 |
+ gnome2_icon_cache_update |
238 |
+} |