diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-05-11 16:02:49 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-05-11 16:02:49 +0100 |
commit | 88ebe56470c37b02a044e1091cad6b2df0f3be8f (patch) | |
tree | d80b2d9337c01c4a0fe11a2ef9691fc3153ed6d3 /media-gfx/engauge | |
parent | 4645b6f17f0da81e9fe84081fb126a37102ba153 (diff) |
gentoo resync : 11.05.2018
Diffstat (limited to 'media-gfx/engauge')
-rw-r--r-- | media-gfx/engauge/Manifest | 2 | ||||
-rw-r--r-- | media-gfx/engauge/engauge-10.6.ebuild | 93 |
2 files changed, 95 insertions, 0 deletions
diff --git a/media-gfx/engauge/Manifest b/media-gfx/engauge/Manifest index 28ce28ecdc06..9579a227e2f4 100644 --- a/media-gfx/engauge/Manifest +++ b/media-gfx/engauge/Manifest @@ -1,3 +1,5 @@ +DIST engauge-digitizer-10.6.tar.gz 68463313 BLAKE2B 2f939b383d2b2ca7d3ac73196ae6c9f4cd3380f7cb1bc7703d23ffe2554bfd6dfb6f206d3b9c33953757791855c908c7899f078c1c1472549859258d406e5796 SHA512 f571978298f0646f338ee786aae692800bd73242f68a4f35509023d3ea0daaa16ede6a1d45cbc28a31efc277697315c63fe3d2cce1f0cf80334bdeea11599a67 DIST engauge_5.2.tgz 5708224 BLAKE2B 65403f3eb322a3cfee2f04d3a973deef5196a475f594599e3226dad776505c639536fdc46ef94d955d94b0629faf9282378e7bb4d4d7945e0ae69cdd6160a858 SHA512 b1839a223c93866f880ca090b6dd5a9ab45a89b5f6f470fd6abba3e2aa4b108ed228c8b06c3888fa463316798c2d157e20b2e22975bd65a1124d007bb36d2d88 +EBUILD engauge-10.6.ebuild 2285 BLAKE2B 458d2526784e58cb6299bea5e0b92616fb496361fdd28ae2bbfd865562a8c87aad73b765c4de0849edf7a5950f267ec14f4c009b102a07f4a5b79672658d9c4f SHA512 860f7cf94e180125c46c943b60f62278d16226a2bcba4a28a810cfc630de704bad701340df7f368d4c445f06e639c32380e42566d86cfbc266f635ef4ba9c9ee EBUILD engauge-5.2.ebuild 1293 BLAKE2B 2225bac7ed507d6922587e930bebfc47c3d944df5bd65141e472d1ca4ed83a38594f43e7233b9a82b7fe868ad90c78190f81ef882ae18248ecd95d61e94192e5 SHA512 935c106dad40e7c48255002c2d59c8db5524ceb3e818f554b4bbc660bc7e4f081aeba4fe3db21f3c38151cc66877eaf9730a825351236af690026996b3540e1c MISC metadata.xml 337 BLAKE2B 8c46cdaadb388ccd12d29c41a075ec60130482855d0735cd468a174e631129964fec7c2e7649994e8f958def8ceb8f4ad0ecb60ab69ce37171c9945696825369 SHA512 41201e69d211283450ef6ff45a23e0978934044e170da84de7e7978360bd5ce1e3b277df4a90e00221cca3f987cd6839ee90fceea232c70cebeb69b5bc7c1c6d 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 +} |