mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
sci-electronics/librepcb: up to 1.2.0 & drop Qt5
Signed-off-by: Victor Kustov <ktrace@yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/39933 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
This commit is contained in:
committed by
Andreas Sturmlechner
parent
2a668c7e32
commit
117c47c745
@@ -1 +1,2 @@
|
||||
DIST librepcb-1.1.0-source.zip 15373750 BLAKE2B 6f8ba8d66b95373e4760aae617b423e71fcb89ceb39703ce4547a390e4ad0630866632d9bad01f93780fdb8c3452ec0424e753ef891402e440686c64eba56495 SHA512 2ca02095d89547e17813fcfeadedd48fb9345d177885c9d21a8d313d864c6f02243eb13a33341c474bc0671a66ef6b00b6329760aeb3439fdb10123f2db9d38b
|
||||
DIST librepcb-1.2.0-source.zip 15923398 BLAKE2B b7ec8dc5ff4b9531e4614defe8e95ec4bf3da796f5aece8d849aed6dfa3d352149fbdb928cf5b24510266977dd9648634ab89a7e675f29d990849bb314a252e8 SHA512 a7e7a0e4e433000db39501874240652d85fe3a2be08f442c72138b70ec3faa0e8117399a997f2083e31d54a5f9276c02fa5a101d3855fad8d1c5cd78f1d80a8f
|
||||
|
||||
65
sci-electronics/librepcb/librepcb-1.2.0.ebuild
Normal file
65
sci-electronics/librepcb/librepcb-1.2.0.ebuild
Normal file
@@ -0,0 +1,65 @@
|
||||
# Copyright 2009-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit cmake 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"
|
||||
S="${WORKDIR}/${PN}-${PV/_/-}"
|
||||
|
||||
LICENSE="GPL-3+"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="opencascade test"
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
RDEPEND="
|
||||
dev-cpp/muParser:=
|
||||
>=dev-libs/quazip-1.3-r2:=[qt6(+)]
|
||||
dev-qt/qtbase:6[concurrent,gui,network,opengl,sql,sqlite,ssl,widgets]
|
||||
dev-qt/qtdeclarative:6
|
||||
dev-qt/qtsvg:6
|
||||
media-libs/libglvnd[X]
|
||||
sys-libs/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
|
||||
-DUNBUNDLE_QUAZIP=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
|
||||
./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
|
||||
}
|
||||
Reference in New Issue
Block a user