1 |
commit: 01d2104288248a0b31216026170dbe68024fb74c |
2 |
Author: JonRB <jon.roadleybattin <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Nov 22 19:15:13 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Nov 23 17:15:35 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01d21042 |
7 |
|
8 |
sci-electronics/kicad: add 6.0.0_rc1 |
9 |
|
10 |
Signed-off-by: JonRB <jon.roadleybattin <AT> gmail.com> |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
sci-electronics/kicad/Manifest | 1 + |
14 |
sci-electronics/kicad/kicad-6.0.0_rc1.ebuild | 163 +++++++++++++++++++++++++++ |
15 |
sci-electronics/kicad/metadata.xml | 1 + |
16 |
3 files changed, 165 insertions(+) |
17 |
|
18 |
diff --git a/sci-electronics/kicad/Manifest b/sci-electronics/kicad/Manifest |
19 |
index cf15639c1ede..5458d6f5731f 100644 |
20 |
--- a/sci-electronics/kicad/Manifest |
21 |
+++ b/sci-electronics/kicad/Manifest |
22 |
@@ -1 +1,2 @@ |
23 |
DIST kicad-5.1.11.tar.bz2 18584584 BLAKE2B 87fb940e9e766ec5685eb0c84f450d60a6e8718937545ccd7dbd3bfc5f00af193224e877ac7ce249c3e89687d8f92f08b942effee0883debc14234b7ae473e21 SHA512 d244b020e8f4aab18cc91d72412f9c093055f0bab04e250bb46db6342c38c29f68c26132c53dde699042d3440a6c680d041a16d30e5fdc8be540b1023b6ba148 |
24 |
+DIST kicad-6.0.0_rc1.tar.gz 44783434 BLAKE2B c19cc17666c00210f844970d8b0aad3d929470544d641f94bdfd9e521f6c954fec6098885606f72ffb75a074794358cb6632fea03fa4196dbfbcf6d6fe077c5e SHA512 75a91ea111776f879b6cee14d09bcf9caa3cdc6d8220b2b89727e4f9d57db242b6c1b4c1235035f5bb8356c8bbc3cd9b9d6d80b2529c290a3fa57d90ba4dc632 |
25 |
|
26 |
diff --git a/sci-electronics/kicad/kicad-6.0.0_rc1.ebuild b/sci-electronics/kicad/kicad-6.0.0_rc1.ebuild |
27 |
new file mode 100644 |
28 |
index 000000000000..d28c04025ecf |
29 |
--- /dev/null |
30 |
+++ b/sci-electronics/kicad/kicad-6.0.0_rc1.ebuild |
31 |
@@ -0,0 +1,163 @@ |
32 |
+# Copyright 1999-2021 Gentoo Authors |
33 |
+# Distributed under the terms of the GNU General Public License v2 |
34 |
+ |
35 |
+EAPI=7 |
36 |
+ |
37 |
+PYTHON_COMPAT=( python3_{8,9} ) |
38 |
+ |
39 |
+WX_GTK_VER="3.0-gtk3" |
40 |
+ |
41 |
+inherit check-reqs cmake optfeature python-single-r1 toolchain-funcs wxwidgets xdg-utils |
42 |
+ |
43 |
+DESCRIPTION="Electronic Schematic and PCB design tools" |
44 |
+HOMEPAGE="https://www.kicad.org" |
45 |
+ |
46 |
+if [[ ${PV} == 9999 ]]; then |
47 |
+ EGIT_REPO_URI="https://gitlab.com/kicad/code/kicad.git" |
48 |
+ inherit git-r3 |
49 |
+ # x11-misc-util/macros only required on live ebuilds |
50 |
+ LIVE_DEPEND=">=x11-misc/util-macros-1.18" |
51 |
+else |
52 |
+ MY_PV="${PV/_rc/-rc}" |
53 |
+ MY_P="${PN}-${MY_PV}" |
54 |
+ SRC_URI="https://gitlab.com/kicad/code/${PN}/-/archive/${MY_PV}/${MY_P}.tar.gz -> ${P}.tar.gz" |
55 |
+ S="${WORKDIR}/${PN}-${MY_PV}" |
56 |
+ KEYWORDS="~amd64 ~arm64 ~x86" |
57 |
+fi |
58 |
+ |
59 |
+LICENSE="GPL-2+ GPL-3+ Boost-1.0" |
60 |
+SLOT="0" |
61 |
+IUSE="doc examples +ngspice openmp +python occ +pcm" |
62 |
+ |
63 |
+REQUIRED_USE=" |
64 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
65 |
+" |
66 |
+ |
67 |
+COMMON_DEPEND=" |
68 |
+ >=dev-libs/boost-1.61:=[context,nls] |
69 |
+ media-libs/freeglut |
70 |
+ media-libs/glew:0= |
71 |
+ >=media-libs/glm-0.9.9.1 |
72 |
+ media-libs/mesa[X(+)] |
73 |
+ >=x11-libs/cairo-1.8.8:= |
74 |
+ >=x11-libs/pixman-0.30 |
75 |
+ x11-libs/wxGTK:${WX_GTK_VER}[X,opengl] |
76 |
+ ngspice? ( |
77 |
+ >sci-electronics/ngspice-27[shared] |
78 |
+ ) |
79 |
+ occ? ( |
80 |
+ >=sci-libs/opencascade-6.8.0:= |
81 |
+ ) |
82 |
+ python? ( |
83 |
+ $(python_gen_cond_dep ' |
84 |
+ >=dev-libs/boost-1.61:=[context,nls,python,${PYTHON_MULTI_USEDEP}] |
85 |
+ dev-python/wxpython:4.0[${PYTHON_MULTI_USEDEP}] |
86 |
+ ') |
87 |
+ ${PYTHON_DEPS} |
88 |
+ ) |
89 |
+" |
90 |
+DEPEND="${COMMON_DEPEND} |
91 |
+ python? ( >=dev-lang/swig-3.0:0 )" |
92 |
+RDEPEND="${COMMON_DEPEND} |
93 |
+ sci-electronics/electronics-menu |
94 |
+" |
95 |
+BDEPEND="doc? ( app-doc/doxygen )" |
96 |
+CHECKREQS_DISK_BUILD="800M" |
97 |
+ |
98 |
+CAS_VERSION=7.5.3 |
99 |
+ |
100 |
+pkg_setup() { |
101 |
+ use python && python-single-r1_pkg_setup |
102 |
+ use openmp && tc-check-openmp |
103 |
+ setup-wxwidgets |
104 |
+ check-reqs_pkg_setup |
105 |
+} |
106 |
+ |
107 |
+src_unpack() { |
108 |
+ if [[ ${PV} == 9999 ]]; then |
109 |
+ git-r3_src_unpack |
110 |
+ else |
111 |
+ default_src_unpack |
112 |
+ fi |
113 |
+} |
114 |
+ |
115 |
+src_configure() { |
116 |
+ xdg_environment_reset |
117 |
+ |
118 |
+ local mycmakeargs=( |
119 |
+ -DKICAD_DOCS="${EPREFIX}/usr/share/doc/${PF}" |
120 |
+ -DKICAD_HELP="${EPREFIX}/usr/share/doc/${PN}-doc-${PV}" |
121 |
+ -DKICAD_SCRIPTING="$(usex python)" |
122 |
+ -DKICAD_SCRIPTING_MODULES="$(usex python)" |
123 |
+ -DKICAD_SCRIPTING_WXPYTHON="$(usex python)" |
124 |
+ -DKICAD_SCRIPTING_WXPYTHON_PHOENIX="$(usex python)" |
125 |
+ -DKICAD_SCRIPTING_PYTHON3="$(usex python)" |
126 |
+ -DKICAD_SCRIPTING_ACTION_MENU="$(usex python)" |
127 |
+ -DKICAD_SPICE="$(usex ngspice)" |
128 |
+ -DKICAD_PCM="$(usex pcm)" |
129 |
+ |
130 |
+ -DKICAD_USE_OCC="$(usex occ)" |
131 |
+ -DKICAD_INSTALL_DEMOS="$(usex examples)" |
132 |
+ -DCMAKE_SKIP_RPATH="ON" |
133 |
+ ) |
134 |
+ use python && mycmakeargs+=( |
135 |
+ -DPYTHON_DEST="$(python_get_sitedir)" |
136 |
+ -DPYTHON_EXECUTABLE="${PYTHON}" |
137 |
+ -DPYTHON_INCLUDE_DIR="$(python_get_includedir)" |
138 |
+ -DPYTHON_LIBRARY="$(python_get_library_path)" |
139 |
+ ) |
140 |
+ use occ && mycmakeargs+=( |
141 |
+ local OCC_P=$(best_version sci-libs/opencascade) |
142 |
+ OCC_P=${OCC_P#sci-libs/} |
143 |
+ OCC_P=${OCC_P%-r*} |
144 |
+ -DOCC_INCLUDE_DIR="${CASROOT}"/include/${OCC_P}" |
145 |
+ -DOCC_LIBRARY_DIR="${CASROOT}"/$(get_libdir)/${OCC_P}" |
146 |
+ |
147 |
+ ) |
148 |
+ |
149 |
+ cmake_src_configure |
150 |
+} |
151 |
+ |
152 |
+src_compile() { |
153 |
+ cmake_src_compile |
154 |
+ if use doc; then |
155 |
+ cmake_src_compile dev-docs doxygen-docs |
156 |
+ fi |
157 |
+} |
158 |
+ |
159 |
+src_install() { |
160 |
+ cmake_src_install |
161 |
+ use python && python_optimize |
162 |
+ if use doc ; then |
163 |
+ dodoc uncrustify.cfg |
164 |
+ cd Documentation || die |
165 |
+ dodoc -r *.txt kicad_doxygen_logo.png notes_about_pcbnew_new_file_format.odt doxygen/. development/doxygen/. |
166 |
+ fi |
167 |
+} |
168 |
+ |
169 |
+src_test() { |
170 |
+ # Test cannot find library in Portage's sandbox. Let's create a link so test can run. |
171 |
+ ln -s "${S}_build/eeschema/_eeschema.kiface" "${S}_build/qa/eeschema/_eeschema.kiface" || die |
172 |
+ |
173 |
+ default |
174 |
+} |
175 |
+ |
176 |
+pkg_postinst() { |
177 |
+ optfeature "Component symbols library" sci-electronics/kicad-symbols |
178 |
+ optfeature "Component footprints library" sci-electronics/kicad-footprints |
179 |
+ optfeature "3D models of components " sci-electronics/kicad-packages3d |
180 |
+ optfeature "Project templates" sci-electronics/kicad-templates |
181 |
+ optfeature "Different languages for GUI" sci-electronics/kicad-i18n |
182 |
+ optfeature "Extended documentation" app-doc/kicad-doc |
183 |
+ optfeature "Creating 3D models of components" media-gfx/wings |
184 |
+ |
185 |
+ xdg_desktop_database_update |
186 |
+ xdg_mimeinfo_database_update |
187 |
+ xdg_icon_cache_update |
188 |
+} |
189 |
+ |
190 |
+pkg_postrm() { |
191 |
+ xdg_desktop_database_update |
192 |
+ xdg_mimeinfo_database_update |
193 |
+ xdg_icon_cache_update |
194 |
+} |
195 |
|
196 |
diff --git a/sci-electronics/kicad/metadata.xml b/sci-electronics/kicad/metadata.xml |
197 |
index 6b572519cd15..603e4e9f9662 100644 |
198 |
--- a/sci-electronics/kicad/metadata.xml |
199 |
+++ b/sci-electronics/kicad/metadata.xml |
200 |
@@ -15,6 +15,7 @@ |
201 |
<flag name="occ">Enable viewing 3D rendering of designs via opencascade</flag> |
202 |
<flag name="oce">Enable viewing 3D rendering of designs via OCE</flag> |
203 |
<flag name="python">Enable python scripting support</flag> |
204 |
+ <flag name="pcm">Enable plugin content manager</flag> |
205 |
</use> |
206 |
<longdescription> |
207 |
Kicad is an open source (GPL) software for the creation of electronic |