Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

new foxitreader for linux

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
9 posts • Page 1 of 1
Author
Message
beizhuchun
n00b
n00b
Posts: 29
Joined: Thu Apr 11, 2013 7:11 am

new foxitreader for linux

  • Quote

Post by beizhuchun » Fri Jun 03, 2016 5:22 pm

Can anyone write a ebuild for new foxitreader.
The package for x32 or x64 linux can download from https://www.foxitsoftware.com/downloads/
Top
charles17
Advocate
Advocate
Posts: 3686
Joined: Sun Mar 02, 2008 3:20 pm

  • Quote

Post by charles17 » Sat Jun 04, 2016 6:41 am

Try http://gpo.zugaina.org/Search?search=foxitreader
Top
beizhuchun
n00b
n00b
Posts: 29
Joined: Thu Apr 11, 2013 7:11 am

  • Quote

Post by beizhuchun » Sat Jun 04, 2016 10:43 am

charles17 wrote:Try http://gpo.zugaina.org/Search?search=foxitreader
This is for old foxitreader, not for new foxitreader.
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Jun 04, 2016 5:19 pm

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.
Top
beizhuchun
n00b
n00b
Posts: 29
Joined: Thu Apr 11, 2013 7:11 am

  • Quote

Post by beizhuchun » Mon Jun 06, 2016 5:07 am

Hu 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.
https://www.foxitsoftware.com/products/ ... arison.php

https://www.foxitsoftware.com/products/pdf-reader/

click the free download, you can choice linux(64bit)

https://www.foxitsoftware.com/downloads ... ge=English
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Tue Jun 07, 2016 1:43 am

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.
Top
beizhuchun
n00b
n00b
Posts: 29
Joined: Thu Apr 11, 2013 7:11 am

  • Quote

Post by beizhuchun » Tue Jun 07, 2016 3:34 am

Hu 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.
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 it

Code: Select all

./FoxitReader.enu.setup.1.1.0.0225(r205262).x64.run
, and follow step by step. It work fine, but can not be maintained with portage.
Top
Hu
Administrator
Administrator
Posts: 24403
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Wed Jun 08, 2016 1:39 am

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.
Top
beizhuchun
n00b
n00b
Posts: 29
Joined: Thu Apr 11, 2013 7:11 am

  • Quote

Post by beizhuchun » Tue Feb 07, 2017 1:57 pm

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
}
Top
Post Reply

9 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic