From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CEAAA15813A for ; Wed, 08 Jan 2025 17:03:53 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 005C9E079E; Wed, 08 Jan 2025 17:03:52 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DC505E0769 for ; Wed, 08 Jan 2025 17:03:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id EC74F342F8D for ; Wed, 08 Jan 2025 17:03:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3EBBAAED for ; Wed, 08 Jan 2025 17:03:50 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1736355817.117c47c7454bd8bafad1c17bc8fe81dc20cfdf7f.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/librepcb/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-electronics/librepcb/Manifest sci-electronics/librepcb/librepcb-1.2.0.ebuild X-VCS-Directories: sci-electronics/librepcb/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: 117c47c7454bd8bafad1c17bc8fe81dc20cfdf7f X-VCS-Branch: master Date: Wed, 08 Jan 2025 17:03:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: a4ba9cf5-8fc9-407c-8358-e4fee4b68d6b X-Archives-Hash: 91584a127a457d0cae6a9fe3525acb4e commit: 117c47c7454bd8bafad1c17bc8fe81dc20cfdf7f Author: Victor Kustov yandex ru> AuthorDate: Wed Jan 1 14:21:54 2025 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Jan 8 17:03:37 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=117c47c7 sci-electronics/librepcb: up to 1.2.0 & drop Qt5 Signed-off-by: Victor Kustov yandex.ru> Closes: https://github.com/gentoo/gentoo/pull/39933 Signed-off-by: Andreas Sturmlechner gentoo.org> sci-electronics/librepcb/Manifest | 1 + sci-electronics/librepcb/librepcb-1.2.0.ebuild | 65 ++++++++++++++++++++++++++ 2 files changed, 66 insertions(+) diff --git a/sci-electronics/librepcb/Manifest b/sci-electronics/librepcb/Manifest index b213eb0e1df5..c2f79fb17d96 100644 --- a/sci-electronics/librepcb/Manifest +++ b/sci-electronics/librepcb/Manifest @@ -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 diff --git a/sci-electronics/librepcb/librepcb-1.2.0.ebuild b/sci-electronics/librepcb/librepcb-1.2.0.ebuild new file mode 100644 index 000000000000..9ac74c9d417e --- /dev/null +++ b/sci-electronics/librepcb/librepcb-1.2.0.ebuild @@ -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 +}