mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
* Converted Mozilla Firebird.
svn path=/nixpkgs/trunk/; revision=491
This commit is contained in:
parent
bd9a07f99c
commit
b1741cb2b1
30
pkgs-ng/applications/networking/browsers/firebird/builder.sh
Executable file
30
pkgs-ng/applications/networking/browsers/firebird/builder.sh
Executable file
@ -0,0 +1,30 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$pkgconfig $gtk $perl $zip $libIDL"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfz $src || exit 1
|
||||
cd mozilla || exit 1
|
||||
|
||||
cat > .mozconfig <<EOF
|
||||
export MOZ_PHOENIX=1
|
||||
mk_add_options MOZ_PHOENIX=1
|
||||
ac_add_options --enable-crypto
|
||||
ac_add_options --disable-tests
|
||||
ac_add_options --disable-debug
|
||||
ac_add_options --disable-mailnews
|
||||
ac_add_options --disable-composer
|
||||
ac_add_options --enable-optimize=-O2
|
||||
ac_add_options --disable-ldap
|
||||
ac_add_options --disable-mailnews
|
||||
ac_add_options --enable-extensions=default,-inspector,-irc,-venkman,-content-packs,-help
|
||||
ac_add_options --enable-xft
|
||||
ac_add_options --enable-swg
|
||||
ac_add_options --enable-strip
|
||||
ac_add_options --enable-default-toolkit=gtk2
|
||||
EOF
|
||||
echo "ac_add_options --prefix=$out" >> .mozconfig
|
||||
|
||||
./configure || exit 1
|
||||
make -f client.mk build || exit 1
|
||||
make install || exit 1
|
@ -0,0 +1,25 @@
|
||||
{ stdenv, fetchurl, pkgconfig, gtk, perl, zip, libIDL
|
||||
}:
|
||||
|
||||
assert !isNull pkgconfig && !isNull gtk && !isNull perl
|
||||
&& !isNull zip && !isNull libIDL;
|
||||
|
||||
assert libIDL.glib == gtk.glib;
|
||||
|
||||
derivation {
|
||||
name = "MozillaFirebird-0.7";
|
||||
system = stdenv.system;
|
||||
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.mozilla.org/pub/mozilla.org/firebird/releases/0.7/MozillaFirebird-source-0.7.tar.gz;
|
||||
md5 = "35112566a3dca5bdf363972056afc462";
|
||||
};
|
||||
|
||||
stdenv = stdenv;
|
||||
pkgconfig = pkgconfig;
|
||||
gtk = gtk;
|
||||
perl = perl;
|
||||
zip = zip;
|
||||
libIDL = libIDL;
|
||||
}
|
11
pkgs-ng/development/libraries/libIDL/builder.sh
Executable file
11
pkgs-ng/development/libraries/libIDL/builder.sh
Executable file
@ -0,0 +1,11 @@
|
||||
#! /bin/sh
|
||||
|
||||
buildinputs="$pkgconfig $glib $lex $yacc"
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfj $src || exit 1
|
||||
cd libIDL-* || exit 1
|
||||
./configure --prefix=$out || exit 1
|
||||
make || exit 1
|
||||
make install || exit 1
|
||||
strip -S $out/lib/*.a || exit 1
|
18
pkgs-ng/development/libraries/libIDL/default.fix
Normal file
18
pkgs-ng/development/libraries/libIDL/default.fix
Normal file
@ -0,0 +1,18 @@
|
||||
{stdenv, fetchurl, pkgconfig, glib, lex, yacc}:
|
||||
|
||||
assert !isNull pkgconfig && !isNull gtk && !isNull lex && !isNull yacc;
|
||||
|
||||
derivation {
|
||||
name = "libIDL-0.8.2";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.gnome.org/pub/gnome/sources/libIDL/0.8/libIDL-0.8.2.tar.bz2;
|
||||
md5 = "a75d2dbf3a3c66b567047c94245f8b82";
|
||||
};
|
||||
stdenv = stdenv;
|
||||
pkgconfig = pkgconfig;
|
||||
glib = glib;
|
||||
lex = lex;
|
||||
yacc = yacc;
|
||||
}
|
@ -54,6 +54,11 @@
|
||||
stdenv = stdenv;
|
||||
};
|
||||
|
||||
zip = (import ../tools/archivers/zip) {
|
||||
fetchurl = fetchurl;
|
||||
stdenv = stdenv;
|
||||
};
|
||||
|
||||
gzip = (import ../tools/compression/gzip) {
|
||||
fetchurl = fetchurl;
|
||||
stdenv = stdenv;
|
||||
@ -278,6 +283,14 @@
|
||||
glib = glib;
|
||||
};
|
||||
|
||||
libIDL = (import ../development/libraries/libIDL) {
|
||||
fetchurl = fetchurl;
|
||||
stdenv = stdenv;
|
||||
pkgconfig = pkgconfig;
|
||||
glib = glib;
|
||||
lex = flex;
|
||||
yacc = bison;
|
||||
};
|
||||
|
||||
|
||||
### SERVERS
|
||||
@ -347,4 +360,14 @@
|
||||
gdkpixbuf = gdkpixbuf;
|
||||
};
|
||||
|
||||
firebird = (import ../applications/networking/browsers/firebird) {
|
||||
fetchurl = fetchurl;
|
||||
stdenv = stdenv;
|
||||
pkgconfig = pkgconfig;
|
||||
gtk = gtk;
|
||||
perl = perl;
|
||||
zip = zip;
|
||||
libIDL = libIDL;
|
||||
};
|
||||
|
||||
}
|
||||
|
@ -14,6 +14,7 @@
|
||||
pkgs.subversion
|
||||
pkgs.pan
|
||||
pkgs.sylpheed
|
||||
pkgs.firebird
|
||||
];
|
||||
|
||||
# Create a user environment.
|
||||
|
8
pkgs-ng/tools/archivers/zip/builder.sh
Executable file
8
pkgs-ng/tools/archivers/zip/builder.sh
Executable file
@ -0,0 +1,8 @@
|
||||
#! /bin/sh
|
||||
|
||||
. $stdenv/setup || exit 1
|
||||
|
||||
tar xvfz $src || exit 1
|
||||
cd zip-* || exit 1
|
||||
make -f unix/Makefile generic || exit 1
|
||||
make -f unix/Makefile prefix=$out install || exit 1
|
10
pkgs-ng/tools/archivers/zip/default.fix
Normal file
10
pkgs-ng/tools/archivers/zip/default.fix
Normal file
@ -0,0 +1,10 @@
|
||||
{stdenv, fetchurl}: derivation {
|
||||
name = "zip-2.3";
|
||||
system = stdenv.system;
|
||||
builder = ./builder.sh;
|
||||
src = fetchurl {
|
||||
url = ftp://ftp.info-zip.org/pub/infozip/src/zip23.tar.gz;
|
||||
md5 = "5206a99541f3b0ab90f1baa167392c4f";
|
||||
};
|
||||
stdenv = stdenv;
|
||||
}
|
Loading…
Reference in New Issue
Block a user