blob: 20cca643788f56843b82e0bf4d8a21ca62552dec (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/xpdf/xpdf-3.01-r8.ebuild,v 1.14 2006/09/26 13:45:37 geoman Exp $
inherit eutils flag-o-matic
DESCRIPTION="An X Viewer for PDF Files"
HOMEPAGE="http://www.foolabs.com/xpdf/"
SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}-poppler.tar.bz2
linguas_ar? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-arabic-2003-feb-16.tar.gz )
linguas_zh_CN? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-chinese-simplified-2004-jul-27.tar.gz )
linguas_zh_TW? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-chinese-traditional-2004-jul-27.tar.gz )
linguas_ru? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-cyrillic-2003-jun-28.tar.gz )
linguas_el? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-greek-2003-jun-28.tar.gz )
linguas_he? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-hebrew-2003-feb-16.tar.gz )
linguas_ja? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-japanese-2004-jul-27.tar.gz )
linguas_ko? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-korean-2005-jul-07.tar.gz )
linguas_la? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-latin2-2002-oct-22.tar.gz )
linguas_th? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-thai-2002-jan-16.tar.gz )
linguas_tr? ( ftp://ftp.foolabs.com/pub/xpdf/xpdf-turkish-2002-apr-10.tar.gz )"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ppc64 sh sparc x86"
IUSE="nodrm linguas_ar linguas_zh_CN linguas_zh_TW linguas_ru linguas_el
linguas_he linguas_ja linguas_ko linguas_la linguas_th linguas_tr"
RDEPEND=">=app-text/poppler-0.5.1
virtual/motif
|| (
( x11-libs/libX11 x11-libs/libXpm )
virtual/x11
)"
DEPEND="${RDEPEND}"
S=${WORKDIR}/${P}-poppler
src_unpack() {
unpack ${A}
cd "${S}"
use nodrm && epatch "${FILESDIR}"/${P}-poppler-nodrm.patch
epatch "${FILESDIR}"/${P}-poppler-0.5.1.patch
}
src_install() {
dobin xpdf
doman xpdf.1 ${FILESDIR}/xpdfrc.5
insinto /etc
newins ${FILESDIR}/sample-xpdfrc xpdfrc
dodoc README ANNOUNCE CHANGES
use linguas_ar && install_lang turkish
use linguas_zh_CN && install_lang chinese-simplified
use linguas_zh_TW && install_lang chinese-traditional
use linguas_ru && install_lang cyrillic
use linguas_el && install_lang greek
use linguas_he && install_lang hebrew
use linguas_ja && install_lang japanese
use linguas_ko && install_lang korean
use linguas_la && install_lang latin2
use linguas_th && install_lang thai
use linguas_tr && install_lang turkish
}
install_lang() {
cd ../xpdf-$1
sed 's,/usr/local/share/xpdf/,/usr/share/xpdf/,g' add-to-xpdfrc >> ${D}/etc/xpdfrc
insinto /usr/share/xpdf/$1
doins -r *.unicodeMap *ToUnicode CMap
}
|