From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- media-gfx/qiviewer/Manifest | 6 +++ .../qiviewer/files/qiviewer-use-system-webp.patch | 41 +++++++++++++++ media-gfx/qiviewer/metadata.xml | 14 +++++ media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild | 59 ++++++++++++++++++++++ 4 files changed, 120 insertions(+) create mode 100644 media-gfx/qiviewer/Manifest create mode 100644 media-gfx/qiviewer/files/qiviewer-use-system-webp.patch create mode 100644 media-gfx/qiviewer/metadata.xml create mode 100644 media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild (limited to 'media-gfx/qiviewer') diff --git a/media-gfx/qiviewer/Manifest b/media-gfx/qiviewer/Manifest new file mode 100644 index 000000000000..e3a1aa76f357 --- /dev/null +++ b/media-gfx/qiviewer/Manifest @@ -0,0 +1,6 @@ +AUX qiviewer-use-system-webp.patch 1510 SHA256 31a32ce304a8e44ffc1307b8e99a0bba587039687763ffc5e208794c70d10bb3 SHA512 71d5e1c51aed1a9b576e30913bf9841151cc3755b7fc12a07ee5f4dfc213427d4e6a0c193f657780b364a37ab51dc4bb0c186589e18c685db870992b1dfddb9a WHIRLPOOL 9cad2e335151f8e4bbb4553f69b3d37f0f83f5f6d8f89a3dd5d1e9e9e6639b3afbc666ee621fcbd09eaa91e324d0e63184061c2a298dffbb8b0d4cec428c477b +DIST qiviewer-0.5.0.tar.bz2 177201 SHA256 99d997ea1b05187794c14773402215178d3a21198231edd95f309badbb73010d SHA512 f9a75020085576f28b1e38e12a0e69d4b5efbedca5602ad1b47583a220eb50f6967f87764658b1d38ac696ed45134d580d3971c1d791a3156f28c55dceaa7fc7 WHIRLPOOL a9a808b22f11d111bfcb1d38ea099e3a95932982387b17f204d5ee7dc85562421057398fa99cab08110075a16f8ef443186a4189cc106b003367c35d58899cf7 +EBUILD qiviewer-0.5.0-r1.ebuild 1532 SHA256 04254a9e35c9cf2e586cb28610fface4479d4e38880540401eb03c050a109c2f SHA512 59470e04325c4141472480eeec4651d23363f85323bc4ba7464f4d4ab00201da33a49b56a37d819f792e73e72b1b0fa80b5f73c5ef2eabd582dce5ec03856d83 WHIRLPOOL 22474e4966df4b230bf5f5aadf24d6a3d2669413d0fe047672477faf45d12e93d5a6807bd8ba9cc4fe9e4dfdef6e8bdbeef75a6ab17797aca494c48c7db42bad +MISC ChangeLog 3395 SHA256 288d01110d8a2f674a8b5967258b671622341ea8ae0568b5e85f04950cc145d4 SHA512 39e94d0208fc162c98841554147940aad8915a41c9a03f52b308272f2bbacd1df724f82b66864a84153a267c20c016c244120f0d3daac85779c122ec573c3632 WHIRLPOOL d80a748425b5ef6ee780f6fd18a5a51e8d240b941c54c1d626d0d8b5f43065107488f3601c97379b7c2a67fb2db74f68c75a107a6adc31a867e33026d54d0720 +MISC ChangeLog-2015 1076 SHA256 9933a5a0a6627363d74269d6836d30f66b28e771bf40be95744ef335dace4242 SHA512 175ef244bbc1ffb9338470947975839ac4f649c0ea07bf4ba9f1738ecc5244d95e520b945041ae42a0c886a6f450eb051adcd9fbfc66d8c4979aca5eb4984b21 WHIRLPOOL 480e08c3755f4dede62d2557ab928f53fce475514cbe2faef96637fe05a2a4ef820b34fc205fc9fed3e0cfae030a36a354ef6e0421b10bd56145aef63ed68328 +MISC metadata.xml 405 SHA256 497d7e22f91daaaba7e9d3b920a18c150b940a9447c51c106f05e4789baa3ac6 SHA512 2306632b70bc7344eff02381475c4d1218820449752a116aefd5df4642290134b9c91d91f49cb4c625dd415237b92c16a7f33f5291e27993970a4c8b4bbbe111 WHIRLPOOL 232f2d6be5cc9d23e0b556bf7d0942792c7822dbfb40f8db804762a275d9beb78df6703078f70105e497b9bc48f4b430a9a8d934a691c83b29b38f00f6e0256e diff --git a/media-gfx/qiviewer/files/qiviewer-use-system-webp.patch b/media-gfx/qiviewer/files/qiviewer-use-system-webp.patch new file mode 100644 index 000000000000..252477f7d84a --- /dev/null +++ b/media-gfx/qiviewer/files/qiviewer-use-system-webp.patch @@ -0,0 +1,41 @@ +--- qiviewer.pro.orig 2012-08-27 15:29:24.435612352 +0400 ++++ qiviewer.pro 2012-08-27 15:30:12.286611983 +0400 +@@ -58,24 +58,9 @@ + message(This feature isn't ready yet, use it carefully!) + # rules to execute when myfeature IS defined: + DEFINES += WEBP_SUPPORT +- INCLUDEPATH += . ./3rdparty/webp +- HEADERS += webpdecoder.h \ +- 3rdparty/webp/dec/bits.h \ +- 3rdparty/webp/dec/vp8i.h \ +- 3rdparty/webp/dec/yuv.h \ +- 3rdparty/webp/webp/decode.h \ +- 3rdparty/webp/webp/decode_vp8.h \ +- 3rdparty/webp/webp/encode.h \ +- 3rdparty/webp/webp/types.h +- SOURCES += webpdecoder.cpp \ +- 3rdparty/webp/dec/bits.c \ +- 3rdparty/webp/dec/dsp.c \ +- 3rdparty/webp/dec/frame.c \ +- 3rdparty/webp/dec/quant.c \ +- 3rdparty/webp/dec/tree.c \ +- 3rdparty/webp/dec/vp8.c \ +- 3rdparty/webp/dec/webp.c \ +- 3rdparty/webp/dec/yuv.c ++ HEADERS += webpdecoder.h ++ SOURCES += webpdecoder.cpp ++ LIBS += -lwebp + } + + # Tell Qt Linguist that we use UTF-8 strings in our sources +--- webpdecoder.cpp.orig 2012-08-27 15:29:30.110612309 +0400 ++++ webpdecoder.cpp 2012-08-27 15:29:49.919612154 +0400 +@@ -2,7 +2,7 @@ + #include + #include + #include "webpdecoder.h" +-#include "3rdparty/webp/webp/decode.h" ++#include + + WebpDecoder::WebpDecoder(QWidget *parent) : QWidget(parent) + { diff --git a/media-gfx/qiviewer/metadata.xml b/media-gfx/qiviewer/metadata.xml new file mode 100644 index 000000000000..a712eb06f83c --- /dev/null +++ b/media-gfx/qiviewer/metadata.xml @@ -0,0 +1,14 @@ + + + + + pinkbyte@gentoo.org + Sergey Popov + + + Build support for WEBP image format + + + samkpo/qiviewer + + diff --git a/media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild b/media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild new file mode 100644 index 000000000000..d75250f855a0 --- /dev/null +++ b/media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +PLOCALES="el es_AR es_ES" + +inherit l10n qt4-r2 readme.gentoo + +DESCRIPTION="Lightweight image viewer, similar to eog or viewnior for Gnome" +HOMEPAGE="https://github.com/samkpo/qiviewer" +SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="webp" + +DEPEND="dev-qt/qtgui:4 + webp? ( media-libs/libwebp )" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${PN}/src" + +DOC_CONTENTS="If you want support for gif and tiff images +make sure that you build dev-qt/qtgui:4 +with apropriate USE flags" + +src_prepare() { + local LOCALE_FILES="" + add_locale() { + LOCALE_FILES="${LOCALE_FILES} ${1}.ts" + } + + # Check for locales added/removed from previous version + l10n_find_plocales_changes "${S}/translations" "" '.ts' + # Fill list of available locale files + l10n_for_each_locale_do add_locale + sed -i -e "s:TRANSLATIONS += .\+:TRANSLATIONS = ${LOCALE_FILES}:" translations/locale.pri || die 'locale sed failed' + # Fix mime types in desktop file + sed -i -e "s:^MimeType=\(.\+\)imaqe/x-xpixrnap;\(.\+\):MimeType=\1\2:" qiviewer.desktop || die 'desktop file sed failed' + # Use system libwebp + epatch "${FILESDIR}"/${PN}-use-system-webp.patch + + qt4-r2_src_prepare +} + +src_configure() { + local _webp= + use webp && _webp="CONFIG+=enable-webp" + eqmake4 ${PN}.pro $_webp +} + +src_install() { + qt4-r2_src_install + cd "${WORKDIR}"/"${PN}" + dodoc AUTHORS ChangeLog README + readme.gentoo_create_doc +} -- cgit v1.2.3