[Lunar-commits] <moonbase> thunderbird3: new module 3.1.13

Zbigniew Luszpinski zbiggy at lunar-linux.org
Thu Sep 1 01:47:55 CEST 2011


commit fd9a489a2d5911b83ea42bf2fa76c9cb220acbc1
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Thu Sep 1 01:47:55 2011 +0200

    thunderbird3: new module 3.1.13
---
 mail/thunderbird3/BUILD               |   93 +++++++++++++++++++++++++++++++++
 mail/thunderbird3/CONFIGURE           |    1 +
 mail/thunderbird3/CONFLICTS           |    1 +
 mail/thunderbird3/DEPENDS             |   12 ++++
 mail/thunderbird3/DETAILS             |   33 ++++++++++++
 mail/thunderbird3/POST_INSTALL        |   17 ++++++
 mail/thunderbird3/POST_REMOVE         |    3 +
 mail/thunderbird3/PRE_BUILD           |    5 ++
 mail/thunderbird3/mozconfig           |   41 ++++++++++++++
 mail/thunderbird3/thunderbird.desktop |   12 ++++
 10 files changed, 218 insertions(+), 0 deletions(-)

diff --git a/mail/thunderbird3/BUILD b/mail/thunderbird3/BUILD
new file mode 100644
index 0000000..403df3e
--- /dev/null
+++ b/mail/thunderbird3/BUILD
@@ -0,0 +1,93 @@
+(
+
+  COMM_VER=comm-1.9.2
+
+  if module_is_expired $MODULE && [ "$VERSION" != "`installed_version $MODULE`" ]; then
+        set_module_config OLD_VER "`installed_version $MODULE`"
+  fi &&
+
+  export MOZILLA_HOME=/usr/lib/$MODULE-$VERSION
+  export MOZ_CO_PROJECT=mail
+  export MOZILLA_OFFICIAL=1
+  export BUILD_OFFICIAL=1
+  export MOZ_THUNDERBIRD=1
+  # I have no idea how Mozilla compiles binaries if source code is not compilable without these fixes:
+  sedit '160s/^protected/public/' $COMM_VER/mozilla/layout/generic/nsFrame.h &&
+  export MOZILLA_SRCDIR=$SOURCE_DIRECTORY/$COMM_VER/mozilla
+  export BUILD_TOOLS=$MOZILLA_SRCDIR/build/unix
+  export MOZILLA_DIR=$MOZILLA_SRCDIR
+
+  . /etc/profile.d/pkgconfig.rc &&
+  cp $SCRIPT_DIRECTORY/mozconfig $COMM_VER &&
+
+  export MOZ_OBJDIR="${SOURCE_DIRECTORY}/build-mozilla"
+  mkdir -p ${MOZ_OBJDIR}  &&
+
+  cd $COMM_VER &&
+
+  #Add DEPENDS options
+
+  if in_depends $MODULE dbus ; then
+    echo "ac_add_options --enable-dbus" >> mozconfig
+  else
+    echo "ac_add_options --disable-dbus" >> mozconfig
+  fi  &&
+
+  if in_depends $MODULE sqlite ; then
+    echo "ac_add_options --enable-system-sqlite" >> mozconfig
+  fi  &&
+
+  if in_depends $MODULE "xulrunner" ; then
+    XUL=`module_version xulrunner`
+    echo "ac_add_options --with-libxul-sdk=/usr/lib/xulrunner-devel-$XUL" >> mozconfig
+  fi  &&
+
+  if in_depends $MODULE gnome-vfs ; then
+    echo "ac_add_options --enable-gnomevfs" >> mozconfig
+  else
+    echo "ac_add_options --disable-gnomevfs" >> mozconfig
+  fi  &&
+
+  if in_depends $MODULE openldap ; then
+    echo "ac_add_options --enable-ldap" >> mozconfig
+  else
+    echo "ac_add_options --disable-ldap" >> mozconfig
+  fi  &&
+
+  setterm -bfreq -blength &&
+
+  #Finally, the build!
+  if [ "$PGO" == "y" ] ; then
+    #CCache breaks the pgo build
+    export CCACHE_DISABLE=1
+    echo "ac_add_options --enable-profile-guided-optimization" >> mozconfig
+    echo "mk_add_options PROFILE_GEN_SCRIPT='python $MOZ_OBJDIR/_profile/pgo/profileserver.py'" >> mozconfig
+    make -f client.mk build
+    make -f client.mk profiledbuild
+  else
+    make -f client.mk build
+  fi  &&
+
+  cd ${MOZ_OBJDIR}  &&
+  prepare_install   &&
+  make install      &&
+
+  # Make thunderbird use its own icon
+  mkdir -p $MOZILLA_HOME/chrome/icons/default  &&
+
+  for icon in `ls $MOZILLA_HOME/icons`; do
+   `ln -sf $MOZILLA_HOME/icons/$icon \
+           $MOZILLA_HOME/chrome/icons/default/$icon`
+  done
+
+  # Now the .desktop file and the icon
+  mkdir -p /usr/share/applications /usr/share/pixmaps &&
+  install -m644 $SCRIPT_DIRECTORY/thunderbird.desktop /usr/share/applications &&
+  # please, dont just let the lin fail because /usr/share/pixmaps/thunderbird.xpm is an existing symlink...
+  rm -f /usr/share/pixmaps/thunderbird.xpm &&
+  cp $SOURCE_DIRECTORY/$COMM_VER/other-licenses/branding/thunderbird/content/icon64.png $SOURCE_DIRECTORY/$COMM_VER/other-licenses/branding/thunderbird/mailicon64.png &&
+  cp -f $SOURCE_DIRECTORY/$COMM_VER/other-licenses/branding/thunderbird/content/icon48.png $SOURCE_DIRECTORY/$COMM_VER/other-licenses/branding/thunderbird/mailicon48.png &&
+  install -m644 $SOURCE_DIRECTORY/$COMM_VER/other-licenses/branding/thunderbird/mailicon*.png /usr/share/pixmaps
+
+) > $C_FIFO 2>&1
+
diff --git a/mail/thunderbird3/CONFIGURE b/mail/thunderbird3/CONFIGURE
new file mode 100644
index 0000000..bb3eff0
--- /dev/null
+++ b/mail/thunderbird3/CONFIGURE
@@ -0,0 +1 @@
+mquery PGO "Build with Profile Guided Optimization?"  y  "--enable-profile-guided-optimization"  ""
diff --git a/mail/thunderbird3/CONFLICTS b/mail/thunderbird3/CONFLICTS
new file mode 100644
index 0000000..baf133f
--- /dev/null
+++ b/mail/thunderbird3/CONFLICTS
@@ -0,0 +1 @@
+conflicts thunderbird
diff --git a/mail/thunderbird3/DEPENDS b/mail/thunderbird3/DEPENDS
new file mode 100644
index 0000000..f6e20fd
--- /dev/null
+++ b/mail/thunderbird3/DEPENDS
@@ -0,0 +1,12 @@
+depends ORBit2
+depends zip
+depends unzip
+depends expat
+depends gtk+-2
+depends startup-notification
+depends libnotify
+
+optional_depends "gnome-vfs" "" "" "for Gnome VFS support"
+optional_depends "openldap"  "" "" "for LDAP address book support"
+optional_depends "Python"    "" "" "Needed to do a Profile Guided Optimization build"
+
diff --git a/mail/thunderbird3/DETAILS b/mail/thunderbird3/DETAILS
new file mode 100644
index 0000000..027820a
--- /dev/null
+++ b/mail/thunderbird3/DETAILS
@@ -0,0 +1,33 @@
+          MODULE=thunderbird3
+         VERSION=3.1.13
+          SOURCE=thunderbird-$VERSION.source.tar.bz2
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/mozilla
+   SOURCE_URL[0]=ftp://mozilla.isc.org/pub/mozilla.org/$MODULE/releases/$VERSION/source
+   SOURCE_URL[1]=ftp://ftp.uni-erlangen.de/pub/mozilla.org/$MODULE/releases/$VERSION/source
+   SOURCE_URL[2]=http://archive.progeny.com/mozilla.org/$MODULE/releases/$VERSION/source
+   SOURCE_URL[3]=ftp://ftp.mozilla.org/pub/mozilla.org/$MODULE/releases/$VERSION/source
+      SOURCE_VFY=sha1:5bb8945e505a9d7d89b5a95ac932c47ad9032e56
+        WEB_SITE=http://www.mozilla.org/projects/thunderbird
+         ENTERED=20031021
+         UPDATED=20110831
+           SHORT="A full-featured mail client"
+           PSAFE=no
+
+cat << EOF
+Thunderbird includes:
+* The ability to customize your toolbars the way you want them.
+  Choose View / Toolbars / Customize inside any window.
+* UI extensions can be added to Mozilla Thunderbird to customize your
+  experience with specific features and enhancements that you need. Support
+  for extensions. Extensions allow you to add features particular to your
+  needs such as offline mail support. A full list of available extensions can
+  be found here.
+* A new look and feel. Thunderbird also supports a large number of
+  downloadable themes which alter the appearance of the client.
+* An addressing sidebar for mail compose which makes it easy and convenient
+  to add address book contacts to emails.
+* Online help includes a FAQ, tips and tricks and other useful information.
+* Simplified preferences UI and menus.
+* Footprint and performance improvements.
+* Better Junk Mail Filtering Support
+EOF
diff --git a/mail/thunderbird3/POST_INSTALL b/mail/thunderbird3/POST_INSTALL
new file mode 100644
index 0000000..3fc416c
--- /dev/null
+++ b/mail/thunderbird3/POST_INSTALL
@@ -0,0 +1,17 @@
+OLD_VER="$(get_module_config OLD_VER)"
+TBIRD_HOME=/usr
+TBIRD_LIBDIR=thunderbird-$VERSION
+
+if [ ! -z $OLD_VER ]; then
+  rm -rf /usr/lib/thunderbird-$OLD_VER
+fi
+
+unset_module_config OLD_VER
+
+# No more linking workarounds
+export LD_LIBRARY_PATH="$TBIRD_HOME/lib/$TBIRD_LIBDIR:$TBIRD_HOME/lib/$TBIRD_LIBDIR/plugins:$TBIRD_HOME/lib/$TBIRD_LIBDIR/components"
+export MOZILLA_FIVE_HOME="$TBIRD_HOME/lib/$TBIRD_LIBDIR"
+ldconfig
+
+#echo "skin,install,select,classic/1.0" >> $TBIRD_HOME/lib/$TBIRD_LIBDIR/chrome/installed-chrome.txt
+#echo "locale,install,select,en-US" >> $TBIRD_HOME/lib/$TBIRD_LIBDIR/chrome/installed-chrome.txt
diff --git a/mail/thunderbird3/POST_REMOVE b/mail/thunderbird3/POST_REMOVE
new file mode 100644
index 0000000..c9d5ec6
--- /dev/null
+++ b/mail/thunderbird3/POST_REMOVE
@@ -0,0 +1,3 @@
+rm -f  /usr/share/pixmaps/mozicon50.xpm
+rm -rf /usr/include/thunderbird-$VERSION
+rm -rf /usr/lib/thunderbird-$VERSION
diff --git a/mail/thunderbird3/PRE_BUILD b/mail/thunderbird3/PRE_BUILD
new file mode 100644
index 0000000..cc901d0
--- /dev/null
+++ b/mail/thunderbird3/PRE_BUILD
@@ -0,0 +1,5 @@
+validate_source_dir &&
+mk_source_dir &&
+
+cd $SOURCE_DIRECTORY &&
+unpack $SOURCE
diff --git a/mail/thunderbird3/mozconfig b/mail/thunderbird3/mozconfig
new file mode 100644
index 0000000..0af1644
--- /dev/null
+++ b/mail/thunderbird3/mozconfig
@@ -0,0 +1,41 @@
+ac_add_options --prefix=/usr
+ac_add_options --with-x
+ac_add_options --with-pthreads
+ac_add_options --with-default-mozilla-five-home=$MOZILLA_HOME
+ac_add_options --with-user-appdir=".thunderbird"
+ac_add_options --with-system-zlib
+#ac_add_options --with-system-png
+ac_add_options --with-system-jpeg
+ac_add_options --with-system-bz2
+ac_add_options --enable-system-cairo
+ac_add_options --enable-application=mail
+ac_add_options --enable-default-toolkit=cairo-gtk2 #cairo-qt
+ac_add_options --enable-optimize="$CFLAGS"
+ac_add_options --enable-cpp-rtti
+ac_add_options --enable-cpp-exceptions
+ac_add_options --enable-crypto
+ac_add_options --enable-strip
+ac_add_options --enable-xterm-updates
+ac_add_options --enable-official-branding
+ac_add_options --enable-jemalloc
+ac_add_options --enable-calendar
+ac_add_options --enable-startup-notification
+ac_add_options --disable-pedantic
+ac_add_options --disable-debug
+ac_add_options --disable-tests
+ac_add_options --disable-logging
+ac_add_options --disable-accessibility
+ac_add_options --disable-installer
+ac_add_options --disable-oji
+# static build is required for mail
+ac_add_options --enable-static
+# wifi breaks build due to incompatibile header files
+ac_add_options --disable-necko-wifi
+#--with-system-nspr
+#--with-system-nss
+#--enable-system-hunspell
+#--enable-ui-locale
+#--enable-native-uconv
+#--enable-tree-freetype
+#--enable-xpcom-lea
+
diff --git a/mail/thunderbird3/thunderbird.desktop b/mail/thunderbird3/thunderbird.desktop
new file mode 100644
index 0000000..3cc7194
--- /dev/null
+++ b/mail/thunderbird3/thunderbird.desktop
@@ -0,0 +1,12 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Thunderbird Mail
+Name[pl]=Poczta Thunderbird
+Comment=Thunderbird Mail Client
+Exec=thunderbird
+Icon=mailicon48.png
+Terminal=false
+Type=Application
+Categories=Application;Network;
+Comment[pl]=Thunderbird - klient poczty
+StartupNotify=true


More information about the Lunar-commits mailing list