summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /media-gfx/qiviewer
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'media-gfx/qiviewer')
-rw-r--r--media-gfx/qiviewer/Manifest1
-rw-r--r--media-gfx/qiviewer/files/qiviewer-use-system-webp.patch41
-rw-r--r--media-gfx/qiviewer/metadata.xml12
-rw-r--r--media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild60
4 files changed, 114 insertions, 0 deletions
diff --git a/media-gfx/qiviewer/Manifest b/media-gfx/qiviewer/Manifest
new file mode 100644
index 000000000000..f9de04612ee4
--- /dev/null
+++ b/media-gfx/qiviewer/Manifest
@@ -0,0 +1 @@
+DIST qiviewer-0.5.0.tar.bz2 177201 SHA256 99d997ea1b05187794c14773402215178d3a21198231edd95f309badbb73010d SHA512 f9a75020085576f28b1e38e12a0e69d4b5efbedca5602ad1b47583a220eb50f6967f87764658b1d38ac696ed45134d580d3971c1d791a3156f28c55dceaa7fc7 WHIRLPOOL a9a808b22f11d111bfcb1d38ea099e3a95932982387b17f204d5ee7dc85562421057398fa99cab08110075a16f8ef443186a4189cc106b003367c35d58899cf7
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..ca0e4aca4059
--- /dev/null
+++ b/media-gfx/qiviewer/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+ <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-r1.ebuild b/media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild
new file mode 100644
index 000000000000..1921592e042b
--- /dev/null
+++ b/media-gfx/qiviewer/qiviewer-0.5.0-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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="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="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
+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
+}