If any of you would like to compile your own these are some tips:
first get the latest "nightly" mozilla source. Then extract it to wherever u like i.e /usr/src and will give a dir /usr/src/mozilla from /usr/src run
Code: Select all
cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/browser mozilla/toolkitCode: Select all
export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --enable-crypto
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-mailnews
ac_add_options --disable-composerCode: Select all
export MOZ_PHOENIX=1
mk_add_options MOZ_PHOENIX=1
ac_add_options --disable-composer
ac_add_options --with-x
ac_add_options --with-system-jpeg
ac_add_options --with-system-zlib
ac_add_options --with-system-png
ac_add_options --with-system-mng
ac_add_options --disable-mailnews
ac_add_options --enable-xft
ac_add_options --disable-pedantic
ac_add_options --disable-svg
ac_add_options --enable-mathml
ac_add_options --without-system-nspr
ac_add_options --enable-nspr-autoconf
ac_add_options --disable-ipv6
ac_add_options --enable-xsl
ac_add_options --enable-crypto
ac_add_options --enable-xinerama=no
ac_add_options --with-java-supplement
ac_add_options --with-pthreads
ac_add_options --with-default-mozilla-five-home=/usr/lib/phoenix
ac_add_options --with-user-appdir=.phoenix
ac_add_options --disable-jsd
ac_add_options --disable-accessibility
ac_add_options --disable-tests
ac_add_options --disable-debug
ac_add_options --disable-dtd-debug
ac_add_options --disable-logging
ac_add_options --enable-reorder
ac_add_options --enable-strip
ac_add_options --enable-strip-libs
ac_add_options --enable-cpp-rtti
ac_add_options --enable-xterm-updates
ac_add_options --enable-toolkit-gtk
ac_add_options --enable-default-toolkit=gtk
ac_add_options --disable-toolkit-qt
ac_add_options --disable-toolkit-xlib
ac_add_options --disable-toolkit-gtk2
ac_add_options --disable-ldap
ac_add_options --enable-old-abi-compat-wrappers
and make.
btw you can create a simple bash script for this: this is mine
Code: Select all
#!/bin/bash
cvs up -Pd browser and toolkit
#cvs -d :pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/browser mozilla/toolkit
export S=/usr/src/use/mozilla
export MOZ_PHOENIX=1
export MOZ_CALENDAR=0
export MOZ_ENABLE_XFT=1
export CFLAGS="-Os -march=pentium3 -pipe -s -fforce-addr"
export CXXFLAGS="-Os -march=pentium3 -pipe -s -fforce-addr -Wno-deprecated"
./configure --prefix=/usr/lib/phoenix
make -j2
#cd $S/security/coreconf
#cp headers.mk headers.mk.orig
#echo 'INCLUDES += -I$(DIST)/include/nspr -I$(DIST)/include/dbm' >>headers.mk
#make -j2
#cd $S/security/nss
# make -j2 moz_import
# make -j2
#cd ${S}/extensions/ipc
# make -j2
#cd ${S}/extensions/enigmail
# make -j2
Oh i almost forgot, u might notice from the screen shot under preferences, the fonts are named quite different way, this is because this source uses xft2 so u need to unmask xft and install it first and yeah it uses xft2 and all the fonts are AA'ed by default, u dont have to mess with unix.js even
Code: Select all
pref("font.FreeType2.enable", true/false);FAQ:
Q:can i use gtk2 widget?
A:U can try, i tried this prior to gtk1 but it failed, i think it needs gtk-2.1 but i dont want to break my gtk2 yet. u might have to chance these lines in .mozconfig
Code: Select all
ac_add_options --enable-toolkit-gtk2
ac_add_options --enable-default-toolkit=gtk2
ac_add_options --disable-toolkit-gtkA:How long does mozilla take? almost the same, unless u add some extensions or something else.
Q:Phoenix doesnt recognise my mozilla plugin.
A:yes it wont find them if all the plugins are installed/linked to /usr/lib/mozilla/plugins or $MOZILLA_FIVE_HOME/plugins generally. But it will find any plugin in ~/.mozilla/plugins and u can also install/link to /usr/lib/phoenix/lib/mozilla-1.2b/plugins. btw you wont be needing mozilla after this.
ok that's it for now, sorry for my bad presentation.
Edit:::
Ebuild;
Code: Select all
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
filter-flags "-fomit-frame-pointer"
inherit flag-o-matic gcc makeedit
MY_PN=${PN/_}
S=${WORKDIR}/mozilla
DESCRIPTION="The Phoenix Web Browser"
SRC_URI="ftp://ftp.mozilla.org/pub/mozilla/nightly/latest/mozilla-source.tar.gz"
HOMEPAGE="http://www.mozilla.org/projects/phoenix/"
KEYWORDS="~x86 ~ppc ~sparc ~sparc64"
SLOT="0"
LICENSE="MPL-1.1 | NPL-1.1"
RDEPEND=">=x11-base/xfree-4.2.0-r11
>=gnome-base/ORBit-0.5.10-r1
>=dev-libs/libIDL-0.8.0
>=sys-libs/zlib-1.1.4
>=media-libs/jpeg-6b
>=media-libs/libpng-1.2.1
>=sys-apps/portage-2.0.14
>=x11-libs/xft-2.0
dev-util/cvs
dev-libs/expat
app-arch/zip
app-arch/unzip
( gtk2? >=x11-libs/gtk+-2.0.9 :
=x11-libs/gtk+-1.2* )
( gtk2? >=dev-libs/glib-2.0.6 :
=dev-libs/glib-1.2* )
!gtk2? ( >=media-libs/fontconfig-2.0-r3 )
java? ( virtual/jre )"
DEPEND="${RDEPEND}
virtual/x11
dev-util/pkgconfig
sys-devel/perl
java? ( >=dev-java/java-config-0.2.0 )"
# needed by src_compile() and src_install()
export MOZ_PHOENIX=1
export MOZ_CALENDAR=0
export MOZ_ENABLE_XFT=1
if [ -n "`use svg`" ] ; then
export MOZ_INTERNAL_LIBART_LGPL=1
fi
src_unpack() {
unpack ${A}
cd ${S}/../
cvs -d:pserver:anonymous@cvs-mirror.mozilla.org:/cvsroot checkout mozilla/browser mozilla/toolkit
cd ${S}
chown -R root.root *
}
src_compile() {
local myconf="--disable-composer \
--disable-mailnews \
--disable-calender \
--enable-extension=default,-irc,-venkman,-inspector,-wallet \
--disable-ldap \
--with-x \
--with-system-zlib \
--disable-short-wchar \
--without-mng \
--enable-xft \
--disable-pedantic \
--enable-mathml \
--without-system-nspr \
--enable-nspr-autoconf \
--enable-xsl \
--enable-crypto \
--enable-xinerama=no \
--with-java-supplement \
--with-pthreads \
--with-default-mozilla-five-home=/usr/lib/phoenix \
--with-user-appdir=.phoenix \
--disable-jsd \
--disable-accessibility \
--disable-tests \
--disable-debug \
--disable-dtd-debug \
--disable-reorder \
--enable-strip \
--enable-strip-libs \
--enable-cpp-rtti \
--disable-xterm-updates"
if [ -n "`use gtk2`" ] ; then
myconf="${myconf} --enable-toolkit-gtk2 \
--enable-default-toolkit=gtk2 \
--disable-toolkit-qt \
--disable-toolkit-xlib \
--disable-toolkit-gtk \
--enable-logging"
else
myconf="${myconf} --enable-toolkit-gtk \
--enable-default-toolkit=gtk \
--disable-toolkit-qt \
--disable-toolkit-xlib \
--disable-toolkit-gtk2 \
--disable-logging"
fi
if [ -n "`use ipv6`" ] ; then
myconf="${myconf} --enable-ipv6"
fi
if [ "${ARCH}" = "x86" ] ; then
myconf="${myconf} --enable-old-abi-compat-wrappers"
fi
if [ "${ARCH}" = "sparc" ] ; then
myconf="${myconf} --enable-js-ultrasparc"
fi
if [ -n "`use svg`" ] ; then
myconf="${myconf} --enable-svg"
fi
export MAKE="emake"
export CXXFLAGS="${CXXFLAGS} -Wno-deprecated"
cd ${S}
einfo "Configuring Mozilla..."
./configure --prefix=/usr/lib/phoenix \
${myconf} || die
edit_makefiles
emake MOZ_PHOENIX=1 || die
}
src_install() {
dodir /usr/lib/phoenix
cp -RL --no-preserve=links ${S}/dist/bin/* ${D}/usr/lib/phoenix
touch ${S}/phoenix
echo "#!/bin/bash" >>${S}/phoenix
echo "MOZILLA_FIVE_HOME=/usr/lib/phoenix /usr/lib/phoenix/phoenix" > ${S}/phoenix
chmod +x ${S}/phoenix
dobin ${S}/phoenix
dodir /usr/lib/nsbrowser/plugins
mv ${D}/usr/lib/phoenix/plugins /${D}usr/lib/phoenix/plugins.temp
dosym ../nsbrowser/plugins /usr/lib/phoenix/
mv ${D}/usr/lib/phoenix/plugins.temp/* ${D}/usr/lib/phoenix/plugins/
rmdir ${D}/usr/lib/phoenix/plugins.temp
}
pkg_preinst() {
[ -d /usr/lib/phoenix/plugins ] && rm -r /usr/lib/phoenix/plugins
} 



