[Lunar-commits] CVS: moonbase/web/mozilla BUILD, NONE,
1.19.2.1 CONFIGURE, NONE, 1.15.2.1 CONFLICTS, NONE,
1.2.2.1 DEPENDS, NONE, 1.13.2.1 DETAILS, NONE,
1.21.2.1 POST_INSTALL, NONE, 1.7.2.1 POST_REMOVE, NONE,
1.3.2.1 PRE_BUILD, NONE, 1.5.2.1
Nick Hudson
nhudson at lunar-linux.org
Sun Feb 15 00:33:09 GMT 2004
Update of /var/cvs/lunar/moonbase/web/mozilla
In directory dbguin.lunar-linux.org:/tmp/cvs-serv1715/mozilla
Added Files:
Tag: GNOME_UNSTABLE
BUILD CONFIGURE CONFLICTS DEPENDS DETAILS POST_INSTALL
POST_REMOVE PRE_BUILD
Log Message:
Adding mozilla to GNOME_UNSTABLE for now. This is my work on getting Moz NSS to compile and install. Looks like Moz doesnt like ccache at all so I have set it to disable ccache for the time being
--- NEW FILE: BUILD ---
(
export patchdir=$SOURCE_DIRECTORY/$MODULE-$VERSION-lunar
EXTENTIONS="--enable-extensions=default,finger,spellcheck"
if [ "$COM" == "n" ] ; then
OPTS="$OPTS --disable-composer"
else
OPTS="$OPTS --enable-composer"
fi
if [ "$IRC" == "n" ] ; then
EXTENTIONS="$EXTENTIONS,-irc"
fi
if [ "$MATHML" == "n" ] ; then
OPTS="$OPTS --disable-mathml"
else
OPTS="$OPTS --enable-mathml"
fi
if [ "$ACC" == "n" ] ; then
OPTS="$OPTS --disable-accessibility"
else
OPTS="$OPTS --enable-accessibility"
fi
if [ "$JSD" == "n" ] ; then
OPTS="$OPTS --disable-jsd"
EXTENTIONS="$EXTENTIONS,-venkman"
else
OPTS="$OPTS --enable-jsd"
fi
if [ "$INS" == "n" ] ; then
EXTENTIONS="$EXTENTIONS,-inspector"
fi
if [ "$HELP" == "n" ] ; then
EXTENTIONS="$EXTENTIONS,-help"
fi
unset CC CXX
export MOZ_NSS_AUTOCONF=1
export NATIVE_THEME_SUPPORT=1
export MOZILLA_USE_XFT=1
export MOZ_INTERNAL_LIBART_LGPL=1
export BUILD_OPT=1
echo "$OPTS $EXTENTIONS" > /tmp/mozz
./configure --prefix=/usr \
--with-default-mozilla-five-home=/usr/lib/mozilla-$VERSION \
--sysconfdir=/etc \
--localstatedir=/var \
--infodir=/usr/share/info \
--mandir=/usr/share/man \
--enable-xinerama \
--with-system-jpeg \
--with-system-zlib \
--with-system-png \
--with-system-mng \
--with-pthreads \
--enable-reorder \
--disable-tests \
--disable-installer \
--disable-pedantic \
--disable-debug \
--disable-dtd-debug \
--disable-toolkit-gtk \
--disable-short-wchar \
--disable-xprint \
--enable-default-toolkit=gtk2 \
--enable-toolkit=gtk2 \
--with-gtk2 \
--enable-strip \
--enable-strip-libs \
--enable-xft \
--disable-freetype2 \
--enable-svg \
--enable-svg-renderer-libart \
--enable-crypto \
--enable-optimize="$CFLAGS" \
--enable-cpp-rtti \
--enable-xpctools \
--enable-xsl \
--enable-ipv6 \
$OPTS $EXTENSIONS &&
make &&
cd $SOURCE_DIRECTORY/security/coreconf &&
cp headers.mk headers.mk.orig &&
echo 'INCLUDES += -I$(DIST)/include/nspr -I$(DIST)/include/dbm' >>header.mk &&
make &&
cd ../nss &&
make moz_import &&
make &&
cd $SOURCE_DIRECTORY &&
make install &&
mkdir -p /usr/lib/mozilla/include/nss &&
cp $SOURCE_DIRECTORY/dist/public/nss/*.h /usr/lib/mozilla/include/nss &&
cp $SOURCE_DIRECTORY/dist/public/seccmd/*.h /usr/lib/mozilla/include/nss &&
rm -fr /usr/lib/mozilla/include/nss/zconf.h &&
rm -fr /usr/lib/mozilla/include/nss/zlib.h &&
cd $SOURCE_DIRECTORY/security/nss &&
mkdir -p $SOURCE_DIRECTORY/nss/bin &&
mkdir -p $SOURCE_DIRECTORY/nss/lib &&
export SOURCE_BIN_DIR=$SOURCE_DIRECTORY/nss/bin
export SOURCE_LIB_DIR=$SOURCE_DIRECTORY/nss/lib
echo "Installing Mozilla NSS" &&
make install &&
cp -Lf $SOURCE_DIRECTORY/nss/bin/* /usr/bin/ &&
cp -Lf $SOURCE_DIRECTORY/nss/lib/* /usr/lib/mozilla/ &&
# jol change. On clean install /usr/share/applications
mkdir -p /usr/share/applications
mkdir -p /usr/share/pixmaps
cp $patchdir/mozilla.desktop /usr/share/applications/mozilla.desktop &&
cp $patchdir/mozilla.png /usr/share/pixmaps/mozilla.png &&
if module_installed gnupg; then
cp $patchdir/mozilla-mail.png /usr/share/pixmaps/mozilla-mail.png &&
cp $patchdir/mozilla-mail.desktop /usr/share/applications/mozilla-mail.desktop
fi
) > $C_FIFO 2>&1
--- NEW FILE: CONFIGURE ---
if ! grep -q "COM" $MODULE_CONFIG; then
if query "Include mozilla Composer (gui html editing)?" y; then
echo "COM=y" >> $MODULE_CONFIG
else
echo "COM=n" >> $MODULE_CONFIG
fi
fi
if ! grep -q "IRC" $MODULE_CONFIG; then
if query "Include Chatzilla (mozilla irc client)?" y; then
echo "IRC=y" >> $MODULE_CONFIG
else
echo "IRC=n" >> $MODULE_CONFIG
fi
fi
if ! grep -q "MATHML" $MODULE_CONFIG; then
if query "Include MathML support?" y; then
echo "MATHML=y" >> $MODULE_CONFIG
else
echo "MATHML=n" >> $MODULE_CONFIG
fi
fi
if ! grep -q "ACC" $MODULE_CONFIG; then
if query "Include Accesiblity support?" y; then
echo "ACC=y" >> $MODULE_CONFIG
else
echo "ACC=n" >> $MODULE_CONFIG
fi
fi
if ! grep -q "JSD" $MODULE_CONFIG; then
if query "Include JavaScript debugging support?" y; then
echo "JSD=y" >> $MODULE_CONFIG
else
echo "JSD=n" >> $MODULE_CONFIG
fi
fi
if ! grep -q "INS" $MODULE_CONFIG; then
if query "Include mozilla Inspector (html code inspector) support?" y; then
echo "INS=y" >> $MODULE_CONFIG
else
echo "INS=n" >> $MODULE_CONFIG
fi
fi
if ! grep -q "HELP" $MODULE_CONFIG; then
if query "Include mozilla Help support?" y; then
echo "HELP=y" >> $MODULE_CONFIG
else
echo "HELP=n" >> $MODULE_CONFIG
fi
fi
--- NEW FILE: CONFLICTS ---
conflicts mozilla-nightly
--- NEW FILE: DEPENDS ---
depends libmng &&
depends ORBit2 &&
depends zip &&
depends unzip &&
depends libIDL &&
depends gtk+-2 &&
depends librsvg &&
optional_depends "libical" "--enable-calendar" "" "Enable Calendar Support" &&
optional_depends "gnupg" "" "--disable-mailnews" "Enable Email Support" &&
optional_depends "openldap" "" "--disable-ldap" "Enable LDAP Support"
--- NEW FILE: DETAILS ---
MODULE=mozilla
VERSION=1.6
SOURCE=$MODULE-source-$VERSION.tar.bz2
SOURCE2=$MODULE-$VERSION-lunar.tar.bz2
SOURCE3=mozilla-libart.tar.bz2
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE
SOURCE_URL[0]=http://ftp.mozilla.org/pub/mozilla/releases/mozilla$VERSION/src/$SOURCE
SOURCE_URL[1]=ftp://ftp.mirror.ac.uk/sites/ftp.mozilla.org/pub/mozilla/releases/mozilla$VERSION/src/$SOURCE
SOURCE_URL[2]=http://archive.progeny.com/mozilla/releases/mozilla$VERSION/src/$SOURCE
SOURCE_URL[3]=http://dbguin.lunar-linux.org/~nhudson/mozilla/$SOURCE
SOURCE2_URL[0]=$PATCH_URL/$SOURCE2
SOURCE3_URL[0]=http://dbguin.lunar-linux.org/~nhudson/mozilla/$SOURCE3
WEB_SITE=http://www.mozilla.org
ENTERED=20010922
UPDATED=20040118
SOURCE_VFY=md5:da612f8768320dbafd0bfb3c254c2788
SOURCE2_VFY=md5:029996cbe100c10c77be2eb6e4f7bafb
SOURCE3_VFY=md5:119f20f0c50b8554a1794ffdb6706c8d
FUZZY="off"
SHORT="Mozilla is a Web browser."
cat << EOF
Mozilla is a Web browser that is being developed by the Free Software
Community with the cooperation and support of Netscape. Initially,
its development was based on an early version of Netscape Communicator 5.0.
But most of it was disposed of halfway, and the current Mozilla is
a completely new software based on the "NGLayout" layout engine
developed for Netscape Communicator 6.
EOF
--- NEW FILE: POST_INSTALL ---
export patchdir=$SOURCE_DIRECTORY/$MODULE-$VERSION-lunar
cp $patchdir/mozilla-lunar-bookmarks.html /usr/lib/mozilla-$VERSION/defaults/profile/bookmarks.html
cp $patchdir/mozilla-lunar-bookmarks.html /usr/lib/mozilla-$VERSION/defaults/profile/US/bookmarks.html
# Ugly, eeek, explains need for chrooted installs
if [ "-d /usr/lib/mozilla-$VERSION/plugins" ] ; then
mv /usr/lib/mozilla-$VERSION/plugins/libnullplugin.so /usr/lib/mozilla-$VERSION
rm -Rf /usr/lib/mozilla-$VERSION/plugins
fi
# Symlink
cd /usr/lib
rm -Rf /usr/lib/mozilla
ln -sf "mozilla-$VERSION" mozilla
cd /usr/include
rm -Rf /usr/include/mozilla
ln -sf "mozilla-$VERSION" mozilla
cd /usr/lib/mozilla-$VERSION
mkdir -p /opt/lunar/plugins
ln -sf /opt/lunar/plugins plugins
export LD_LIBRARY_PATH="/usr/lib/mozilla-$VERSION:/usr/lib/mozilla-$VERSION/plugins:/usr/lib/mozilla-$VERSION/components"
export MOZILLA_FIVE_HOME="/usr/lib/mozilla-$VERSION"
ldconfig
echo "skin,install,select,classic/1.0" >> chrome/installed-chrome.txt
echo "locale,install,select,en-US" >> chrome/installed-chrome.txt
./regxpcom
./regchrome
ln -sf /usr/lib/j2sdk1.4.1/jre/plugin/i386/mozilla/javaplugin_oji.so /usr/lib/mozilla/plugins/javaplugin_oji.so
rm -fr $BOOST_LOCK
if module_installed epiphany; then lin -c -r epiphany; fi
if module_installed galeon; then lin -c -r galeon; fi
--- NEW FILE: POST_REMOVE ---
rm -fr /usr/lib/mozilla*
rm -fr /usr/include/mozilla*
--- NEW FILE: PRE_BUILD ---
(
patchdir=$SOURCE_DIRECTORY/$MODULE-$VERSION-lunar &&
mk_source_dir $SOURCE_DIRECTORY &&
cd $BUILD_DIRECTORY &&
unpack $SOURCE &&
cd $SOURCE_DIRECTORY &&
unpack $SOURCE2 &&
patch_it $patchdir/xpfe-bootstrap.diff 0 &&
patch_it $patchdir/libreg-standalone.diff 0 &&
cd other-licenses &&
unpack $SOURCE3 &&
# Lunar branding
cd $SOURCE_DIRECTORY &&
cp $patchdir/region-browser.properties xpfe/browser/resources/locale/en-US/region.properties
)
More information about the Lunar-commits
mailing list