blob: 1a1e97ef8a7a643939e676dddee099dff4dd8262 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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"
}
|