Can anyone write a ebuild for new foxitreader.
The package for x32 or x64 linux can download from https://www.foxitsoftware.com/downloads/


This is for old foxitreader, not for new foxitreader.charles17 wrote:Try http://gpo.zugaina.org/Search?search=foxitreader

https://www.foxitsoftware.com/products/ ... arison.phpHu wrote:Aside from being a proprietary blob only available for IA32, what is wrong with that ebuild? It looks like the ebuild version number is used to derive the version number of the blob to download, so it should be able to track upstream automatically by renaming the ebuild accordingly. Has upstream changed their pattern for download URLs? You said that there is an x64 version available. Could you provide a link to it? None of the download links on the cited page work (<a> tag without an href), and the existing ebuilds seem to assume that upstream only provides an x86 version, but not an x32 or amd64 version.

you need wait a while after clicking the free download, it will popup a windows for download. I have downloaded it, and installed following the installation guide, just run itHu wrote:I clicked the Free Download box. As before on the other page, nothing happens because that is not a valid link.
The direct download link is rather odd. It points to a .tar.gz, which contains only one file: FoxitReader.enu.setup.1.1.0.0225(r205262).x64.run: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.24, BuildID[sha1]=2cd6749eaa4bb719e705909622c29b5045c2a641, not stripped. This does not appear to be what the existing ebuilds are designed to work on. I do not see any instructions on that page about how to use this file and I am not about to run an unsigned closed source program in hopes that it does something good.
If you can point us to instructions on how the user is expected to convert FoxitReader.enu.setup.1.1.0.0225(r205262).x64.run into a working installation, we can try to help you write an ebuild to automate those steps. Otherwise, I would suggest that you use one of the PDF readers already maintained in the main Portage tree, many of which are open source.
Code: Select all
./FoxitReader.enu.setup.1.1.0.0225(r205262).x64.run
Hu wrote:As I said, Free Download is not a valid link. It is an anchor with no href. If it behaves as you describe, then someone is doing something stupid with JavaScript.
You wrote installation guide in bold, but did not link to one. Is there one? The minimal instructions you included in your post make it sound like this setup package is inherently unsuitable for use with an automated package manager. If you want to manage this with Portage, you need a non-interactive installer. Some interactive installers can be made non-interactive with an appropriate set of scripted answers. Unfortunately, since I cannot obtain the source to that installer, I will not run it, so I cannot see what questions it might ask. Without knowing those questions and some basic information about how it receives the answers, I cannot help you to write an ebuild to work around this strange installation mechanism.
Code: Select all
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
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="https://www.foxitsoftware.cn/downloads/"
SRC_URI="http://cdn07.foxitsoftware.cn/pub/foxit/reader/desktop/linux/2.x/2.3/en_us/FoxitReader${PV}_Server_x64_enu_Setup.run.tar.gz"
LICENSE="${PN}"
SLOT="0"
KEYWORDS="amd64 -*"
IUSE=""
MY_LANGS="de fr ja zh_CN zh_TW"
for MY_LANG in ${MY_LANGS} ; do
IUSE="${IUSE} linguas_${MY_LANG}"
done
RDEPEND="
dev-libs/atk
dev-libs/glib:2
media-libs/freetype:2
net-print/cups
x11-libs/cairo
x11-libs/gtk+:2
x11-libs/pango
"
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 FoxitReader || die
make_wrapper ${PN} ./FoxitReader /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
}