wok-6.x diff thunderbird/receipt @ rev 14294

Up: eio (1.7.5)
author Dominique Corbex <domcox@slitaz.org>
date Sun Apr 07 10:06:26 2013 +0200 (2013-04-07)
parents f6cec36345bb
children 8fc2c58382da
line diff
     1.1 --- a/thunderbird/receipt	Mon Jan 07 15:14:06 2013 +0100
     1.2 +++ b/thunderbird/receipt	Sun Apr 07 10:06:26 2013 +0200
     1.3 @@ -1,60 +1,130 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="thunderbird"
     1.7 -VERSION="11.0.1"
     1.8 +VERSION="17.0.4esr"
     1.9  CATEGORY="network"
    1.10  SHORT_DESC="Mozilla's Thunderbird email application."
    1.11  MAINTAINER="domcox@slitaz.org"
    1.12  TARBALL="$PACKAGE-$VERSION.source.tar.bz2"
    1.13  WEB_SITE="http://www.mozilla.org/"
    1.14  WGET_URL="ftp://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/$VERSION/source/$TARBALL"
    1.15 +
    1.16 +DEPENDS="alsa-lib gtk+ zip unzip libevent libvpx nspr nss sqlite \
    1.17 +dbus dbus-glib glib libnotify libfirefox"
    1.18 +BUILD_DEPENDS="alsa-lib-dev gtk+-dev bzip2 zip unzip coreutils \
    1.19 +libevent-dev libvpx-dev nspr-dev nss-dev yasm sqlite-dev \
    1.20 +dbus-dev dbus-glib-dev libnotify-dev freetype fontconfig tar gzip mesa-dev"
    1.21  TAGS="email pop imap smtp"
    1.22 -TB_LOCALES="de es_ES fr en_GB pt_PT pt_BR ru"
    1.23 -
    1.24 -DEPENDS="alsa-lib gtk+ dbus dbus-glib glib jpeg libevent libnotify nss \
    1.25 -         sqlite xorg-libX11 xorg-libXdamage xorg-libXt"
    1.26 -BUILD_DEPENDS="alsa-lib-dev bzip2 dbus-dev dbus-glib-dev freetype fontconfig \
    1.27 -         gtk+-dev libIDL libevent-dev libnotify-dev make mesa-dev nspr-dev \
    1.28 -         nss-dev perl pkg-config python sqlite-dev tar wireless_tools-dev \
    1.29 -         xorg-dev xorg-libXt-dev zip"
    1.30  
    1.31  # Rules to configure and make the package.
    1.32 +# WARNING: 1GB RAM minimum. Additional RAM will significantly decrease
    1.33 +# build time.
    1.34 +# At least 2.5 GB free disk space
    1.35 +
    1.36 +
    1.37  compile_rules()
    1.38  {
    1.39 -	cat <<EOF
    1.40 -WARNING: long compile time.
    1.41 -Requirements: 
    1.42 -- 512MB RAM with lots of available swap space. Additional RAM will 
    1.43 -  significantly decrease build time. 
    1.44 -- At least 2.5 GB of disk space.
    1.45 -EOF
    1.46 -	# add config
    1.47 -    cp -a $stuff/thunderbird.mozconfig.conf $src/.mozconfig
    1.48 -	# languages
    1.49 -	echo -e "\n# languages" >> $src/.mozconfig
    1.50 -	echo "mk_add_options MOZ_CO_LOCALES=\"$TB_LOCALES\"" >> $src/.mozconfig
    1.51 -	# for a quick build
    1.52 -	echo -e "\n# build quicker" >> $src/.mozconfig
    1.53 -	echo "mk_add_options MOZ_MAKE_FLAGS=$MAKEFLAGS" >> $src/.mozconfig
    1.54 -	# build
    1.55  	cd $src
    1.56 -	patch -Np1 -i $stuff/thunderbird-3.0-lang.patch
    1.57 -	patch -Np1 -i $stuff/thunderbird-install-dir.patch
    1.58 -	./configure $CONFIGURE_ARGS &&
    1.59 -	make 2>&1 | head -n 1000 &&
    1.60 -	make DESTDIR=$DESTDIR install
    1.61 +	# load mozconfig
    1.62 +    cp -a $stuff/mozconfig $src
    1.63 +
    1.64 +	# fix path of 'check_debug_ranges.py'
    1.65 +	ln -s $src/mozilla/build/autoconf/check_debug_ranges.py \
    1.66 +		$src/build/autoconf/check_debug_ranges.py
    1.67 +
    1.68 +	# build and create a thunderbird tarball
    1.69 +	# reducing log size: hide c++, nsinstall, python msgs
    1.70 +	# Exception... Component returned failure code: known bug #696763
    1.71 +	make -f client.mk | egrep -v "c++|nsinstall|python" &&
    1.72 +	make -C obj-thunderbird/mail/installer
    1.73 +
    1.74 +	# install
    1.75 +	# locate tarball
    1.76 +	local tarball tarpath fn1 fn2
    1.77 +	tarpath=$src/obj-thunderbird/mozilla/dist
    1.78 +	fn1="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$ARCH.tar.bz2"
    1.79 +	fn2="$tarpath/thunderbird-${VERSION%esr}.en-US.linux-$(uname -m).tar.bz2"
    1.80 +	[ -e "$fn1" ] && tarball="$fn1" && echo "$ARCH tarball found"
    1.81 +	[ -e "$fn2" ] && tarball="$fn2" && echo "$(uname -m) tarball found"
    1.82 +	[ -z "$tarball" ] && echo "ERROR: tarball not found" && exit 1
    1.83 +	# extract tarball
    1.84 +	mkdir -p $install/usr/lib/thunderbird-$VERSION &&
    1.85 +	tar -xvf $tarball -C $install/usr/lib/thunderbird-$VERSION \
    1.86 +		--strip-components=1 &&
    1.87 +	# install symlink in /usr/bin
    1.88 +	mkdir -p $install/usr/bin &&
    1.89 +	ln -sf ../lib/thunderbird-$VERSION/thunderbird $install/usr/bin
    1.90  }
    1.91  
    1.92  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.93  genpkg_rules()
    1.94  {
    1.95 -	mkdir -p $fs/usr/lib
    1.96  	# program
    1.97 -	cp -a $install/usr/lib/$PACKAGE $fs/usr/lib
    1.98 +	printf "Installing program.."
    1.99 +	mkdir -p $fs/usr/lib &&
   1.100 +	cp -a $install/usr/lib/$PACKAGE-$VERSION $fs/usr/lib &&
   1.101  	cp -a $install/usr/bin $fs/usr
   1.102 -	# mcd
   1.103 -	cp $stuff/autoconf.js $fs/usr/lib/$PACKAGE/defaults/pref
   1.104 -	cp $stuff/thunderbird.cfg $fs/usr/lib/$PACKAGE
   1.105 -	# mimetypes
   1.106 +	status
   1.107  
   1.108 +	# add Mission Control Desktop
   1.109 +	printf "Installing Mission Control Desktop.."
   1.110 +	cp $stuff/autoconf.js $fs/usr/lib/$PACKAGE-$VERSION/defaults/pref &&
   1.111 +	touch $fs/usr/lib/$PACKAGE-$VERSION/thunderbird.cfg
   1.112 +	status
   1.113 +
   1.114 +	# slitaz prefs.
   1.115 +	printf "Installing SliTaz prefs.."
   1.116 +	cp $stuff/distribution.ini $fs/usr/lib/$PACKAGE-$VERSION/distribution/ &&
   1.117 +	# slitaz search plugins
   1.118 +	cp -a $stuff/searchplugins/* $fs/usr/lib/$PACKAGE-$VERSION/searchplugins &&
   1.119 +	status
   1.120 +
   1.121 +	# mozilla-common files
   1.122 +	# dictionaries
   1.123 +	printf "Installing common dictionnaries.."
   1.124 +	rm -rf $fs/usr/lib/$PACKAGE-$VERSION/dictionaries &&
   1.125 +	ln -sf ../mozilla-common-$VERSION/dictionaries \
   1.126 +		$fs/usr/lib/$PACKAGE-$VERSION/dictionaries
   1.127 +	status
   1.128 +	# plugin-container
   1.129 +	printf "Installing common plugin-container"
   1.130 +	rm -f $fs/usr/lib/$PACKAGE-$VERSION/plugin-container &&
   1.131 +	ln -sf ../mozilla-common-$VERSION/plugin-container \
   1.132 +		$fs/usr/lib/$PACKAGE-$VERSION/plugin-container
   1.133 +	status
   1.134 +	# mozilla-xremote-client
   1.135 +	printf "Installing common mozilla-xremote-client"
   1.136 +	rm -f $fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client &&
   1.137 +	ln -sf ../mozilla-common-$VERSION/mozilla-xremote-client \
   1.138 +		$fs/usr/lib/$PACKAGE-$VERSION/mozilla-xremote-client
   1.139 +	status
   1.140 +	# components/libdbusservice.so
   1.141 +	# components/libmozgnome.so
   1.142 +	for file in libdbusservice.so libmozgnome.so; do
   1.143 +		printf "Installing common components/$file"
   1.144 +		rm -f $fs/usr/lib/$PACKAGE-$VERSION/components/$file &&
   1.145 +		ln -sf ../../mozilla-common-$VERSION/components/$file \
   1.146 +			$fs/usr/lib/$PACKAGE-$VERSION/components/$file
   1.147 +		status
   1.148 +	done
   1.149 +	# chrome.manifest
   1.150 +	printf "Installing common chrome.manifest"
   1.151 +	rm -f $fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest &&
   1.152 +	ln -sf ../mozilla-common-$VERSION/chrome.manifest \
   1.153 +		$fs/usr/lib/$PACKAGE-$VERSION/chrome.manifest
   1.154 +	status
   1.155 +
   1.156 +	# run-mozilla.sh
   1.157 +	printf "Installing common run-mozilla.sh"
   1.158 +	rm -f $fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh &&
   1.159 +	ln -sf ../mozilla-common-$VERSION/run-mozilla.sh \
   1.160 +		$fs/usr/lib/$PACKAGE-$VERSION/run-mozilla.sh
   1.161 +	status
   1.162 +
   1.163 +	# libmozalloc.so
   1.164 +	printf "Installing common libmozalloc.so"
   1.165 +	rm -f $fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so &&
   1.166 +	ln -sf ../mozilla-common-$VERSION/libmozalloc.so \
   1.167 +		$fs/usr/lib/$PACKAGE-$VERSION/libmozalloc.so
   1.168 +	status
   1.169  }