blob: a47cf485f35431961b44de403201f30c188e811e (
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
71
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils fdo-mime versionator
MY_PV1=$(get_major_version)
MY_PV2=$(get_version_component_range 1-2)
DESCRIPTION="A free PDF document viewer, featuring small size, quick startup, and fast page rendering"
HOMEPAGE="http://www.foxitsoftware.com/pdf/desklinux/"
SRC_URI="http://mirrors.foxitsoftware.com/pub/foxit/reader/desktop/linux/${MY_PV1}.x/${MY_PV2}/enu/${P}.tar.bz2"
LICENSE="${PN}"
SLOT="0"
KEYWORDS="~amd64 ~x86 -*"
IUSE=""
MY_LANGS="de fr ja zh_CN zh_TW"
for MY_LANG in ${MY_LANGS} ; do
IUSE="${IUSE} linguas_${MY_LANG}"
done
RDEPEND="
x86? ( dev-libs/atk
dev-libs/glib:2
media-libs/freetype:2
net-print/cups
x11-libs/cairo
x11-libs/gtk+:2
x11-libs/pango )
amd64? ( app-emulation/emul-linux-x86-baselibs
app-emulation/emul-linux-x86-xlibs
app-emulation/emul-linux-x86-gtklibs )"
S=${WORKDIR}/${MY_PV2}-release
QA_PRESTRIPPED="/opt/FoxitReader/FoxitReader"
src_install() {
insinto /opt/${PN}/po
local my_lang
for my_lang in ${MY_LANGS} ; do
if use linguas_${my_lang} ; then
doins -r po/${my_linguas} || die
fi
done
insinto /opt/${PN}
doins fum.fhd fpdfcjk.bin || die
insopts -m755
doins ${PN} || die
make_wrapper ${PN} ./${PN} /opt/${PN}
doicon "${FILESDIR}"/${PN}.png || die
make_desktop_entry ${PN} ${PN} ${PN} "Application;Office;Viewer;" "MimeType=application/pdf;"
dodoc Readme.txt || die
}
pkg_postinst() {
fdo-mime_mime_database_update
fdo-mime_desktop_database_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
}
|