summaryrefslogtreecommitdiff
path: root/app-text/foxitreader
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
commit7224c1253228e5c29c78cb3f0f26ce34770f2356 (patch)
tree1684924656132935256e034f35f92abee6623265 /app-text/foxitreader
Added ebuilds for kogaion desktop
Diffstat (limited to 'app-text/foxitreader')
-rw-r--r--app-text/foxitreader/Manifest1
-rw-r--r--app-text/foxitreader/files/foxitreader.desktop22
-rw-r--r--app-text/foxitreader/files/foxitreader.pngbin0 -> 4820 bytes
-rw-r--r--app-text/foxitreader/foxitreader-1.1.0.ebuild59
-rw-r--r--app-text/foxitreader/metadata.xml5
5 files changed, 87 insertions, 0 deletions
diff --git a/app-text/foxitreader/Manifest b/app-text/foxitreader/Manifest
new file mode 100644
index 00000000..e17fc279
--- /dev/null
+++ b/app-text/foxitreader/Manifest
@@ -0,0 +1 @@
+DIST FoxitReader-1.1.0.tar.bz2 3787587 SHA256 02f1ad5ad2fd516754254f349c94b8e81b57b9eb2a0315f30debdc5d7fb8dbf4
diff --git a/app-text/foxitreader/files/foxitreader.desktop b/app-text/foxitreader/files/foxitreader.desktop
new file mode 100644
index 00000000..01958137
--- /dev/null
+++ b/app-text/foxitreader/files/foxitreader.desktop
@@ -0,0 +1,22 @@
+[Desktop Entry]
+Encoding=UTF-8
+Version=1.0
+Name=Foxit Reader
+Name[zh_CN]=福昕阅读器
+Name[zh_HK]=福昕閱讀器
+Name[zh_TW]=福昕閱讀器
+GenericName=PDF Reader
+GenericName[zh_CN]=PDF阅读器
+GenericName[zh_HK]=PDF閱讀器
+GenericName[zh_TW]=PDF閱讀器
+Comment=Read PDF Document
+Comment[zh_CN]=阅读PDF文档
+Comment[zh_HK]=閱讀PDF文件
+Comment[zh_TW]=閱讀PDF文件
+Exec=foxitreader %U
+Icon=foxitreader
+Terminal=false
+Type=Application
+StartupNotify=true
+Categories=Application;Office;Viewer;
+MimeType=application/pdf;application/x-bzpdf;application/x-gzpdf;
diff --git a/app-text/foxitreader/files/foxitreader.png b/app-text/foxitreader/files/foxitreader.png
new file mode 100644
index 00000000..85f8b1b4
--- /dev/null
+++ b/app-text/foxitreader/files/foxitreader.png
Binary files differ
diff --git a/app-text/foxitreader/foxitreader-1.1.0.ebuild b/app-text/foxitreader/foxitreader-1.1.0.ebuild
new file mode 100644
index 00000000..70706f77
--- /dev/null
+++ b/app-text/foxitreader/foxitreader-1.1.0.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="2"
+
+inherit eutils versionator
+
+MY_PN="FoxitReader"
+MY_P="${MY_PN}-${PV}"
+
+SRC_BASE="cdn04.foxitsoftware.com/pub/foxit/reader/desktop/linux/"
+DESCRIPTION="Foxit Reader for desktop Linux"
+HOMEPAGE="http://www.foxitsoftware.com/pdf/desklinux"
+SRC_URI="${SRC_BASE}/$(get_major_version).x/$(get_version_component_range 1-2)/enu/${MY_P}.tar.bz2"
+
+LICENSE="Foxit-EULA"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+LANGS="de fr ja zh_CN zh_TW"
+for X in ${LANGS} ; do
+ IUSE="${IUSE} linguas_${X}"
+done
+
+DEPEND=""
+RDEPEND="
+ amd64? ( app-emulation/emul-linux-x86-xlibs
+ app-emulation/emul-linux-x86-gtklibs )
+ x86? ( media-libs/freetype:2
+ >=x11-libs/gtk+-2.12 )"
+
+S="${WORKDIR}/$(get_version_component_range 1-2)-release"
+RESTRICT="mirror strip"
+
+src_install() {
+ mv "${S}"/Readme.txt "${WORKDIR}"/README
+ dodoc "${WORKDIR}"/README
+
+ ebegin "Installing package"
+ for X in ${LANGS} ; do
+ if use linguas_${X} ; then
+ insinto /usr/share/locale/${X}/LC_MESSAGES
+ doins "${S}"/po/${X}/${MY_PN}.mo \
+ || die "failed to install languages files"
+ fi
+ done
+ rm -R "${S}"/po
+
+ insinto /opt/${PN}
+ doins "${S}"/* || die "failed to install program files"
+ fperms 0755 /opt/${PN}/${MY_PN}
+ eend $? || die "failed to install package"
+
+ doicon "${FILESDIR}"/${PN}.png
+ domenu "${FILESDIR}"/${PN}.desktop
+
+ make_wrapper ${PN} /opt/${PN}/${MY_PN}
+}
diff --git a/app-text/foxitreader/metadata.xml b/app-text/foxitreader/metadata.xml
new file mode 100644
index 00000000..1fa0ca56
--- /dev/null
+++ b/app-text/foxitreader/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>printing</herd>
+</pkgmetadata>