[Lunar-commits] <moonbase> thunderbird5: thuderbird 5.0

Zbigniew Luszpinski zbiggy at lunar-linux.org
Sun Jul 3 16:01:02 CEST 2011


commit 17fce014d7e689060c2dbf7a3da90bb39bb9f009
Author: Zbigniew Luszpinski <zbiggy at lunar-linux.org>
Date:   Sun Jul 3 16:01:02 2011 +0200

    thunderbird5: thuderbird 5.0
---
 mail/thunderbird5/BUILD               |   75 +++++++++++++++++++++++++++++++++
 mail/thunderbird5/CONFIGURE           |    1 +
 mail/thunderbird5/CONFLICTS           |    1 +
 mail/thunderbird5/DEPENDS             |   30 +++++++++++++
 mail/thunderbird5/DETAILS             |   33 ++++++++++++++
 mail/thunderbird5/POST_INSTALL        |   17 +++++++
 mail/thunderbird5/PRE_BUILD           |    7 +++
 mail/thunderbird5/mozconfig           |   43 +++++++++++++++++++
 mail/thunderbird5/thunderbird.desktop |   13 ++++++
 9 files changed, 220 insertions(+), 0 deletions(-)

diff --git a/mail/thunderbird5/BUILD b/mail/thunderbird5/BUILD
new file mode 100644
index 0000000..8ca678e
--- /dev/null
+++ b/mail/thunderbird5/BUILD
@@ -0,0 +1,75 @@
+(
+
+  if module_is_expired $MODULE && [ "$VERSION" != "`installed_version $MODULE`" ]; then
+        set_module_config OLD_VER "`installed_version $MODULE`"
+  fi  &&
+
+  export MOZ_CO_PROJECT=mail  &&
+  export MOZILLA_HOME=/usr/lib/thunderbird-$VERSION &&
+  export MOZILLA_OFFICIAL=1  &&
+  export BUILD_OFFICIAL=1  &&
+  export MOZ_THUNDERBIRD=1 &&
+
+  cp $SCRIPT_DIRECTORY/mozconfig .  &&
+
+  export MOZ_OBJDIR="${SOURCE_DIRECTORY}/build-mozilla"  &&
+  mkdir -p ${MOZ_OBJDIR}  &&
+
+  echo "ac_add_options --disable-necko-wifi" >> mozconfig  &&
+  echo "ac_add_options --disable-system-sqlite" >> mozconfig  &&
+
+  #Add DEPENDS options
+
+  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 libevent ; then
+    echo "ac_add_options --with-system-libevent" >> mozconfig
+  else
+    echo "ac_add_options --without-system-libevent" >> mozconfig
+  fi  &&
+
+  if in_depends $MODULE dbus-glib ; then
+    echo "ac_add_options --enable-dbus" >> mozconfig
+  else
+    echo "ac_add_options --disable-dbus" >> 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      || exit 1
+
+  # Now the .desktop file and icons
+  install -Dm 644 {"$SCRIPT_DIRECTORY",/usr/share/applications}/thunderbird.desktop  &&
+
+  for s in 16 22 24 256 32 48 ; do
+    install -Dm 644 mozilla/dist/thunderbird/chrome/icons/default/default${s}.png /usr/share/icons/hicolor/${s}x${s}/apps/thunderbird.png
+  done  &&
+  if [ -x /usr/bin/gtk-update-icon-cache ] ; then
+    gtk-update-icon-cache -f /usr/share/icons/hicolor/
+  fi
+
+) > $C_FIFO 2>&1
diff --git a/mail/thunderbird5/CONFIGURE b/mail/thunderbird5/CONFIGURE
new file mode 100644
index 0000000..bb3eff0
--- /dev/null
+++ b/mail/thunderbird5/CONFIGURE
@@ -0,0 +1 @@
+mquery PGO "Build with Profile Guided Optimization?"  y  "--enable-profile-guided-optimization"  ""
diff --git a/mail/thunderbird5/CONFLICTS b/mail/thunderbird5/CONFLICTS
new file mode 100644
index 0000000..baf133f
--- /dev/null
+++ b/mail/thunderbird5/CONFLICTS
@@ -0,0 +1 @@
+conflicts thunderbird
diff --git a/mail/thunderbird5/DEPENDS b/mail/thunderbird5/DEPENDS
new file mode 100644
index 0000000..b462695
--- /dev/null
+++ b/mail/thunderbird5/DEPENDS
@@ -0,0 +1,30 @@
+depends ORBit2
+depends zip
+depends unzip
+depends gtk+-2
+
+optional_depends "Python"           ""  ""  "Needed to do a Profile Guided Optimization build"
+optional_depends "gnome-vfs"        ""  ""  "For Gnome VFS support"
+optional_depends "hunspell"         "--enable-system-hunspell"  "--disable-system-hunspell"  "For spelling support"
+
+# $OPTS is ignored in this BUILD
+optional_depends "libevent"         ""  ""  "For event detection"
+optional_depends "dbus-glib"        ""  ""  "For dbus support"
+
+optional_depends "startup-notification"  "--enable-startup-notification"  ""  \
+                 "To enable startup notification"
+
+optional_depends "libnotify"  "--enable-libnotify"  "--disable-libnotify"  \
+                 "To enable libnotify support"
+
+optional_depends "openldap"  "--enable-ldap"  "--disable-ldap"  \
+                 "To enable ldap support"
+
+optional_depends "xulrunner"  "--with-system-libxul --with-libxul-sdk=/usr/lib/xulrunner-devel-$XUL"  ""  \
+                 "To use system xulrunner"
+
+optional_depends "nspr"  "--with-system-nspr"  ""  \
+                "To use system nspr"
+
+optional_depends "nss"  "--with-system-nss"  ""  \
+                 "To use system nss"
diff --git a/mail/thunderbird5/DETAILS b/mail/thunderbird5/DETAILS
new file mode 100644
index 0000000..aa373c9
--- /dev/null
+++ b/mail/thunderbird5/DETAILS
@@ -0,0 +1,33 @@
+          MODULE=thunderbird5
+         VERSION=5.0
+          SOURCE=thunderbird-$VERSION.source.tar.bz2
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/comm-miramar
+   SOURCE_URL[1]=ftp://mozilla.isc.org/pub/mozilla.org/thunderbird/releases/$VERSION/source
+   SOURCE_URL[0]=ftp://ftp.uni-erlangen.de/pub/mozilla.org/thunderbird/releases/$VERSION/source
+   SOURCE_URL[2]=http://archive.progeny.com/mozilla.org/thunderbird/releases/$VERSION/source
+   SOURCE_URL[3]=ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/source
+      SOURCE_VFY=sha1:392c3e0ef70b62c29a543f88b2b8d5a51bfe69a7
+        WEB_SITE=http://www.mozilla.org/projects/thunderbird
+         ENTERED=20031021
+         UPDATED=20110629
+           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/thunderbird5/POST_INSTALL b/mail/thunderbird5/POST_INSTALL
new file mode 100644
index 0000000..9ff84b1
--- /dev/null
+++ b/mail/thunderbird5/POST_INSTALL
@@ -0,0 +1,17 @@
+OLD_VER="`get_module_config OLD_VER`"
+TBIRD_LIBDIR=thunderbird-$VERSION
+
+if [ ! -z $OLD_VER ]; then
+  rm -rf /usr/lib/thunderbird-$OLD_VER
+  rm -rf /usr/include/thunderbird-$OLD_VER
+  rm -rf /usr/share/idl/thunderbird-$OLD_VER
+fi
+unset_module_config OLD_VER
+
+rm -rf /usr/lib/thunderbird-1*
+rm -rf /usr/lib/thunderbird-2*
+rm -rf /usr/lib/thunderbird-3*
+
+export LD_LIBRARY_PATH="/usr/lib/$TBIRD_LIBDIR:/usr/lib/$TBIRD_LIBDIR/components"
+export MOZILLA_FIVE_HOME="/usr/lib/$TBIRD_LIBDIR"
+ldconfig
diff --git a/mail/thunderbird5/PRE_BUILD b/mail/thunderbird5/PRE_BUILD
new file mode 100644
index 0000000..9574723
--- /dev/null
+++ b/mail/thunderbird5/PRE_BUILD
@@ -0,0 +1,7 @@
+if [ ! -e /usr/include/cairo/cairo-tee.h ] ; then
+  message "${PROBLEM_COLOR}Run:  ${MODULE_COLOR}lin -c cairo"
+  message "${MESSAGE_COLOR}To recompile cairo with tee support, which is required by Seamonkey2.1.${DEFAULT_COLOR}"
+  exit 1
+fi
+
+default_pre_build
diff --git a/mail/thunderbird5/mozconfig b/mail/thunderbird5/mozconfig
new file mode 100644
index 0000000..ee3e336
--- /dev/null
+++ b/mail/thunderbird5/mozconfig
@@ -0,0 +1,43 @@
+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-jpeg
+ac_add_options --with-system-bz2
+ac_add_options --enable-storage
+ac_add_options --enable-application=mail
+ac_add_options --enable-default-toolkit=cairo-gtk2
+ac_add_options --enable-optimize="$CFLAGS"
+ac_add_options --enable-crypto
+ac_add_options --enable-strip
+ac_add_options --enable-system-cairo
+ac_add_options --enable-xterm-updates
+ac_add_options --enable-libxul
+ac_add_options --enable-official-branding
+ac_add_options --enable-jemalloc
+ac_add_options --disable-debug
+ac_add_options --disable-tests
+ac_add_options --disable-installer
+ac_add_options --disable-pedantic
+ac_add_options --disable-logging
+ac_add_options --disable-accessibility
+ac_add_options --disable-oji
+ac_add_options --disable-updater
+# static build is required for mail
+#ac_add_options --enable-static
+#ac_add_options --enable-static-mail
+ac_add_options --disable-os2-high-mem
+ac_add_options --enable-gio
+ac_add_options --enable-raw
+ac_add_options --enable-splashscreen
+ac_add_options --enable-shared-js
+ac_add_options --enable-system-pixman
+ac_add_options --enable-image-decoders=all
+ac_add_options --enable-image-encoders=all
+ac_add_options --enable-calendar
+ac_add_options --enable-functiontimer
+ac_add_options --enable-timeline
+ac_add_options --enable-tree-freetype
+ac_add_options --enable-faststart
diff --git a/mail/thunderbird5/thunderbird.desktop b/mail/thunderbird5/thunderbird.desktop
new file mode 100644
index 0000000..9228460
--- /dev/null
+++ b/mail/thunderbird5/thunderbird.desktop
@@ -0,0 +1,13 @@
+[Desktop Entry]
+Encoding=UTF-8
+Name=Thunderbird Mail
+Name[pl]=Poczta Thunderbird
+Comment=Thunderbird Mail Client
+Exec=thunderbird
+Icon=thunderbird
+Terminal=false
+Type=Application
+Categories=Application;Network;
+Comment[pl]=Thunderbird - klient poczty
+X-KDE-StartupNotify=true
+StartupNotify=true


More information about the Lunar-commits mailing list