diff options
Diffstat (limited to 'sci-electronics/librepcb')
-rw-r--r-- | sci-electronics/librepcb/Manifest | 4 | ||||
-rw-r--r-- | sci-electronics/librepcb/files/librepcb-0.1.5-quazip1.x.patch | 57 | ||||
-rw-r--r-- | sci-electronics/librepcb/librepcb-0.1.3.ebuild | 54 | ||||
-rw-r--r-- | sci-electronics/librepcb/librepcb-0.1.5.ebuild | 55 | ||||
-rw-r--r-- | sci-electronics/librepcb/librepcb-0.1.7.ebuild | 60 | ||||
-rw-r--r-- | sci-electronics/librepcb/librepcb-1.0.0-r2.ebuild | 69 | ||||
-rw-r--r-- | sci-electronics/librepcb/metadata.xml | 24 |
7 files changed, 154 insertions, 169 deletions
diff --git a/sci-electronics/librepcb/Manifest b/sci-electronics/librepcb/Manifest index 61e8f60ff028..9105662fe2a4 100644 --- a/sci-electronics/librepcb/Manifest +++ b/sci-electronics/librepcb/Manifest @@ -1,2 +1,2 @@ -DIST librepcb-0.1.3-source.zip 12148919 BLAKE2B 2be3455c9be3e60a7cb314292e2a6ffe10d98f0c647d9c79f223ee5c5ef50675685d914889f772448dba699742d3bcd5b6636d489e630c8033912f3c9f223715 SHA512 28d45800bbbbcee8d30973c1a1e1e561c0fe2c65339eda4f6170779d921a9f5b2f5fb8c1cda00477e59976b88a3c368bb4985f31331bb16f761823642138c78b -DIST librepcb-0.1.5-source.zip 13111207 BLAKE2B 3a8c5f8b310971e1a6bd5b1fa8eb8059cd1c571e9ab369bf80c946ccbd320c258d5e8c65bea3b5a5bc4d85a38cac8205d5bbfbaad6aebf0a031315b73e9b99f4 SHA512 ed8c8fc154a03082bcbfe414bdb934870d09cf137811036a3ce59d70e1ad0b582fea64c31037c84e76a939bf1d087caabb9aa349578b525bce882e853a969653 +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/files/librepcb-0.1.5-quazip1.x.patch b/sci-electronics/librepcb/files/librepcb-0.1.5-quazip1.x.patch deleted file mode 100644 index 4e77ff9435ab..000000000000 --- a/sci-electronics/librepcb/files/librepcb-0.1.5-quazip1.x.patch +++ /dev/null @@ -1,57 +0,0 @@ -From 7e01cb556ce5daee19b0270dded8eca9fcb1ea60 Mon Sep 17 00:00:00 2001 -From: Victor Kustov <ktrace@yandex.ru> -Date: Tue, 25 May 2021 01:52:57 +0300 -Subject: [PATCH] Fix for quazip 1.x usage - ---- - libs/librepcb/common/common.pro | 2 +- - libs/librepcb/common/fileio/transactionalfilesystem.cpp | 6 +++--- - libs/librepcb/common/network/filedownload.cpp | 2 +- - 3 files changed, 5 insertions(+), 5 deletions(-) - -diff --git a/libs/librepcb/common/common.pro b/libs/librepcb/common/common.pro -index 6a6b623..d6ce077 100644 ---- a/libs/librepcb/common/common.pro -+++ b/libs/librepcb/common/common.pro -@@ -333,7 +333,7 @@ FORMS += \ - - # quazip - contains(UNBUNDLE, quazip) { -- PKGCONFIG += quazip -+ PKGCONFIG += quazip1-qt5 - } else { - INCLUDEPATH += ../../quazip - } -diff --git a/libs/librepcb/common/fileio/transactionalfilesystem.cpp b/libs/librepcb/common/fileio/transactionalfilesystem.cpp -index c98c84e..7b4927b 100644 ---- a/libs/librepcb/common/fileio/transactionalfilesystem.cpp -+++ b/libs/librepcb/common/fileio/transactionalfilesystem.cpp -@@ -27,9 +27,9 @@ - #include "sexpression.h" - - #ifdef SYSTEM_QUAZIP --#include <quazip5/quazip.h> --#include <quazip5/quazipdir.h> --#include <quazip5/quazipfile.h> -+#include <quazip.h> -+#include <quazipdir.h> -+#include <quazipfile.h> - #else - #include <quazip/quazip.h> - #include <quazip/quazipdir.h> -diff --git a/libs/librepcb/common/network/filedownload.cpp b/libs/librepcb/common/network/filedownload.cpp -index 110fae3..718a137 100644 ---- a/libs/librepcb/common/network/filedownload.cpp -+++ b/libs/librepcb/common/network/filedownload.cpp -@@ -27,7 +27,7 @@ - #include <QtCore> - - #ifdef SYSTEM_QUAZIP --#include <quazip5/JlCompress.h> -+#include <JlCompress.h> - #else - #include <quazip/JlCompress.h> - #endif --- -2.26.3 - diff --git a/sci-electronics/librepcb/librepcb-0.1.3.ebuild b/sci-electronics/librepcb/librepcb-0.1.3.ebuild deleted file mode 100644 index 610277aedbe6..000000000000 --- a/sci-electronics/librepcb/librepcb-0.1.3.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit qmake-utils xdg-utils - -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="" - -BDEPEND=" - app-arch/unzip - dev-qt/linguist-tools:5" - -RDEPEND=" - 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/qtwidgets:5 - dev-qt/qtxml:5 - sys-libs/zlib" - -DEPEND="${RDEPEND} - dev-qt/qttest:5" - -src_configure() { - eqmake5 -r PREFIX="/usr" -} - -src_install() { - emake INSTALL_ROOT="${D}" install -} - -pkg_postinst() { - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update -} - -pkg_postrm() { - xdg_desktop_database_update - xdg_icon_cache_update - xdg_mimeinfo_database_update -} diff --git a/sci-electronics/librepcb/librepcb-0.1.5.ebuild b/sci-electronics/librepcb/librepcb-0.1.5.ebuild deleted file mode 100644 index 84229df8b492..000000000000 --- a/sci-electronics/librepcb/librepcb-0.1.5.ebuild +++ /dev/null @@ -1,55 +0,0 @@ -# Copyright 2009-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit qmake-utils 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" - -BDEPEND=" - app-arch/unzip - dev-qt/linguist-tools:5" - -RDEPEND=" - dev-libs/quazip:= - 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 - sys-libs/zlib" - -DEPEND="${RDEPEND} - dev-qt/qttest:5" - -PATCHES=( "${FILESDIR}"/${P}-quazip1.x.patch ) - -src_configure() { - local pro_lst - for pro_lst in $(find libs/librepcb/ -type f -name "*.pro" || die) - do - sed -e 's:target.path = $${PREFIX}/lib:target.path = $${PREFIX}/'$(get_libdir)':' -i ${pro_lst} || die "Can't fix ${pro_lst} file" - done - eqmake5 -r PREFIX="/usr" UNBUNDLE+="quazip" -} - -src_install() { - emake INSTALL_ROOT="${D}" install -} - -src_test() { - cd "${S}"/output - virtx ./librepcb-unittests --gtest_filter=-SystemInfoTest.testGetUsername -} diff --git a/sci-electronics/librepcb/librepcb-0.1.7.ebuild b/sci-electronics/librepcb/librepcb-0.1.7.ebuild new file mode 100644 index 000000000000..c2752d3b0f23 --- /dev/null +++ b/sci-electronics/librepcb/librepcb-0.1.7.ebuild @@ -0,0 +1,60 @@ +# Copyright 2009-2022 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" + +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 + sys-libs/zlib" + +DEPEND="${RDEPEND} + dev-qt/qttest:5" + +src_configure() { + local mycmakeargs+=( + -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: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/librepcb-1.0.0-r2.ebuild b/sci-electronics/librepcb/librepcb-1.0.0-r2.ebuild new file mode 100644 index 000000000000..cdee44faf323 --- /dev/null +++ b/sci-electronics/librepcb/librepcb-1.0.0-r2.ebuild @@ -0,0 +1,69 @@ +# Copyright 2009-2024 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/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5[ssl] + dev-qt/qtopengl:5 + dev-qt/qtprintsupport:5 + dev-qt/qtquickcontrols2:5 + dev-qt/qtsql:5 + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + opencascade? ( sci-libs/opencascade:= ) + sys-libs/zlib + virtual/opengl" + +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 bef24d2c2337..de1b0cf0ff98 100644 --- a/sci-electronics/librepcb/metadata.xml +++ b/sci-electronics/librepcb/metadata.xml @@ -1,5 +1,27 @@ <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <!-- maintainer-needed --> + <maintainer type="project" proxied="proxy"> + <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. + - 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> + <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> |