summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2022-03-06 00:08:04 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2022-03-06 00:08:20 +0100
commit7669c186d6bf6e44ea74054d84824b796b94ca5a (patch)
treefa888082b7b420403f9f2522bd3d00c8c3f20157 /media-gfx/engauge
parentmedia-gfx/libimagequant: Remove old (diff)
downloadgentoo-7669c186d6bf6e44ea74054d84824b796b94ca5a.tar.gz
gentoo-7669c186d6bf6e44ea74054d84824b796b94ca5a.tar.bz2
gentoo-7669c186d6bf6e44ea74054d84824b796b94ca5a.zip
media-gfx/engauge: Version bump 12.1
Closes: https://bugs.gentoo.org/729698 Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'media-gfx/engauge')
-rw-r--r--media-gfx/engauge/Manifest1
-rw-r--r--media-gfx/engauge/engauge-12.1.ebuild79
2 files changed, 80 insertions, 0 deletions
diff --git a/media-gfx/engauge/Manifest b/media-gfx/engauge/Manifest
index 7a189b18dcd4..fc493b850489 100644
--- a/media-gfx/engauge/Manifest
+++ b/media-gfx/engauge/Manifest
@@ -1 +1,2 @@
DIST engauge-digitizer-10.6.tar.gz 68463313 BLAKE2B 2f939b383d2b2ca7d3ac73196ae6c9f4cd3380f7cb1bc7703d23ffe2554bfd6dfb6f206d3b9c33953757791855c908c7899f078c1c1472549859258d406e5796 SHA512 f571978298f0646f338ee786aae692800bd73242f68a4f35509023d3ea0daaa16ede6a1d45cbc28a31efc277697315c63fe3d2cce1f0cf80334bdeea11599a67
+DIST engauge-digitizer-12.1.tar.gz 72358942 BLAKE2B c7581734f3c5591ee5c17e16f2e68d8f75fa083d4b53933d16ea15d36890664f375ac53b5e37872eb0d2ffb5980946fe920412ee56d8a1aa16b0a81e66fcb115 SHA512 54ae573eb1e82ec3a81403c3c64af43207e139a2d97eb633993ffe31e03fedb1c1a5fe63157011851ad4a89822a3109b87a2c90a71f77865b3629a517a353a61
diff --git a/media-gfx/engauge/engauge-12.1.ebuild b/media-gfx/engauge/engauge-12.1.ebuild
new file mode 100644
index 000000000000..39f94ddb1b7f
--- /dev/null
+++ b/media-gfx/engauge/engauge-12.1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop qmake-utils xdg
+
+DESCRIPTION="Convert an image file showing a graph or map into numbers"
+HOMEPAGE="https://markummitchell.github.io/engauge-digitizer/"
+SRC_URI="https://github.com/markummitchell/engauge-digitizer/archive/v${PV}.tar.gz -> engauge-digitizer-${PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples jpeg2k pdf"
+
+RDEPEND="dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qthelp:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtprintsupport:5
+ dev-qt/qtwidgets:5
+ dev-qt/qtxml:5
+ dev-libs/log4cpp
+ media-libs/libpng:0=
+ sci-libs/fftw:3.0
+ virtual/jpeg
+ jpeg2k? ( media-libs/openjpeg:2 )
+ pdf? ( app-text/poppler[qt5] )"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/engauge-digitizer-${PV}
+
+src_prepare() {
+ default
+
+ # Make sure the documentation is looked for in the proper directory
+ sed -e "s:engauge-digitizer/engauge.qhc:${PF}/engauge.qhc:" \
+ -i src/Help/HelpWindow.cpp || die
+
+ # This otherwise overrides user CFLAGS
+ sed -e '/QMAKE_CXXFLAGS_WARN_ON/s/-O1//' \
+ -i engauge.pro || die
+
+ # Neuter the non-pkg-config hackery
+ sed -e '/error.*OPENJPEG_/d' \
+ -e '/LIBS.*OPENJPEG_LIB/d' \
+ -e '/QMAKE_POST_LINK.*OPENJPEG_LIB/d' \
+ -e '/error.*POPPLER_/d' \
+ -e '/LIBS.*POPPLER_LIB/d' \
+ -i engauge.pro || die
+}
+
+src_configure() {
+ eqmake5 \
+ CONFIG+=link_pkgconfig \
+ $(usex jpeg2k "CONFIG+=jpeg2000 PKGCONFIG+=libopenjp2" "") \
+ $(usex pdf "CONFIG+=pdf PKGCONFIG+=poppler-qt5" "") \
+ engauge.pro
+ pushd help >/dev/null || die
+ ./build_qt5_12_0.bash || die
+ popd >/dev/null || die
+}
+
+src_install() {
+ dobin bin/engauge
+ doicon src/img/engauge-digitizer.svg
+ make_desktop_entry engauge "Engauge Digitizer" engauge-digitizer Graphics
+
+ # Install qt help files
+ dodoc bin/documentation/engauge.qch
+ docompress -x "${EPREFIX}"/usr/share/doc/${PF}/engauge.qch
+
+ use doc && dodoc -r doc/.
+ if use examples; then
+ dodoc -r samples
+ docompress -x "${EPREFIX}"/usr/share/doc/${PF}/samples
+ fi
+}