mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-21 21:21:06 +00:00
* Thunderbird 2.0.0.0.
svn path=/nixpkgs/trunk/; revision=8820
This commit is contained in:
parent
958e4ce394
commit
803f369435
|
@ -0,0 +1,30 @@
|
|||
source $stdenv/setup
|
||||
|
||||
postInstall=postInstall
|
||||
postInstall() {
|
||||
|
||||
# Strip some more stuff
|
||||
strip -S $out/lib/*/* || true
|
||||
|
||||
# This fixes starting Thunderbird when there already is a running
|
||||
# instance. The `thunderbird' wrapper script actually expects to
|
||||
# be in the same directory as `run-mozilla.sh', apparently.
|
||||
libDir=$(cd $out/lib && ls -d thunderbird-*)
|
||||
test -n "$libDir"
|
||||
cd $out/bin
|
||||
mv thunderbird ../lib/$libDir/
|
||||
ln -s ../lib/$libDir/thunderbird .
|
||||
|
||||
# Register extensions etc.
|
||||
echo "running thunderbird -register..."
|
||||
(cd $out/lib/$libDir && LD_LIBRARY_PATH=. ./thunderbird-bin -register) || false
|
||||
|
||||
echo "running regxpcom..."
|
||||
(cd $out/lib/$libDir && LD_LIBRARY_PATH=. ./regxpcom) || false
|
||||
|
||||
# Put the Thunderbird icon in the right place.
|
||||
ensureDir $out/lib/$libDir/chrome/icons/default
|
||||
ln -s ../../../icons/default.xpm $out/lib/$libDir/chrome/icons/default/
|
||||
}
|
||||
|
||||
genericBuild
|
|
@ -0,0 +1,54 @@
|
|||
{ stdenv, fetchurl, pkgconfig, gtk, perl, zip, libIDL, libXi
|
||||
, libjpeg, libpng, zlib, cairo
|
||||
|
||||
, # If you want the resulting program to call itself "Thunderbird"
|
||||
# instead of "Mail", enable this option. However, those
|
||||
# binaries may not be distributed without permission from the
|
||||
# Mozilla Foundation, see
|
||||
# http://www.mozilla.org/foundation/trademarks/.
|
||||
enableOfficialBranding ? false
|
||||
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
name = "thunderbird-2.0.0.0";
|
||||
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = http://releases.mozilla.org/pub/mozilla.org/thunderbird/releases/2.0.0.0/source/thunderbird-2.0.0.0-source.tar.bz2;
|
||||
sha1 = "1c49eb40d289a67f56bfa573e743ced6c149dd16";
|
||||
};
|
||||
|
||||
buildInputs = [
|
||||
pkgconfig gtk perl zip libIDL libXi libjpeg libpng zlib cairo
|
||||
];
|
||||
|
||||
patches = [
|
||||
# Ugh, inexplicable problem since GTK+ 2.10. Probably a Firefox
|
||||
# bug, but I don't know. See
|
||||
# http://lists.gobolinux.org/pipermail/gobolinux-users/2007-January/004344.html
|
||||
./xlibs.patch
|
||||
];
|
||||
|
||||
configureFlags = [
|
||||
"--enable-application=mail"
|
||||
"--enable-optimize"
|
||||
"--disable-debug"
|
||||
"--enable-xft"
|
||||
"--disable-freetype2"
|
||||
"--enable-svg"
|
||||
"--enable-canvas"
|
||||
"--enable-strip"
|
||||
"--enable-default-toolkit=gtk2"
|
||||
"--with-system-jpeg"
|
||||
"--with-system-png"
|
||||
"--with-system-zlib"
|
||||
"--enable-system-cairo"
|
||||
"--enable-extensions=default"
|
||||
]
|
||||
++ (if enableOfficialBranding then ["--enable-official-branding"] else []);
|
||||
|
||||
meta = {
|
||||
description = "Mozilla Thunderbird, a full-featured email client";
|
||||
};
|
||||
}
|
|
@ -0,0 +1,10 @@
|
|||
--- mozilla/layout/build/Makefile.in.orig 2007-01-13 14:23:19.000000000 -0200
|
||||
+++ mozilla/layout/build/Makefile.in 2007-01-13 14:24:55.000000000 -0200
|
||||
@@ -282,5 +282,6 @@ LDFLAGS += -Wl,-LD_LAYOUT:lgot_buffer=50
|
||||
endif
|
||||
endif
|
||||
|
||||
+LDFLAGS += -lX11 -lXrender
|
||||
|
||||
export:: $(BUILD_DATE)
|
||||
|
|
@ -2992,6 +2992,14 @@ rec {
|
|||
#enableOfficialBranding = true;
|
||||
};
|
||||
|
||||
thunderbird2 = import ../applications/networking/mailreaders/thunderbird-2.x {
|
||||
inherit fetchurl stdenv pkgconfig perl zip libjpeg libpng zlib cairo;
|
||||
inherit (gtkLibs) gtk;
|
||||
inherit (gnome) libIDL;
|
||||
inherit (xlibs) libXi;
|
||||
#enableOfficialBranding = true;
|
||||
};
|
||||
|
||||
valknut = import ../applications/networking/p2p/valknut {
|
||||
inherit fetchurl stdenv perl x11 libxml2 libjpeg libpng openssl dclib;
|
||||
qt = qt3;
|
||||
|
|
Loading…
Reference in a new issue