diff options
author | Victor Kustov <ktrace@yandex.ru> | 2023-10-11 17:00:15 +0300 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2023-10-18 13:36:03 +0200 |
commit | 389b81f6a87ea71d6ffd860dbb197aaaf5230eab (patch) | |
tree | 75f6ab07a41f55d53df1029f2589dc75ebb6f48d /sci-electronics/librepcb | |
parent | profiles: cancel nbclassic removal (diff) | |
download | gentoo-389b81f6a87ea71d6ffd860dbb197aaaf5230eab.tar.gz gentoo-389b81f6a87ea71d6ffd860dbb197aaaf5230eab.tar.bz2 gentoo-389b81f6a87ea71d6ffd860dbb197aaaf5230eab.zip |
sci-electronics/librepcb: add 1.0.0
+ added USE opencascade
+ add github upstream in metadata
Signed-off-by: Victor Kustov <ktrace@yandex.ru>
Closes: https://github.com/gentoo/gentoo/pull/33301
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sci-electronics/librepcb')
-rw-r--r-- | sci-electronics/librepcb/Manifest | 1 | ||||
-rw-r--r-- | sci-electronics/librepcb/librepcb-1.0.0.ebuild | 67 | ||||
-rw-r--r-- | sci-electronics/librepcb/metadata.xml | 24 |
3 files changed, 83 insertions, 9 deletions
diff --git a/sci-electronics/librepcb/Manifest b/sci-electronics/librepcb/Manifest index 52fa31a39204..fd5bb0564575 100644 --- a/sci-electronics/librepcb/Manifest +++ b/sci-electronics/librepcb/Manifest @@ -1,2 +1,3 @@ DIST librepcb-0.1.6-source.zip 12671974 BLAKE2B bed8d6134159ec663dd88f9933ef0dad6d3bca70776537bf2e16397f0e4fd968a41661d95a118008fcf9d7d6d2432ebac81d78153b3c3ce8d69c64fb59aaf70e SHA512 a51ac2830d65bbd10be8904ecdcc6a7781d80c95e1423ed5bd04fcd009a0b7135ff3a49a87afe9e99006ae1f6ae44f2341021e5733675f2f20b05525860da5d7 DIST librepcb-0.1.7-source.zip 13112342 BLAKE2B 53b6dad94febee84b60df1d848936f44093698c9965d4b24815395ff564a5634ab84f38574e7a1b6891f2cdd99b5162eb3747bbfdde2dfc2d680cff76a4e1cc1 SHA512 285ad661b9c528b1aa05c9a0482034af26e9344eb08a119ffabbadf518957a9784ccb9582bcfabcf5bf8982c33b6286b39722c0d59072df983925b3949b3e6c5 +DIST librepcb-1.0.0-source.zip 14000096 BLAKE2B 5b78bb0bd32de78207a95916bc7a7ff85b58f3b4b67e6faf9180bae852ce11416ac3740c04eb30b57073a21eb24d8041136e1ef17f5614e3f7d340e7b813b03d SHA512 7bc056be37fd39d873f6a40cf04c529e95dfc2b69d1cc8246ccbba0932a67c0f017e939c206cf0656b4657cb5c99c10c7e19b9dc4969d54d0a80014029da9439 diff --git a/sci-electronics/librepcb/librepcb-1.0.0.ebuild b/sci-electronics/librepcb/librepcb-1.0.0.ebuild new file mode 100644 index 000000000000..62236602ab39 --- /dev/null +++ b/sci-electronics/librepcb/librepcb-1.0.0.ebuild @@ -0,0 +1,67 @@ +# Copyright 2009-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake virtualx 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" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="opencascade" + +BDEPEND=" + app-arch/unzip + dev-qt/linguist-tools:5" + +RDEPEND=" + dev-cpp/muParser:= + dev-libs/quazip:=[qt5(+)] + dev-qt/qtcore:5 + dev-qt/qtconcurrent:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5[ssl] + dev-qt/qtopengl:5 + dev-qt/qtprintsupport:5 + dev-qt/qtsql:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + opencascade? ( sci-libs/opencascade:= ) + sys-libs/zlib" + +DEPEND="${RDEPEND} + dev-qt/qttest:5" + +S="${WORKDIR}/${PN}-${PV/_/-}" + +src_configure() { + local mycmakeargs+=( + -DUSE_OPENCASCADE=$(usex opencascade 1 0) + -DUNBUNDLE_QUAZIP=ON + -DUNBUNDLE_MUPARSER=ON ) + cmake_src_configure +} + +src_test() { + cd "${BUILD_DIR}"/tests/unittests || die + # https://github.com/LibrePCB/LibrePCB/issues/516 + # virtx ./librepcb-unittests --gtest_filter=-SystemInfoTest.testGetUsername + virtx ./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 +} diff --git a/sci-electronics/librepcb/metadata.xml b/sci-electronics/librepcb/metadata.xml index 1daccaad1007..de1b0cf0ff98 100644 --- a/sci-electronics/librepcb/metadata.xml +++ b/sci-electronics/librepcb/metadata.xml @@ -2,20 +2,26 @@ <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> <maintainer type="project" proxied="proxy"> - <email>sci-electronics@gentoo.org</email> - <description>Gentoo Electronics Project</description> + <email>sci-electronics@gentoo.org</email> + <description>Gentoo Electronics Project</description> </maintainer> <maintainer type="person" proxied="yes"> - <email>ktrace@yandex.ru</email> - <name>Victor V. Kustov</name> - </maintainer> - <longdescription lang="en"> - LibrePCB is a free EDA software to develop printed circuit boards. - Cross-platform, multilingual (both application and library elements), intuitive, modern and easy-to-use graphical user interface. + <email>ktrace@yandex.ru</email> + <name>Victor V. Kustov</name> + </maintainer> + <longdescription lang="en"> + LibrePCB is a free EDA software to develop printed circuit boards. + Cross-platform, multilingual (both application and library elements), intuitive, modern and easy-to-use graphical user interface. - All-In-One: project management + library/schematic/board editors - Very powerful library design with some innovative concepts - Human-readable file formats for both libraries and projects - Multi-PCB feature (different PCB variants of the same schematic) - Automatic netlist synchronisation between schematic and board - </longdescription> + </longdescription> + <use> + <flag name="opencascade">Build with <pkg>sci-libs/opencascade</pkg>the 3D features (e.g. reading/writing STEP files)</flag> + </use> + <upstream> + <remote-id type="github">LibrePCB/LibrePCB</remote-id> + </upstream> </pkgmetadata> |