summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen de Groot <yngwin@gentoo.org>2012-07-24 09:32:16 +0000
committerBen de Groot <yngwin@gentoo.org>2012-07-24 09:32:16 +0000
commit4910c68da2598c0927d35b606b8917f6f1a0cc87 (patch)
tree82da7a1de6cba5b380fb2a49fb811b3f55b3a297
parentApply user patches. (diff)
downloadgentoo-2-4910c68da2598c0927d35b606b8917f6f1a0cc87.tar.gz
gentoo-2-4910c68da2598c0927d35b606b8917f6f1a0cc87.tar.bz2
gentoo-2-4910c68da2598c0927d35b606b8917f6f1a0cc87.zip
Version bump. Handle localizations properly.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
-rw-r--r--app-text/qpdfview/ChangeLog7
-rw-r--r--app-text/qpdfview/qpdfview-0.3.2_beta2.ebuild52
2 files changed, 58 insertions, 1 deletions
diff --git a/app-text/qpdfview/ChangeLog b/app-text/qpdfview/ChangeLog
index 9d42677aa890..9a5200c80cbf 100644
--- a/app-text/qpdfview/ChangeLog
+++ b/app-text/qpdfview/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-text/qpdfview
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/qpdfview/ChangeLog,v 1.11 2012/07/17 05:50:27 yngwin Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/qpdfview/ChangeLog,v 1.12 2012/07/24 09:32:16 yngwin Exp $
+
+*qpdfview-0.3.2_beta2 (24 Jul 2012)
+
+ 24 Jul 2012; Ben de Groot <yngwin@gentoo.org> +qpdfview-0.3.2_beta2.ebuild:
+ Version bump. Handle localizations properly.
*qpdfview-0.3.2_beta1 (17 Jul 2012)
diff --git a/app-text/qpdfview/qpdfview-0.3.2_beta2.ebuild b/app-text/qpdfview/qpdfview-0.3.2_beta2.ebuild
new file mode 100644
index 000000000000..2e34107d79b6
--- /dev/null
+++ b/app-text/qpdfview/qpdfview-0.3.2_beta2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/qpdfview/qpdfview-0.3.2_beta2.ebuild,v 1.1 2012/07/24 09:32:16 yngwin Exp $
+
+EAPI=4
+PLOCALES="cs de ru sk"
+inherit l10n qt4-r2
+
+DESCRIPTION="A tabbed PDF viewer using the poppler library"
+HOMEPAGE="http://launchpad.net/qpdfview"
+SRC_URI="https://launchpad.net/${PN}/trunk/${PV/_}/+download/${P/_}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="cups dbus svg"
+
+RDEPEND="app-text/poppler[qt4]
+ x11-libs/qt-core:4[iconv]
+ x11-libs/qt-gui:4
+ cups? ( net-print/cups )
+ dbus? ( x11-libs/qt-dbus:4 )
+ svg? ( x11-libs/qt-svg:4 )"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+DOCS="CONTRIBUTORS README TODO"
+
+S=${WORKDIR}/${P/_}
+
+src_prepare() {
+ l10n_for_each_disabled_locale_do rm_loc
+}
+
+src_configure() {
+ local config i
+
+ for i in cups dbus svg ; do
+ if ! use ${i} ; then
+ config+=" without_${i}"
+ fi
+ done
+
+ eqmake4 CONFIG+="${config}"
+}
+
+rm_loc() {
+ einfo "Removing ${1} localization..."
+ sed -e "s;translations/${PN}_${1}.ts;;" \
+ -i ${PN}.pro
+ rm translations/${PN}_${1}.{qm,ts}
+}