| 21 |
21 |
S="${WORKDIR}/${MY_P}"
|
| 22 |
22 |
|
| 23 |
23 |
if [[ ${PV} != *_rc* ]] ; then
|
| 24 |
|
KEYWORDS="amd64 ~arm64 ~riscv ~x86"
|
|
24 |
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
|
| 25 |
25 |
fi
|
| 26 |
26 |
fi
|
| 27 |
27 |
|
| ... | ... | |
| 33 |
33 |
# Licensed under MIT: argparse, compoundfilereader, delaunator, fmt, json_schema_validator, magic_enum nanodbc,
|
| 34 |
34 |
# nlohmann/json, nlohmann/fifo_map, pboettch/json-schema-validator, picoSHA2, rectpack2d,
|
| 35 |
35 |
# sentry-native, thread-pool, tinyspline_lib
|
| 36 |
|
# Licensed under MIT and BSD: glew
|
| 37 |
36 |
# Licensed under BSD: pybind11
|
| 38 |
37 |
# Licensed under BSD2: gzip-hpp
|
| 39 |
38 |
# Licensed under GPLv2 (or later): dxflib, math_for_graphics, potrace,
|
| ... | ... | |
| 43 |
42 |
# Licensed under CC BY-SA 4.0: all the demo files provided in demos/*
|
| 44 |
43 |
# Licensed under clause-3 BSD: ibis/kibis files in eeschema/sim/kibis
|
| 45 |
44 |
# Licensed under CC0: uopamp.lib.spice in some directories in qa/data/eeschema/spice_netlists/
|
| 46 |
|
LICENSE="GPL-2+ GPL-3+ Boost-1.0 BSD BSD-2 Apache-2.0 ISC MIT ZLIB CC-BY-SA-4.0 CC0-1.0"
|
|
45 |
# Licensed under WTFPL-2 and Apache-2.0: bundled GLAD (replaces former system glew dep)
|
|
46 |
LICENSE="GPL-2+ GPL-3+ Boost-1.0 BSD BSD-2 Apache-2.0 ISC MIT ZLIB CC-BY-SA-4.0 CC0-1.0 WTFPL-2"
|
| 47 |
47 |
SLOT="0"
|
| 48 |
|
IUSE="doc examples nls openmp test"
|
|
48 |
IUSE="doc examples nls openmp test wayland"
|
| 49 |
49 |
|
| 50 |
50 |
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
|
| 51 |
51 |
|
| ... | ... | |
| 54 |
54 |
# Contains bundled pybind but it's patched for wx
|
| 55 |
55 |
# See https://gitlab.com/kicad/code/kicad/-/commit/74e4370a9b146b21883d6a2d1df46c7a10bd0424
|
| 56 |
56 |
# Depend on opencascade:0 to get unslotted variant (so we know path to it), bug #833301
|
| 57 |
|
# Depend wxGTK version needs to be limited due to switch from EGL to GLX, bug #911120
|
| 58 |
57 |
# Depends on abseil-cpp via protobuf targets
|
| 59 |
58 |
COMMON_DEPEND="
|
|
59 |
app-arch/zstd:=
|
| 60 |
60 |
app-crypt/libsecret
|
|
61 |
app-text/poppler[cairo]
|
| 61 |
62 |
dev-cpp/abseil-cpp:=
|
| 62 |
63 |
dev-db/unixODBC
|
| 63 |
64 |
dev-libs/boost:=[context,nls]
|
| 64 |
|
dev-libs/libgit2:=
|
|
65 |
>=dev-libs/libgit2-1.5:=
|
|
66 |
dev-libs/libspnav
|
| 65 |
67 |
>=dev-libs/protobuf-27.2:=[protobuf,protoc]
|
| 66 |
68 |
>=dev-libs/nng-1.10.0:=
|
|
69 |
media-libs/fontconfig
|
| 67 |
70 |
media-libs/freeglut
|
| 68 |
|
media-libs/glew:0=
|
|
71 |
media-libs/freetype:2
|
| 69 |
72 |
>=media-libs/glm-0.9.9.1
|
|
73 |
media-libs/harfbuzz:=
|
| 70 |
74 |
media-libs/mesa[X(+)]
|
| 71 |
75 |
net-misc/curl
|
| 72 |
76 |
>=sci-libs/opencascade-7.5.0:0=
|
| 73 |
77 |
>=x11-libs/cairo-1.8.8:=
|
| 74 |
78 |
>=x11-libs/pixman-0.30
|
| 75 |
|
>=sci-electronics/ngspice-27.1[shared]
|
|
79 |
>=sci-electronics/ngspice-28[shared]
|
| 76 |
80 |
virtual/zlib:=
|
| 77 |
|
x11-libs/wxGTK:${WX_GTK_VER}=[X,opengl]
|
|
81 |
x11-libs/wxGTK:${WX_GTK_VER}=[X,opengl,webkit]
|
|
82 |
wayland? ( >=dev-libs/wayland-1.20 )
|
| 78 |
83 |
$(python_gen_cond_dep '
|
| 79 |
84 |
dev-libs/boost:=[context,nls,python,${PYTHON_USEDEP}]
|
| 80 |
85 |
>=dev-python/wxpython-4.2.0:*[${PYTHON_USEDEP}]
|
| ... | ... | |
| 108 |
113 |
[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
|
| 109 |
114 |
|
| 110 |
115 |
python-single-r1_pkg_setup
|
| 111 |
|
setup-wxwidgets
|
| 112 |
116 |
check-reqs_pkg_setup
|
| 113 |
117 |
}
|
| 114 |
118 |
|
| ... | ... | |
| 121 |
125 |
}
|
| 122 |
126 |
|
| 123 |
127 |
PATCHES=(
|
| 124 |
|
"${FILESDIR}"/${PN}-9.0.6-fix-cmake4-compat.patch # Bug 970924
|
| 125 |
|
"${FILESDIR}"/${P}-gcc16-bitmap2component-link.patch
|
| 126 |
|
"${FILESDIR}"/${PN}-9.0.9-qa-gerbview-underlink.patch # Bug 980747
|
|
128 |
"${FILESDIR}"/${PN}-10.0.0-fix-cmake4-compat.patch # Bug 970924
|
|
129 |
"${FILESDIR}"/${PN}-10.0.0-qa-gerbview-underlink.patch # Bug 980747
|
| 127 |
130 |
)
|
| 128 |
131 |
|
| 129 |
132 |
src_prepare() {
|
| ... | ... | |
| 132 |
135 |
}
|
| 133 |
136 |
|
| 134 |
137 |
src_configure() {
|
|
138 |
setup-wxwidgets
|
| 135 |
139 |
xdg_environment_reset
|
| 136 |
140 |
|
| 137 |
141 |
local mycmakeargs=(
|
| 138 |
142 |
-DKICAD_DOCS="${EPREFIX}/usr/share/doc/${PN}-doc-${PV}"
|
| 139 |
143 |
|
| 140 |
144 |
-DKICAD_SCRIPTING_WXPYTHON=ON
|
| 141 |
|
-DKICAD_USE_EGL=OFF
|
| 142 |
145 |
|
| 143 |
146 |
-DKICAD_BUILD_I18N="$(usex nls)"
|
| 144 |
147 |
-DKICAD_I18N_UNIX_STRICT_PATH="$(usex nls)"
|
| ... | ... | |
| 155 |
158 |
|
| 156 |
159 |
-DKICAD_SPICE_QA="$(usex test)"
|
| 157 |
160 |
-DKICAD_BUILD_QA_TESTS="$(usex test)"
|
|
161 |
|
|
162 |
-DKICAD_WAYLAND="$(usex wayland)"
|
| 158 |
163 |
)
|
| 159 |
164 |
|
| 160 |
165 |
if ! [[ ${PV} == *9999* ]]; then
|