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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon Oct 15 07:36:08 2012 UTC (2 years, 2 months ago) by yngwin
Branch: MAIN
Version bump

(Portage version: 2.2.0_alpha138/cvs/Linux x86_64, unsigned Manifest commit)

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.5_beta1.ebuild,v 1.1 2012/10/03 06:50:35 yngwin Exp $
4
5 EAPI=4
6 PLOCALES="ast cs de el es fi fr he hr pt_BR ru sk tr 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 synctex"
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="CHANGES 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 synctex; 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