public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: sci-visualization/xyscan/files/, sci-visualization/xyscan/
@ 2025-01-29 18:49 Andreas Sturmlechner
  0 siblings, 0 replies; only message in thread
From: Andreas Sturmlechner @ 2025-01-29 18:49 UTC (permalink / raw
  To: gentoo-commits

commit:     a739869d9534cdb5094d2cb68622a2ce4d65f551
Author:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 29 18:32:02 2025 +0000
Commit:     Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Wed Jan 29 18:48:53 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a739869d

sci-visualization/xyscan: add 4.6.6

Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>

 sci-visualization/xyscan/Manifest                  |  1 +
 .../xyscan/files/xyscan-4.6.6-qt6.patch            | 55 ++++++++++++++++++++++
 sci-visualization/xyscan/xyscan-4.6.6.ebuild       | 48 +++++++++++++++++++
 3 files changed, 104 insertions(+)

diff --git a/sci-visualization/xyscan/Manifest b/sci-visualization/xyscan/Manifest
index 8051cba3aaa9..360edba4aba8 100644
--- a/sci-visualization/xyscan/Manifest
+++ b/sci-visualization/xyscan/Manifest
@@ -1 +1,2 @@
 DIST xyscan-4.30-src.tgz 2700346 BLAKE2B 553e751a8d8320aca0bdfcf9facb528463d4b9179f134c0d2739837af8756760e8831f868737658f21c109c76f87a0c7284c65138b5585481e8201f664f3653e SHA512 f520f9d54893e738e8c93c7f0f4c5940b17e25d2a8dcd42632993b92460cecd388e6bfaa69f3905bdb9e77ea2ec876f3b93d82079d3383d6edc4cc8baec512b6
+DIST xyscan-4.66-src.tgz 7370446 BLAKE2B c52ab2a50a3655f9e224cc8f462d5f94e8bb6e948b1ea1670c981e394d921d20e0c21a0e6b340ed175a57673aacec87ea9fc9c452e475d1767538d9560ca27e0 SHA512 3c7e39ce80f1c67d13687c8982e73a9f8880dcbbc137ec5c65edcf4945a7de7e330c5ff1856d7792b486d2bcc2e4f34e6d6c2284e2e2a0d1e55b8afbc7b79e5e

diff --git a/sci-visualization/xyscan/files/xyscan-4.6.6-qt6.patch b/sci-visualization/xyscan/files/xyscan-4.6.6-qt6.patch
new file mode 100644
index 000000000000..4188a0b5b402
--- /dev/null
+++ b/sci-visualization/xyscan/files/xyscan-4.6.6-qt6.patch
@@ -0,0 +1,55 @@
+From fd16e64fc8ca5e7f847001050abeef6d6822c061 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Wed, 29 Jan 2025 19:25:48 +0100
+Subject: [PATCH] Fix Qt6 build for non-Mac
+
+Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
+---
+ src/xyscanWindow.cpp |  2 --
+ xyscan.pro           | 10 ++--------
+ 2 files changed, 2 insertions(+), 10 deletions(-)
+
+diff --git a/src/xyscanWindow.cpp b/src/xyscanWindow.cpp
+index 03e0267..41d554d 100644
+--- a/src/xyscanWindow.cpp
++++ b/src/xyscanWindow.cpp
+@@ -51,8 +51,6 @@
+ 
+ #if defined(USE_QTPDF)
+ #include <QPdfDocument>
+-#elif defined(USE_POPPLER) && !defined(Q_OS_MAC)
+-#include <poppler-qt5.h>
+ #elif defined(USE_POPPLER)
+ #include <poppler-qt6.h>
+ #endif
+diff --git a/xyscan.pro b/xyscan.pro
+index b792ac7..765fe1e 100644
+--- a/xyscan.pro
++++ b/xyscan.pro
+@@ -24,7 +24,7 @@
+ VERSION = 4.6.6
+ TEMPLATE = app
+ CONFIG  += qt warn_on release c++14 lrelease
+-CONFIG  += sdk_no_version_check
++CONFIG  += sdk_no_version_check link_pkgconfig
+ QT += network xml widgets printsupport multimedia charts
+ QMAKE_APPLE_DEVICE_ARCHS = x86_64 arm64
+ 
+@@ -55,13 +55,7 @@ macx {
+ #
+ unix {
+     !macx {
+-        INCLUDEPATH += /usr/include/poppler/qt5/
+-        INCLUDEPATH += /usr/include/poppler
+-        INCLUDEPATH += /usr/local/include/poppler/qt5/
+-        INCLUDEPATH += /usr/local/include/poppler
+-        INCLUDEPATH += /opt/local/include/poppler/qt5/
+-        INCLUDEPATH += /opt/local/include/poppler
+-        LIBS += -L/usr/local/lib/ -L/usr/lib/ -lpoppler -lpoppler-qt5
++        PKGCONFIG+=poppler-qt6
+     }
+ }
+ 
+-- 
+2.48.1
+

diff --git a/sci-visualization/xyscan/xyscan-4.6.6.ebuild b/sci-visualization/xyscan/xyscan-4.6.6.ebuild
new file mode 100644
index 000000000000..1a1e97ef8a7a
--- /dev/null
+++ b/sci-visualization/xyscan/xyscan-4.6.6.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PV=$(ver_rs 2 '')
+inherit desktop qmake-utils
+
+DESCRIPTION="Tool for extracting data points from graphs"
+HOMEPAGE="https://rhig.physics.yale.edu/~ullrich/software/xyscan"
+SRC_URI="https://rhig.physics.yale.edu/~ullrich/software/${PN}/Distributions/${MY_PV}/${PN}-${MY_PV}-src.tgz"
+S="${WORKDIR}/${PN}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
+
+RDEPEND="
+	app-text/poppler[qt6]
+	dev-qt/qtcharts:6
+	dev-qt/qtbase:6[gui,network,ssl,widgets]
+	dev-qt/qtmultimedia:6
+"
+DEPEND="${RDEPEND}"
+BDEPEND="
+	dev-qt/qttools:6[linguist]
+	virtual/pkgconfig
+"
+
+PATCHES=( "${FILESDIR}/${P}-qt6.patch" )
+
+src_prepare() {
+	default
+	sed -e "/path = /s:\"/usr/share/doc/xyscan/docs\":\"${EPREFIX}/usr/share/doc/${PF}/html\":" \
+		-i src/xyscanBaseWindow.cpp || die "Failed to fix docs path"
+}
+
+src_configure() {
+	eqmake6
+}
+
+src_install() {
+	dobin xyscan
+	local HTML_DOCS=( docs/. )
+	einstalldocs
+	newicon images/xyscanIcon.png xyscan.png
+	make_desktop_entry xyscan "xyscan data point extractor"
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-01-29 18:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-29 18:49 [gentoo-commits] repo/gentoo:master commit in: sci-visualization/xyscan/files/, sci-visualization/xyscan/ Andreas Sturmlechner

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