From e50a08580ef0a3c86adb9ff6565c1bb57582c319 Mon Sep 17 00:00:00 2001 From: Andreas Sturmlechner Date: Sat, 20 Feb 2021 21:16:53 +0100 Subject: sci-electronics/fritzing: Support build with >=dev-libs/quazip-1.0 Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner --- .../fritzing/files/fritzing-0.9.4-quazip1.patch | 28 ++++++++ sci-electronics/fritzing/fritzing-0.9.4-r2.ebuild | 81 ++++++++++++++++++++++ 2 files changed, 109 insertions(+) create mode 100644 sci-electronics/fritzing/files/fritzing-0.9.4-quazip1.patch create mode 100644 sci-electronics/fritzing/fritzing-0.9.4-r2.ebuild diff --git a/sci-electronics/fritzing/files/fritzing-0.9.4-quazip1.patch b/sci-electronics/fritzing/files/fritzing-0.9.4-quazip1.patch new file mode 100644 index 000000000000..d218c10d90a0 --- /dev/null +++ b/sci-electronics/fritzing/files/fritzing-0.9.4-quazip1.patch @@ -0,0 +1,28 @@ +Fix build with QuaZip-1.0. + +--- a/phoenix.pro ++++ b/phoenix.pro +@@ -194,8 +194,8 @@ + include(pri/qtsysteminfo.pri) + + contains(DEFINES, QUAZIP_INSTALLED) { +- INCLUDEPATH += /usr/include/quazip +- LIBS += -lquazip ++ CONFIG += link_pkgconfig ++ PKGCONFIG += quazip1-qt5 + } else { + include(pri/quazip.pri) + } +--- a/src/utils/folderutils.cpp ++++ b/src/utils/folderutils.cpp +@@ -35,8 +35,8 @@ + + #include "../debugdialog.h" + #ifdef QUAZIP_INSTALLED +-#include +-#include ++#include ++#include + #else + #include "../lib/quazip/quazip.h" + #include "../lib/quazip/quazipfile.h" diff --git a/sci-electronics/fritzing/fritzing-0.9.4-r2.ebuild b/sci-electronics/fritzing/fritzing-0.9.4-r2.ebuild new file mode 100644 index 000000000000..c3dc3e35c2b9 --- /dev/null +++ b/sci-electronics/fritzing/fritzing-0.9.4-r2.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit qmake-utils xdg + +MY_PV="CD-498" +PARTS_P="${PN}-parts-${PV}" +PARTS_COMMIT="e79a69765026f3fda8aab1b3e7a4952c28047a62" + +DESCRIPTION="Electronic Design Automation" +HOMEPAGE="https://fritzing.org/ + https://github.com/fritzing/fritzing-app/" +SRC_URI="https://github.com/fritzing/fritzing-app/archive/${MY_PV}.tar.gz -> ${P}.tar.gz + https://github.com/fritzing/fritzing-parts/archive/${PARTS_COMMIT}.tar.gz -> ${PARTS_P}.tar.gz" + +LICENSE="CC-BY-SA-3.0 GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-libs/quazip:0= + dev-libs/libgit2:= + dev-qt/qtconcurrent:5 + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtserialport:5 + dev-qt/qtsql:5[sqlite] + dev-qt/qtsvg:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 +" +DEPEND="${RDEPEND} + dev-libs/boost +" + +S="${WORKDIR}/${PN}-app-${MY_PV}" + +DOCS=( README.md ) + +PATCHES=( + "${FILESDIR}/${P}-fix-libgit2-version.patch" + "${FILESDIR}/${P}-move-parts-db-path.patch" + "${FILESDIR}/${P}-quazip1.patch" +) + +src_prepare() { + xdg_src_prepare + + if has_version "