summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Popov <pinkbyte@gentoo.org>2012-09-07 07:05:48 +0000
committerSergey Popov <pinkbyte@gentoo.org>2012-09-07 07:05:48 +0000
commit67d6ce32af6bd67875abce054fd8d9401ab0d74f (patch)
tree53d155272c9434c39499143f577a840e3b1e9452 /media-gfx/qiviewer
parentFix USE=perl handling with chkdupexe #434146 by Alexandre. (diff)
downloadhistorical-67d6ce32af6bd67875abce054fd8d9401ab0d74f.tar.gz
historical-67d6ce32af6bd67875abce054fd8d9401ab0d74f.tar.bz2
historical-67d6ce32af6bd67875abce054fd8d9401ab0d74f.zip
New ebuild, fixes bug #432584
Package-Manager: portage-2.2.0_alpha123/cvs/Linux x86_64
Diffstat (limited to 'media-gfx/qiviewer')
-rw-r--r--media-gfx/qiviewer/ChangeLog10
-rw-r--r--media-gfx/qiviewer/Manifest5
-rw-r--r--media-gfx/qiviewer/files/qiviewer-use-system-webp.patch41
-rw-r--r--media-gfx/qiviewer/metadata.xml11
-rw-r--r--media-gfx/qiviewer/qiviewer-0.5.0.ebuild53
5 files changed, 120 insertions, 0 deletions
diff --git a/media-gfx/qiviewer/ChangeLog b/media-gfx/qiviewer/ChangeLog
new file mode 100644
index 000000000000..bbede562297f
--- /dev/null
+++ b/media-gfx/qiviewer/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for media-gfx/qiviewer
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/qiviewer/ChangeLog,v 1.1 2012/09/07 07:05:48 pinkbyte Exp $
+
+*qiviewer-0.5.0 (07 Sep 2012)
+
+ 07 Sep 2012; Sergey Popov <pinkbyte@gentoo.org> +qiviewer-0.5.0.ebuild,
+ +files/qiviewer-use-system-webp.patch, +metadata.xml:
+ New ebuild, fixes bug #432584
+
diff --git a/media-gfx/qiviewer/Manifest b/media-gfx/qiviewer/Manifest
new file mode 100644
index 000000000000..bb6351528638
--- /dev/null
+++ b/media-gfx/qiviewer/Manifest
@@ -0,0 +1,5 @@
+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.ebuild 1503 SHA256 5a81a0df06a85ed5c5f9227af9c5610a26a1b7c51059b6c41ddce50593361a87 SHA512 b09147684b0b38da64b5bb7f0f3d71160149d8630ac5f77d9e70f5bd7f2487a973a8da26b3d4e7c35bc29a08df57909dc173a10212b7cdeec89d3187eccea99c WHIRLPOOL adbcadac2eebc702e0f7e0bc8f23398a010bb624d85bd5e309619c81508ffa868ed1ed33b41d0318770438c9c9dc802bc872b1b6d83c757ed89ae73e81ba106e
+MISC ChangeLog 405 SHA256 ad1abe656ccbf8978dd08ef9ec677ff968c23570cc0873155f01fa3fa0c0c349 SHA512 c34e48095f7b79aaae48e80a8e063cee271909ec4811fcd2b4dfb7cbab17792f01beee301a6e1ad420f03056dfb16e6ab1344de006de5932c8e3b9d3ef0d0b5e WHIRLPOOL 1245cbee18dec8a11b5df826b1832737cea62d7f9634f2fac47bbbea6ac335cad7b90f4090ab3c80b45276a088795118464274ab1dfb1f17e8c619f6e2acdff0
+MISC metadata.xml 308 SHA256 50fae112ecf58347d0435bc2bdda8a4c3c2d1f149150580e721282567ae3f566 SHA512 56928e4d2e10836cbb00599cde3289039290af79486f19c328cbb6959e62df4a2fe122e19e6753a12b4e3cb0c9e61036b2b778e1627020d8bb1d65579e6118f0 WHIRLPOOL 61f8458bb667fe867299537220cefd75bc2fc3901858f432fdd89d01f1027ef0f229608f067005e48a934c1e22481beaa5805ccddc5ad7bb65a011675877021a
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 <QPainter>
+ #include <QPixmap>
+ #include "webpdecoder.h"
+-#include "3rdparty/webp/webp/decode.h"
++#include <webp/decode.h>
+
+ 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..d6b1db7b14c8
--- /dev/null
+++ b/media-gfx/qiviewer/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>pinkbyte@gentoo.org</email>
+ <name>Sergey Popov</name>
+ </maintainer>
+<use>
+ <flag name="webp">Build support for WEBP image format</flag>
+</use>
+</pkgmetadata>
diff --git a/media-gfx/qiviewer/qiviewer-0.5.0.ebuild b/media-gfx/qiviewer/qiviewer-0.5.0.ebuild
new file mode 100644
index 000000000000..d9ec4573b2f2
--- /dev/null
+++ b/media-gfx/qiviewer/qiviewer-0.5.0.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/qiviewer/qiviewer-0.5.0.ebuild,v 1.1 2012/09/07 07:05:48 pinkbyte Exp $
+
+EAPI="4"
+PLOCALES="el es_AR es_ES"
+inherit l10n qt4-r2
+
+DESCRIPTION="Lightweight image viewer, similar to eog or viewnior for Gnome"
+HOMEPAGE="http://code.google.com/p/qiviewer"
+SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="gif tiff webp"
+
+DEPEND="x11-libs/qt-gui:4[gif=,tiff=]
+ webp? ( media-libs/libwebp )"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}/src"
+
+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
+}