Post by PaulBredbury »
Code: Select all
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# Ebuild from http://forums.gentoo.org/viewtopic-t-472065.html
inherit eutils
# *CHANGE* *THIS* for your hardware - http://getswiftfox.com/releases.htm
CPU="pentium3"
MY_PN="swiftfox"
MY_PV=${PV/_/}
DESCRIPTION="Optimized binary build of the Mozilla Firefox web browser"
HOMEPAGE="http://getswiftfox.com/"
SRC_URI="http://getswiftfox.com/builds/releases/${PV}/${MY_PN}-${MY_PV}-${CPU}.tar.bz2"
KEYWORDS="~x86"
SLOT="0"
LICENSE="MPL-1.1 NPL-1.1"
IUSE=""
RESTRICT="mirror strip"
RDEPEND="virtual/jre
>=www-client/mozilla-launcher-1.39
>=sys-devel/binutils-2.16.1
>=dev-libs/nss-3.10
>=dev-libs/nspr-4.6.1
~sys-devel/autoconf-2.13
!www-client/swiftfox"
DEPEND="${RDEPEND}
>=dev-java/java-config-0.2.0"
S=${WORKDIR}/${MY_PN}
dir=/opt/${MY_PN}
pkg_setup() {
elog "Using CPU: ${CPU}"
}
src_install() {
insinto "${dir}"
exeinto "${dir}"
doins -r * || die "doins -r failed"
rm -f "${D}/${dir}"/{${MY_PN}{,-bin},updater,run-mozilla.sh} || die
doexe {${MY_PN}{,-bin},updater,run-mozilla.sh} || die
local i
for i in "" "-bin" ; do
if [[ -e "firefox${i}" ]] ; then
if $(diff -q {swiftfox,firefox}${i}) ; then
# Files are identical, so symlink them.
einfo "Symlinking firefox${i} to swiftfox${i}"
# Link is necessary because setting Swiftfox as the default
# browser using Swiftfox's preferences, sets the command
# in Gnome's "Preferred Applications" to:
# /opt/swiftfox/firefox "%s"
dosym /opt/${MY_PN}/{${MY_PN},firefox}${i} || die
else
rm -f "${D}/${dir}/firefox${i}" || die
doexe "firefox${i}" || die
fi
fi
done
dodir /opt/bin
dosym /opt/${MY_PN}/firefox /opt/bin/${MY_PN} || die
newicon icons/icon48.png ${MY_PN}.xpm || die "newicon failed"
make_desktop_entry ${MY_PN} "Swiftfox" ${MY_PN}.xpm "Application;Network"
}
pkg_postinst() {
elog "Test Java at:"
elog " http://www.java.com/en/download/help/testvm.xml"
elog "If it does not work after following the Gentoo Java upgrade guide:"
elog " http://www.gentoo.org/proj/en/java/java-upgrade.xml"
elog "Then run as your normal user e.g.:"
elog " mkdir -p ~/.mozilla/plugins"
elog " ln -sfn /usr/lib/nsbrowser/plugins/javaplugin.so ~/.mozilla/plugins/"
echo
}banned from #gentoo since sept 2017Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
Post by PaulBredbury »
banned from #gentoo since sept 2017Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
mounting filesystems dynamically in ram... of course you wouldn't be able to write permanent changes to the directory, but its faster than reading it all from disk.zenlunatic wrote:wtf is a ram drive?
banned from #gentoo since sept 2017Neddyseagoon wrote:The problem with leaving is that you can only do it once and it reduces your influence.
Post by codergeek42 »
Post by PaulBredbury »
Well, of course it can be done in an ebuild.codergeek42 wrote:Would someone please explain to me how that's different than emerging firefox with proper CFLAGS set?
Post by greasy_grasshopper »
It seems from what I read, that the obvious difference is that it's an already compiled binary. You might get the the same results by compiling it yourself (which would take a lot of time). And people using binary distros can also benefit from it.Zepp wrote:I was wondering the same thing...codergeek42 wrote:So these are binaries built specifically for a certain processor...Would someone please explain to me how that's different than emerging firefox with proper CFLAGS set?
Post by PaulBredbury »
Post by jmbsvicetto »
Post by Gergan Penkov »
Post by whitesouls »
any way to easily avoid all this when building it from source (ebuild preferred)? :DGergan Penkov wrote:it is faster, because of
1. using static build probably against older gtk+,
2. does not enable pango, which causes major headaches for many people - on gentoo this could be disabled only at run-time, but could not be omitted in the build, as mozilla has not patched this issue for a very long time although they knew that it slows seriously down the browser for some of the users (and in fact the original source could not be built at all without patches with newer gtk+ versions and the most used patch is to link against pango, which in turn makes the browser slower for some)
3. does not enable cairo (which was required for the enable-official-branding on gentoo)
and uses insane cxx-flags
Post by Gergan Penkov »
MOZ_DISABLE_PANGO=1 firefox
Post by circus-killer »
Post by PaulBredbury »
Well, I do. It's noticeable, so the difference is not some tiny percentage, and I like speed increases which have no apparent drawback. It's been rock-solid for me for the past few days.circus-killer wrote:honestly, i dont see the speed difference being all that drastic.
Return to "Unsupported Software"