blob: 6b5d8a275624b8ddac8f04c5dbd5bb8799e720c2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
# Copyright 2009-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
CRATES="
adler2@2.0.0
aho-corasick@1.1.3
anstream@0.6.18
anstyle-parse@0.2.6
anstyle-query@1.1.2
anstyle-wincon@3.0.6
anstyle@1.0.10
anyhow@1.0.94
bitflags@2.6.0
byteorder@1.5.0
cbindgen@0.27.0
cfg-if@1.0.0
clap@4.5.22
clap_builder@4.5.22
clap_lex@0.7.3
colorchoice@1.0.3
crc32fast@1.4.2
crossbeam-utils@0.8.20
deranged@0.3.11
equivalent@1.0.1
errno@0.3.10
fastrand@2.2.0
flate2@1.0.35
hashbrown@0.15.2
heck@0.4.1
indexmap@2.7.0
interactive-html-bom@0.2.0
is_terminal_polyfill@1.70.1
itoa@1.0.14
jzon@0.12.5
libc@0.2.167
linux-raw-sys@0.4.14
log@0.4.22
lz-str@0.2.1
memchr@2.7.4
miniz_oxide@0.8.0
num-conv@0.1.0
once_cell@1.20.2
parameterized_test@0.2.1
powerfmt@0.2.0
proc-macro2@1.0.92
quote@1.0.37
regex-automata@0.4.9
regex-syntax@0.8.5
regex@1.11.1
rustix@0.38.41
ryu@1.0.18
serde@1.0.215
serde_derive@1.0.215
serde_json@1.0.133
serde_spanned@0.6.8
strsim@0.11.1
syn@2.0.90
tempfile@3.14.0
time-core@0.1.2
time@0.3.37
toml@0.8.19
toml_datetime@0.6.8
toml_edit@0.22.22
unicode-ident@1.0.14
utf8parse@0.2.2
windows-sys@0.52.0
windows-sys@0.59.0
windows-targets@0.52.6
windows_aarch64_gnullvm@0.52.6
windows_aarch64_msvc@0.52.6
windows_i686_gnu@0.52.6
windows_i686_gnullvm@0.52.6
windows_i686_msvc@0.52.6
windows_x86_64_gnu@0.52.6
windows_x86_64_gnullvm@0.52.6
windows_x86_64_msvc@0.52.6
winnow@0.6.20
zip@0.6.6
"
inherit cargo cmake edo xdg
DESCRIPTION="Free EDA software to develop printed circuit boards"
HOMEPAGE="https://librepcb.org/"
SRC_URI="https://download.librepcb.org/releases/${PV}/${P}-source.zip
${CARGO_CRATE_URIS}"
S="${WORKDIR}/${PN}-${PV/_/-}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64"
IUSE="opencascade test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-cpp/muParser:=
dev-qt/qtbase:6[concurrent,gui,network,opengl,sql,sqlite,ssl,widgets]
dev-qt/qtdeclarative:6
dev-qt/qtsvg:6
media-libs/libglvnd[X]
virtual/zlib:=
virtual/glu
opencascade? ( sci-libs/opencascade:= )"
DEPEND="${RDEPEND}
test? ( dev-cpp/gtest )"
BDEPEND="
app-arch/unzip
dev-qt/qttools:6[linguist]"
src_configure() {
local mycmakeargs=(
-DQT_MAJOR_VERSION=6
-DUNBUNDLE_GTEST=ON
-DUNBUNDLE_MUPARSER=ON
-DUSE_OPENCASCADE=$(usex opencascade 1 0)
-DBUILD_TESTS=$(usex test ON OFF)
)
cmake_src_configure
}
src_test() {
local -x QT_QPA_PLATFORM=offscreen
cd "${BUILD_DIR}"/tests/unittests || die
# https://github.com/LibrePCB/LibrePCB/issues/516
edo ./librepcb-unittests --gtest_filter=-SystemInfoTest.testGetUsername:CategoryTreeModelTest.testSort:BoardPlaneFragmentsBuilderTest.testFragments:BoardGerberExportTest.test
}
pkg_postinst() {
xdg_pkg_postinst
ewarn
ewarn "LibrePCB builds might not be exactly reproducible with e.g. -march={native,haswell,...}."
ewarn "This can cause minor issues, see for example:"
ewarn "https://github.com/LibrePCB/LibrePCB/issues/516"
ewarn "For a completely reproducible build use: -march=x86-64."
ewarn
}
|