/[gentoo-x86]/app-text/qpdfview/qpdfview-0.3.4.ebuild
Gentoo

Contents of /app-text/qpdfview/qpdfview-0.3.4.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Wed Oct 17 03:40:38 2012 UTC (2 years, 2 months ago) by phajdan.jr
Branch: MAIN
Changes since 1.2: +2 -2 lines
x86 stable wrt bug #437044

(Portage version: 2.1.11.9/cvs/Linux i686)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/qpdfview/qpdfview-0.3.4.ebuild,v 1.2 2012/10/03 12:51:43 ago Exp $
4
5 EAPI=4
6 PLOCALES="cs de el pt_BR ru sk uk"
7 inherit l10n qt4-r2
8
9 DESCRIPTION="A tabbed PDF viewer using the poppler library"
10 HOMEPAGE="http://launchpad.net/qpdfview"
11 SRC_URI="https://launchpad.net/${PN}/trunk/${PV/_}/+download/${P/_}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="0"
15 KEYWORDS="amd64 ~arm x86"
16 IUSE="cups dbus svg"
17
18 RDEPEND="app-text/poppler[qt4]
19 x11-libs/qt-core:4[iconv]
20 x11-libs/qt-gui:4
21 cups? ( net-print/cups )
22 dbus? ( x11-libs/qt-dbus:4 )
23 svg? ( x11-libs/qt-svg:4 )"
24 DEPEND="${RDEPEND}
25 virtual/pkgconfig"
26
27 DOCS="CONTRIBUTORS README TODO"
28
29 S=${WORKDIR}/${P/_}
30
31 src_prepare() {
32 l10n_for_each_disabled_locale_do rm_loc
33 }
34
35 src_configure() {
36 local config i
37
38 for i in cups dbus svg ; do
39 if ! use ${i} ; then
40 config+=" without_${i}"
41 fi
42 done
43
44 eqmake4 CONFIG+="${config}"
45 }
46
47 rm_loc() {
48 einfo "Removing ${1} localization..."
49 sed -e "s;translations/${PN}_${1}.ts;;" \
50 -i ${PN}.pro || die "sed translations failed"
51 rm translations/${PN}_${1}.{qm,ts} || die "rm translations failed"
52 }

  ViewVC Help
Powered by ViewVC 1.1.20