public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-electronics/librepcb/files/, sci-electronics/librepcb/
@ 2021-05-30 21:01 Andreas Sturmlechner
  0 siblings, 0 replies; 3+ messages in thread
From: Andreas Sturmlechner @ 2021-05-30 21:01 UTC (permalink / raw
  To: gentoo-commits

commit:     341846a7feadae8042487550952386fcbbefca30
Author:     Victor Kustov <ktrace <AT> yandex <DOT> ru>
AuthorDate: Sun Feb 14 13:08:43 2021 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun May 30 21:01:27 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=341846a7

sci-electronics/librepcb: bump version to 0.1.5

- unbundle quazip
- switch to quazip 1.x

Package-Manager: Portage-3.0.13, Repoman-3.0.2
Signed-off-by: Victor Kustov <ktrace <AT> yandex.ru>
Closes: https://github.com/gentoo/gentoo/pull/19384
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-electronics/librepcb/Manifest                  |  1 +
 .../librepcb/files/librepcb-0.1.5-quazip1.x.patch  | 57 ++++++++++++++++++++++
 sci-electronics/librepcb/librepcb-0.1.5.ebuild     | 55 +++++++++++++++++++++
 3 files changed, 113 insertions(+)

diff --git a/sci-electronics/librepcb/Manifest b/sci-electronics/librepcb/Manifest
index 72b59cca066..61e8f60ff02 100644
--- a/sci-electronics/librepcb/Manifest
+++ b/sci-electronics/librepcb/Manifest
@@ -1 +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

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
new file mode 100644
index 00000000000..4e77ff9435a
--- /dev/null
+++ b/sci-electronics/librepcb/files/librepcb-0.1.5-quazip1.x.patch
@@ -0,0 +1,57 @@
+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.5.ebuild b/sci-electronics/librepcb/librepcb-0.1.5.ebuild
new file mode 100644
index 00000000000..84229df8b49
--- /dev/null
+++ b/sci-electronics/librepcb/librepcb-0.1.5.ebuild
@@ -0,0 +1,55 @@
+# 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
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-electronics/librepcb/files/, sci-electronics/librepcb/
@ 2022-04-25  6:57 Joonas Niilola
  0 siblings, 0 replies; 3+ messages in thread
From: Joonas Niilola @ 2022-04-25  6:57 UTC (permalink / raw
  To: gentoo-commits

commit:     988bbcc04c1f98aa018ee1891379e52176e94c79
Author:     Victor Kustov <ktrace <AT> yandex <DOT> ru>
AuthorDate: Sun Apr 17 17:58:28 2022 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Mon Apr 25 06:56:56 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=988bbcc0

sci-electronics/librepcb: up to 0.1.6

- switch from qmake to cmake
- unbundle dev-cpp/muParser and dev-libs/quazip
- backport librepcb-0.1.6-muparser-fix.patch from master
- bugreport QA warning to upstream

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Victor Kustov <ktrace <AT> yandex.ru>
Closes: https://github.com/gentoo/gentoo/pull/25069
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 sci-electronics/librepcb/Manifest                  |  1 +
 .../files/librepcb-0.1.6-muparser-fix.patch        | 28 ++++++++++++
 sci-electronics/librepcb/librepcb-0.1.6.ebuild     | 50 ++++++++++++++++++++++
 3 files changed, 79 insertions(+)

diff --git a/sci-electronics/librepcb/Manifest b/sci-electronics/librepcb/Manifest
index 61e8f60ff028..febaf25c929b 100644
--- a/sci-electronics/librepcb/Manifest
+++ b/sci-electronics/librepcb/Manifest
@@ -1,2 +1,3 @@
 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.6-source.zip 12671974 BLAKE2B bed8d6134159ec663dd88f9933ef0dad6d3bca70776537bf2e16397f0e4fd968a41661d95a118008fcf9d7d6d2432ebac81d78153b3c3ce8d69c64fb59aaf70e SHA512 a51ac2830d65bbd10be8904ecdcc6a7781d80c95e1423ed5bd04fcd009a0b7135ff3a49a87afe9e99006ae1f6ae44f2341021e5733675f2f20b05525860da5d7

diff --git a/sci-electronics/librepcb/files/librepcb-0.1.6-muparser-fix.patch b/sci-electronics/librepcb/files/librepcb-0.1.6-muparser-fix.patch
new file mode 100644
index 000000000000..2abb26b18b59
--- /dev/null
+++ b/sci-electronics/librepcb/files/librepcb-0.1.6-muparser-fix.patch
@@ -0,0 +1,28 @@
+diff --git a/./libs/librepcb/common/utils/mathparser.cpp.orig b/./libs/librepcb/common/utils/mathparser.cpp
+index 618de36..e0903de 100644
+--- a/./libs/librepcb/common/utils/mathparser.cpp.orig
++++ b/./libs/librepcb/common/utils/mathparser.cpp
+@@ -22,7 +22,7 @@
+  ******************************************************************************/
+ #include "mathparser.h"
+ 
+-#include "muparser/include/muParser.h"
++#include <muParser.h>
+ 
+ /*******************************************************************************
+  *  Namespace
+diff --git a/./cmake/FindMuParser.cmake.orig b/./cmake/FindMuParser.cmake
+--- a/./cmake/FindMuParser.cmake.orig	2021-11-03 01:04:32.000000000 +0300
++++ b/./cmake/FindMuParser.cmake	2022-04-24 18:01:23.996260205 +0300
+@@ -37,6 +37,11 @@
+ if(muparser_FOUND)
+   message(STATUS "Using system MuParser")
+ 
++  # Add uppercase alias if only the lowercase target is defined
++  if(NOT TARGET MuParser::MuParser)
++    add_library(MuParser::MuParser ALIAS muparser::muparser)
++  endif()
++
+   # Stop here, we're done
+   return()
+ endif()

diff --git a/sci-electronics/librepcb/librepcb-0.1.6.ebuild b/sci-electronics/librepcb/librepcb-0.1.6.ebuild
new file mode 100644
index 000000000000..69a4c50b530d
--- /dev/null
+++ b/sci-electronics/librepcb/librepcb-0.1.6.ebuild
@@ -0,0 +1,50 @@
+# 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:=
+	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}-muparser-fix.patch )
+
+src_configure() {
+	local mycmakeargs+=(
+	    -DUNBUNDLE_QUAZIP=ON
+	    -DUNBUNDLE_MUPARSER=ON )
+	cmake_src_configure
+}
+
+src_test() {
+	cd "${BUILD_DIR}"/tests/unittests || die
+	virtx ./librepcb-unittests --gtest_filter=-SystemInfoTest.testGetUsername || die
+}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: sci-electronics/librepcb/files/, sci-electronics/librepcb/
@ 2023-10-27  8:02 Andrew Ammerlaan
  0 siblings, 0 replies; 3+ messages in thread
From: Andrew Ammerlaan @ 2023-10-27  8:02 UTC (permalink / raw
  To: gentoo-commits

commit:     30b7c3d0bfae5d50d0b30b9c9f23f25a5625df66
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Fri Oct 27 08:01:35 2023 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Fri Oct 27 08:01:42 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30b7c3d0

sci-electronics/librepcb: drop 0.1.6-r1

Co-authored-by: Victor Kustov <ktrace <AT> yandex.ru>
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 sci-electronics/librepcb/Manifest                  |  1 -
 .../files/librepcb-0.1.6-muparser-fix.patch        | 28 ------------
 sci-electronics/librepcb/librepcb-0.1.6-r1.ebuild  | 50 ----------------------
 3 files changed, 79 deletions(-)

diff --git a/sci-electronics/librepcb/Manifest b/sci-electronics/librepcb/Manifest
index fd5bb0564575..9105662fe2a4 100644
--- a/sci-electronics/librepcb/Manifest
+++ b/sci-electronics/librepcb/Manifest
@@ -1,3 +1,2 @@
-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/files/librepcb-0.1.6-muparser-fix.patch b/sci-electronics/librepcb/files/librepcb-0.1.6-muparser-fix.patch
deleted file mode 100644
index 2abb26b18b59..000000000000
--- a/sci-electronics/librepcb/files/librepcb-0.1.6-muparser-fix.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-diff --git a/./libs/librepcb/common/utils/mathparser.cpp.orig b/./libs/librepcb/common/utils/mathparser.cpp
-index 618de36..e0903de 100644
---- a/./libs/librepcb/common/utils/mathparser.cpp.orig
-+++ b/./libs/librepcb/common/utils/mathparser.cpp
-@@ -22,7 +22,7 @@
-  ******************************************************************************/
- #include "mathparser.h"
- 
--#include "muparser/include/muParser.h"
-+#include <muParser.h>
- 
- /*******************************************************************************
-  *  Namespace
-diff --git a/./cmake/FindMuParser.cmake.orig b/./cmake/FindMuParser.cmake
---- a/./cmake/FindMuParser.cmake.orig	2021-11-03 01:04:32.000000000 +0300
-+++ b/./cmake/FindMuParser.cmake	2022-04-24 18:01:23.996260205 +0300
-@@ -37,6 +37,11 @@
- if(muparser_FOUND)
-   message(STATUS "Using system MuParser")
- 
-+  # Add uppercase alias if only the lowercase target is defined
-+  if(NOT TARGET MuParser::MuParser)
-+    add_library(MuParser::MuParser ALIAS muparser::muparser)
-+  endif()
-+
-   # Stop here, we're done
-   return()
- endif()

diff --git a/sci-electronics/librepcb/librepcb-0.1.6-r1.ebuild b/sci-electronics/librepcb/librepcb-0.1.6-r1.ebuild
deleted file mode 100644
index ff7207a0da95..000000000000
--- a/sci-electronics/librepcb/librepcb-0.1.6-r1.ebuild
+++ /dev/null
@@ -1,50 +0,0 @@
-# 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"
-
-PATCHES=( "${FILESDIR}"/${P}-muparser-fix.patch )
-
-src_configure() {
-	local mycmakeargs+=(
-		-DUNBUNDLE_QUAZIP=ON
-		-DUNBUNDLE_MUPARSER=ON )
-	cmake_src_configure
-}
-
-src_test() {
-	cd "${BUILD_DIR}"/tests/unittests || die
-	virtx ./librepcb-unittests --gtest_filter=-SystemInfoTest.testGetUsername
-}


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-10-27  8:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-27  8:02 [gentoo-commits] repo/gentoo:master commit in: sci-electronics/librepcb/files/, sci-electronics/librepcb/ Andrew Ammerlaan
  -- strict thread matches above, loose matches on Subject: below --
2022-04-25  6:57 Joonas Niilola
2021-05-30 21:01 Andreas Sturmlechner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox