diff options
author | Denis Dupeyron <calchan@gentoo.org> | 2018-05-09 13:35:59 -0500 |
---|---|---|
committer | Denis Dupeyron <calchan@gentoo.org> | 2018-05-09 13:36:26 -0500 |
commit | 4468685583024688e79eb9157f318630a237d51c (patch) | |
tree | 86cafebda24bdbe2c84621d64f0ad2f044001c48 /media-gfx/engauge/engauge-10.6.ebuild | |
parent | sys-kernel/vanilla-sources: Version bump to 4.16.8 (diff) | |
download | gentoo-4468685583024688e79eb9157f318630a237d51c.tar.gz gentoo-4468685583024688e79eb9157f318630a237d51c.tar.bz2 gentoo-4468685583024688e79eb9157f318630a237d51c.zip |
media-gfx/engauge: bump to 10.6, bugs 616518 and 639248
Package-Manager: Portage-2.3.36, Repoman-2.3.9
Diffstat (limited to 'media-gfx/engauge/engauge-10.6.ebuild')
-rw-r--r-- | media-gfx/engauge/engauge-10.6.ebuild | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/media-gfx/engauge/engauge-10.6.ebuild b/media-gfx/engauge/engauge-10.6.ebuild new file mode 100644 index 000000000000..ea7530fd0b5f --- /dev/null +++ b/media-gfx/engauge/engauge-10.6.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit desktop gnome2-utils qmake-utils + +DESCRIPTION="Convert an image file showing a graph or map into numbers" +HOMEPAGE="http://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/qtprintsupport:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + dev-qt/qthelp:5 + dev-qt/qtnetwork:5 + dev-libs/log4cpp + sci-libs/fftw:3.0 + jpeg2k? ( media-libs/openjpeg:2 ) + pdf? ( app-text/poppler[qt5] )" +DEPEND="${RDEPEND}" + +S=$WORKDIR/engauge-digitizer-$PV + +src_prepare() { + eapply_user + + # 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 || 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 + insinto /usr/share/doc/${PF} # this must match sed expression in src_prepare + doins bin/documentation/engauge.{qch,qhc} + docompress -x "${EPREFIX%/}"/usr/share/doc/$PF/engauge.{qch,qhc} + + if use doc; then + pushd doc >/dev/null || die + doins -r . || die "install documentation failed" + popd >/dev/null || die + fi + if use examples; then + doins -r samples || die "install examples failed" + fi +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |