[Lunar-commits] <moonbase> seamonkey: +0.0.1 and BUILD rewrite

Zbigniew Luszpinski zbiggy at lunar-linux.org
Sat Feb 9 18:53:11 CET 2008


commit 01d2248fe2147c0ce3fd9ff09110241193d6644b
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Sat Feb 9 18:53:11 2008 +0100

    seamonkey: +0.0.1 and BUILD rewrite
---
 web/seamonkey/BUILD   |  112 ++++++++++++++++++++++++++++++------------------
 web/seamonkey/DEPENDS |    2 +
 web/seamonkey/DETAILS |   15 +++----
 3 files changed, 78 insertions(+), 51 deletions(-)

diff --git a/web/seamonkey/BUILD b/web/seamonkey/BUILD
index 7350673..9748d87 100644
--- a/web/seamonkey/BUILD
+++ b/web/seamonkey/BUILD
@@ -1,66 +1,94 @@
 (
-  patch_it $SOURCE_CACHE/$SOURCE2 1 &&
   if module_is_expired $MODULE && [ "$VERSION" != "`installed_version $MODULE`" ]; then
         set_module_config OLD_VER "`installed_version $MODULE`"
   fi &&
 
+  # This should always be just a link
+  rm -rf /usr/lib/seamonkey-$VERSION/plugins &&
+
   MOZILLA_HOME=/usr/lib/$MODULE-$VERSION
-    
+
+  MOZ_EXTENSIONS="default,xmlextras,xforms,webservices,universalchardet,transformiix,tasks,schema-validation,reporter,cookie,cview,datetime,finger,p3p,permissions,spellcheck,irc,wallet,-gnomevfs"
+
+  if in_depends $MODULE heimdal ; then
+        MOZ_EXTENSIONS="${MOZ_EXTENSIONS},auth"
+  else
+        MOZ_EXTENSIONS="${MOZ_EXTENSIONS},-auth"
+  fi &&
+
+  # This hack added to fix a gtk+-2/pango/atk update that broke seamonkey. This should be removed in the future.
+  sedit "s/(MOZ_GTK2_LIBS)/(MOZ_GTK2_LIBS) -lX11 -lXrender/" layout/build/Makefile.in &&
+
+  export MOZ_FREETYPE2="no"
+  export MOZ_PANGO="yes"
+  export MOZ_CO_PROJECT=suite
+  export MOZILLA_OFFICIAL=1
+  export BUILD_OFFICIAL=1
   export PKG_CONFIG_PATH=/usr/X11R6/lib/pkgconfig:/usr/lib/pkgconfig
   export MOZ_NSS_AUTOCONF=1
   export NATIVE_THEME_SUPPORT=1
   export MOZILLA_USE_XFT=1
   export BUILD_OPT=1
-  export MAKEOPTS=" -j1 "
 
-  export MOZ_CO_PROJECT=suite
-  export MOZILLA_OFFICIAL=1
-  export BUILD_OFFICIAL=1
-
-  ./configure \
-    --prefix=/usr \
-    --with-x \
-    --with-pthreads \
+  ./configure           \
+    --prefix=/usr       \
+    --with-x            \
+    --with-pthreads     \
     --with-default-mozilla-five-home=$MOZILLA_HOME \
-    --enable-glitz \
-    --with-user-appdir=.seamonkey \
-    --with-system-zlib \
-    --with-system-png \
-    --with-system-jpeg \
-    --enable-extensions="default,xmlextras,xforms,webservices,wallet,universalchardet,transformiix,tasks,schema-validation,reporter,cookie,cview,datetime,finger,p3p,permissions,venkman,spellcheck,inspector,irc,-gnomevfs,-auth" \
-    --enable-xft \
-    --enable-application=suite \
-    --enable-reorder \
-    --enable-optimize="$OPTS" \
-    --enable-crypto \
-    --enable-strip \
+    --with-user-appdir=.seamonkey     \
+    --with-system-zlib  \
+    --with-system-png   \
+    --with-system-jpeg  \
+    --enable-extensions=${MOZ_EXTENSIONS}       \
+    --enable-application=suite     \
+    --enable-default-toolkit=gtk2  \
+    --enable-optimize="$CFLAGS"    \
+    --enable-xft        \
+    --enable-reorder    \
+    --enable-cpp-rtti   \
+    --enable-cpp-exceptions \
+    --enable-crypto     \
+    --enable-strip      \
     --enable-strip-libs \
-    --enable-svg \
-    --disable-debug \
-    --disable-logging \
-    --disable-accessibility \
-    --disable-ldap \
-    --disable-profilesharing \
+    --enable-canvas     \
+    --enable-svg        \
+    --enable-svg-renderer=cairo  \
+    --enable-system-cairo        \
+    --enable-xterm-updates       \
+    --disable-debug     \
+    --disable-tests     \
     --disable-installer \
-    --enable-mathml \
-    --enable-canvas \
-    --enable-svg-renderer=cairo \
-    --enable-system-cairo \
+    --disable-pedantic  \
+    --disable-logging   \
+    --disable-accessibility     \
+    --disable-ldap      \
+    --disable-profilesharing    \
+    --enable-mathml     \
+    --disable-xinerama \
+    --disable-gnomeui  \
+    --enable-glitz      \
+    --disable-pango \
     --disable-gnomevfs \
-    --disable-gnomeui \
-    --disable-xinerema &&
+    $OPTS               &&
+
+  default_make        &&
 
-  # for future use
-  # --enable-default-toolkit=cairo-gtk2  \
-  default_make &&
-  
-  install -d /usr/include/seamonkey-$VERSION/nss &&
+  # Put some important headers in place
+  mkdir -p /usr/include/seamonkey-$VERSION/nss &&
   cp -Lf dist/private/nss/*.h dist/public/nss/*.h /usr/include/seamonkey-$VERSION/nss &&
 
-  mkdir -p /opt/lunar/plugins &&
+  # Install the plugins in the right directories
+  mkdir -p /opt/lunar/plugins         &&
+  for plugin in `ls /usr/lib/seamonkey-$VERSION/plugins`; do
+       `install -m755 /usr/lib/seamonkey-$VERSION/plugins/$plugin /opt/lunar/plugins`; done  &&
+
+  rm -rf /usr/lib/seamonkey-$VERSION/plugins &&
+  ln -snf /opt/lunar/plugins /usr/lib/seamonkey-$VERSION/plugins &&
 
-  install -d /usr/share/applications /usr/share/pixmaps &&
+  # Now the .desktop file and the icon
+  mkdir -p /usr/share/applications /usr/share/pixmaps &&
   install -m644 $SCRIPT_DIRECTORY/seamonkey.desktop /usr/share/applications &&
+  # please, dont just let the lin fail because /usr/share/pixmaps/seamonkey.xpm is an existing symlink...
   rm -f /usr/share/pixmaps/seamonkey.xpm &&
   install -m644 $MOZILLA_HOME/chrome/icons/default/main-window.xpm /usr/share/pixmaps/seamonkey.xpm
 
diff --git a/web/seamonkey/DEPENDS b/web/seamonkey/DEPENDS
index 2bd5457..4fcdf91 100644
--- a/web/seamonkey/DEPENDS
+++ b/web/seamonkey/DEPENDS
@@ -4,3 +4,5 @@ depends jpeg
 depends zlib
 depends cairo
 depends gtk+-2
+
+optional_depends  "flash-plugin-9"  ""  ""  "to enable Shockwave Flash 9"
diff --git a/web/seamonkey/DETAILS b/web/seamonkey/DETAILS
index 25fe379..7ba40ec 100644
--- a/web/seamonkey/DETAILS
+++ b/web/seamonkey/DETAILS
@@ -1,18 +1,15 @@
           MODULE=seamonkey
-         VERSION=1.1.7
+         VERSION=1.1.8
           SOURCE=$MODULE-$VERSION.source.tar.bz2
-         SOURCE2=sm-xrender.patch
 SOURCE_DIRECTORY=$BUILD_DIRECTORY/mozilla
-   SOURCE_URL[0]=ftp://ftp.mozilla.org/pub/mozilla.org/$MODULE/releases/$VERSION/
-   SOURCE_URL[1]=ftp://sunsite.icm.edu.pl/pub/mozilla/seamonkey/releases/$VERSION/
-   SOURCE_URL[2]=ftp://ftp.task.gda.pl/pub/mozilla/seamonkey/releases/$VERSION/
-      SOURCE_VFY=sha1:2a38cb20c5e162cc79b5124a0fd0092d6e1d464d
-     SOURCE2_URL=$PATCH_URL
-     SOURCE2_VFY=sha1:cab357aa5854456ffd24713126e64a18b391a4cb
+   SOURCE_URL[0]=ftp://mozilla.isc.org/pub/mozilla.org/$MODULE/releases/$VERSION/
+   SOURCE_URL[1]=ftp://ftp.mozilla.org/pub/mozilla.org/$MODULE/releases/$VERSION/
+   SOURCE_URL[2]=ftp://ftp.uni-erlangen.de/pub/mozilla.org/$MODULE/releases/$VERSION/
+      SOURCE_VFY=sha1:8c8032c4da9eb5da55238fbc09a6016c88d16539
         WEB_SITE=http://www.seamonkey-project.org/
            PSAFE=no
          ENTERED=20051208
-         UPDATED=20071130
+         UPDATED=20080208
       MAINTAINER=zbiggy at o2.pl
            SHORT="Seamonkey is a next generation mozilla web browser."
 cat << EOF


More information about the Lunar-commits mailing list