summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2014-09-24 09:48:17 +0000
committerBen de Groot <yngwin@gentoo.org>2014-09-24 09:48:17 +0000
commit3d7f8066f04f043d0c2528ed7edfc51b82052594 (patch)
tree0fee4c19661151e98383cf3367b6c3b8c78dbc62 /app-text
parentStable for x86, wrt bug #513278 (diff)
downloadgentoo-2-3d7f8066f04f043d0c2528ed7edfc51b82052594.tar.gz
gentoo-2-3d7f8066f04f043d0c2528ed7edfc51b82052594.tar.bz2
gentoo-2-3d7f8066f04f043d0c2528ed7edfc51b82052594.zip
Version bump. Thanks to Alpha Bravo in bug #506068 for ebuild improvements.
(Portage version: 2.2.13/cvs/Linux x86_64, signed Manifest commit with key 0x0F9C590B7FF324F6!)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/qpdfview/ChangeLog8
-rw-r--r--app-text/qpdfview/metadata.xml9
-rw-r--r--app-text/qpdfview/qpdfview-0.4.11.1.ebuild84
3 files changed, 96 insertions, 5 deletions
diff --git a/app-text/qpdfview/ChangeLog b/app-text/qpdfview/ChangeLog
index 43af3c9c4530..13cb184b3b1d 100644
--- a/app-text/qpdfview/ChangeLog
+++ b/app-text/qpdfview/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-text/qpdfview
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/qpdfview/ChangeLog,v 1.55 2014/01/16 09:56:33 kensington Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/qpdfview/ChangeLog,v 1.56 2014/09/24 09:48:17 yngwin Exp $
+
+*qpdfview-0.4.11.1 (24 Sep 2014)
+
+ 24 Sep 2014; Ben de Groot <yngwin@gentoo.org> +qpdfview-0.4.11.1.ebuild,
+ metadata.xml:
+ Version bump. Thanks to Alpha Bravo in bug #506068 for ebuild improvements.
16 Jan 2014; Michael Palimaka <kensington@gentoo.org> -qpdfview-0.4.4.ebuild,
-qpdfview-0.4.6.ebuild:
diff --git a/app-text/qpdfview/metadata.xml b/app-text/qpdfview/metadata.xml
index 308b440ab45d..afb40c4ea3c4 100644
--- a/app-text/qpdfview/metadata.xml
+++ b/app-text/qpdfview/metadata.xml
@@ -1,8 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <herd>qt</herd>
- <use>
- <flag name='synctex'>Add support for searching TeX sources</flag>
- </use>
+ <herd>qt</herd>
+ <use>
+ <flag name='fitz'>Use experimental fitz rendering instead of poppler</flag>
+ <flag name='synctex'>Add support for searching TeX sources</flag>
+ </use>
</pkgmetadata>
diff --git a/app-text/qpdfview/qpdfview-0.4.11.1.ebuild b/app-text/qpdfview/qpdfview-0.4.11.1.ebuild
new file mode 100644
index 000000000000..a3f89989cda4
--- /dev/null
+++ b/app-text/qpdfview/qpdfview-0.4.11.1.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/qpdfview/qpdfview-0.4.11.1.ebuild,v 1.1 2014/09/24 09:48:17 yngwin Exp $
+
+EAPI=5
+
+PLOCALES="ast az bg bs ca cs da de el en_GB eo es eu fi fr gl he hr id it kk ko ky lt ms my pl pt pt_BR ro ru sk sv tr ug uk vi zh_CN"
+inherit eutils l10n multilib qmake-utils
+
+DESCRIPTION="A tabbed document viewer"
+HOMEPAGE="http://launchpad.net/qpdfview"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86 ~amd64-linux ~x86-linux"
+IUSE="cups dbus djvu fitz +pdf postscript +qt4 qt5 sqlite +svg synctex"
+
+REQUIRED_USE="^^ ( qt4 qt5 )
+ ?? ( fitz pdf )"
+
+RDEPEND="cups? ( net-print/cups )
+ djvu? ( app-text/djvu )
+ fitz? ( app-text/mupdf:0/1.4 )
+ postscript? ( app-text/libspectre )
+ qt4? ( dev-qt/qtcore:4[iconv]
+ dev-qt/qtgui:4
+ dbus? ( dev-qt/qtdbus:4 )
+ pdf? ( app-text/poppler[qt4] )
+ sqlite? ( dev-qt/qtsql:4[sqlite] )
+ svg? ( dev-qt/qtsvg:4 ) )
+ qt5? ( dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dbus? ( dev-qt/qtdbus:5 )
+ pdf? ( >=app-text/poppler-0.26.4[qt5] )
+ sqlite? ( dev-qt/qtsql:5[sqlite] )
+ svg? ( dev-qt/qtsvg:5 ) )
+ !svg? ( virtual/freedesktop-icon-theme )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS=( CHANGES CONTRIBUTORS README TODO )
+
+src_prepare() {
+ prepare_locale() {
+ lrelease "translations/${PN}_${1}.ts" || die "preparing ${1} locale failed"
+ }
+
+ rm_help() {
+ if [[ -e "miscellaneous/help_${1}.html" ]]; then
+ rm "miscellaneous/help_${1}.html" || die "removing extraneous help files failed"
+ fi
+ }
+
+ l10n_find_plocales_changes "translations" "${PN}_" '.ts'
+ l10n_for_each_locale_do prepare_locale
+ l10n_for_each_disabled_locale_do rm_help
+ # adapt for prefix
+ sed -i -e "s:/usr:${EPREFIX}/usr:g" qpdfview.pri || die
+}
+
+src_configure() {
+ local config i
+ for i in cups dbus pdf djvu svg synctex ; do
+ if ! use ${i} ; then
+ config+=" without_${i}"
+ fi
+ done
+
+ use fitz && config+=" with_fitz"
+ use postscript || config+=" without_ps"
+ use sqlite || config+=" without_sql"
+
+ if use qt4 ; then
+ eqmake4 CONFIG+="${config}" PLUGIN_INSTALL_PATH="${EPREFIX}/usr/$(get_libdir)/${PN}"
+ else
+ eqmake5 CONFIG+="${config}" PLUGIN_INSTALL_PATH="${EPREFIX}/usr/$(get_libdir)/${PN}" qpdfview.pro
+ fi
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" "$@" install
+ einstalldocs
+}