Matita and its dependencies.

svn path=/nixpkgs/trunk/; revision=25328
This commit is contained in:
Russell O'Connor
2010-12-31 17:48:55 +00:00
parent d3bb1b2630
commit 88ec92d14c
25 changed files with 780 additions and 25 deletions

View File

@@ -1,6 +1,6 @@
version="@VERSION@"
description="reading and writing ZIP, JAR and GZIP files"
requires="unix"
archive(byte)="camlzip.cma"
archive(native)="camlzip.cmxa"
archive(byte)="zip.cma"
archive(native)="zip.cmxa"
linkopts = ""

View File

@@ -0,0 +1,51 @@
{stdenv, fetchurl, ocaml, findlib, ounit, expat}:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
version = "0.9.1";
pname = "ocaml-expat";
testcase = fetchurl {
url = "http://www.w3.org/TR/1998/REC-xml-19980210.xml";
sha256 = "00a3gsfvlkdhmcbziqhvpvy1zmcgbcihfqwcvl6ay03zf7gvw0k1";
};
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "http://www.xs4all.nl/~mmzeeman/ocaml/${pname}-${version}.tar.gz";
sha256 = "16n2j3y0jc9xgqyshw9plrwqnjiz30vnpbhahmgxlidbycw8rgjz";
};
buildInputs = [ocaml findlib ounit expat];
createFindlibDestdir = true;
patches = [ ./unittest.patch ];
postPatch = ''
substituteInPlace "unittest.ml" \
--replace "/home/maas/xml-samples/REC-xml-19980210.xml.txt" "${testcase}"
substituteInPlace Makefile --replace "EXPAT_LIBDIR=/usr/local/lib" "EXPAT_LIBDIR=${expat}/lib" \
substituteInPlace Makefile --replace "EXPAT_INCDIR=/usr/local/include" "EXPAT_INCDIR=${expat}/include" \
'';
configurePhase = "true"; # Skip configure
buildPhase = ''
make all allopt
'';
doCheck = true;
checkTarget = "testall";
meta = {
homepage = http://www.xs4all.nl/~mmzeeman/ocaml/;
description = "An ocaml wrapper for the Expat XML parsing library";
license = "MIT/X11";
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}

View File

@@ -0,0 +1,15 @@
--- old/Makefile 2005-03-13 09:00:29.000000000 -0500
+++ new/Makefile 2010-08-26 14:20:34.515785557 -0400
@@ -67,10 +67,10 @@
testall: test testopt
.PHONY: test
test: unittest
- ./unittest
+ LD_LIBRARY_PATH=. ./unittest
.PHONY: testopt
testopt: unittest.opt
- ./unittest.opt
+ LD_LIBRARY_PATH=. ./unittest.opt
unittest: all unittest.ml
$(OCAMLFIND) ocamlc -o unittest -package oUnit -ccopt -L. -linkpkg \
$(ARCHIVE) unittest.ml

View File

@@ -0,0 +1,36 @@
{stdenv, fetchurl, ocaml, findlib, gdome2, libxslt, pkgconfig}:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
version = "0.2.6";
pname = "gmetadom";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "mirror://sourceforge/project/${pname}/${pname}/${version}/${pname}-${version}.tar.gz";
sha256 = "0skmlv0pnqvg99wzzzi1h4zhwzd82xg7xpkj1kwpfy7bzinjh7ig";
};
patches = [ ./gcc-4.3.dpatch ];
dontDisableStatic = true;
preConfigure=''
configureFlags="--with-ocaml-lib-prefix=$out/lib/ocaml/${ocaml_version}/site-lib"
'';
buildInputs = [ocaml findlib pkgconfig gdome2 libxslt];
propagatedBuildInputs = [gdome2];
meta = {
homepage = http://gmetadom.sourceforge.net/;
description = "GMetaDOM is a collection of librares, each library providing a DOM implementation";
license = "LGPLv2.1+";
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}

View File

@@ -0,0 +1,18 @@
#! /bin/sh /usr/share/dpatch/dpatch-run
## gcc-4.3.dpatch by Stefano Zacchiroli <zack@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: ensure sources build with gcc-4.3
@DPATCH@
diff -urNad trunk~/src/shared/Traits.hh.in trunk/src/shared/Traits.hh.in
--- trunk~/src/shared/Traits.hh.in 2003-01-14 12:41:55.000000000 +0100
+++ trunk/src/shared/Traits.hh.in 2008-05-01 15:45:39.000000000 +0200
@@ -26,6 +26,7 @@
*/
#include <string>
+#include <cstring>
#include "@DOM_NAMESPACE@Char.hh"

View File

@@ -0,0 +1,39 @@
{stdenv, fetchurl, ocaml_pcre, ocamlnet, ocaml, findlib}:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
pname = "ocaml-http";
version = "0.1.3";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "http://upsilon.cc/~zack/hacking/software/${pname}/${pname}-${version}.tar.gz";
sha256 = "070xw033r4pk6f4l0wcknm75y9qm4mp622a4cgzmcfhm58v6kssn";
};
buildInputs = [ocaml_pcre ocamlnet ocaml findlib];
createFindlibDestdir = true;
prePatch = ''
BASH=$(type -tp bash)
echo $BASH
substituteInPlace Makefile --replace "SHELL=/bin/bash" "SHELL=$BASH"
'';
configurePhase = "true"; # Skip configure phase
buildPhase = ''
make all opt
'';
meta = {
homepage = "http://upsilon.cc/~zack/hacking/software/ocaml-http/";
description = "do it yourself (OCaml) HTTP daemon";
license = "LGPLv2";
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}

View File

@@ -0,0 +1,64 @@
diff -ruN zzz/lablgtk-2.14.1/META lablgtk-2.14.1/META
--- zzz/lablgtk-2.14.1/META 2009-02-12 21:39:14.000000000 -0500
+++ lablgtk-2.14.1/META 2010-09-07 19:48:06.454452726 -0400
@@ -1,8 +1,52 @@
-requires=""
-version="2.12.0"
-archive(byte)="lablgtk.cma"
-archive(byte,init)="lablgtk.cma gtkInit.cmo"
-archive(native)="lablgtk.cmxa"
-archive(native,init)="lablgtk.cmxa gtkInit.cmx"
-linkopts=""
-directory="+lablgtk2"
+version="2.14.1"
+requires(mt) = "threads"
+requires(mt,mt_vm) = "threads.vm"
+requires(mt,mt_posix) = "threads.posix"
+archive(byte) = "lablgtk.cma"
+archive(native) = "lablgtk.cmxa"
+archive(byte,mt) += "gtkThread.cmo"
+archive(native,mt) += "gtkThread.cmx"
+
+package "init" (
+ requires = "lablgtk2"
+ archive(byte) = "gtkInit.cmo"
+ archive(native) = "gtkInit.cmx"
+)
+
+package "glade" (
+ requires = "lablgtk2"
+ archive(byte) = "lablglade.cma"
+ archive(native) = "lablglade.cmxa"
+)
+
+package "gtkspell" (
+ requires = "lablgtk2"
+ archive(byte) = "lablgtkspell.cma"
+ archive(native) = "lablgtkspell.cmxa"
+)
+
+package "gnomecanvas" (
+ archive(byte) = "lablgnomecanvas.cma"
+ archive(native) = "lablgnomecanvas.cmxa"
+)
+
+package "gnomeui" (
+ archive(byte) = "lablgnomeui.cma"
+ archive(native) = "lablgnomeui.cmxa"
+)
+
+package "panel" (
+ archive(byte) = "lablpanel.cma"
+ archive(native) = "lablpanel.cmxa"
+)
+
+package "rsvg" (
+ archive(byte) = "lablrsvg.cma"
+ archive(native) = "lablrsvg.cmxa"
+)
+
+package "gtksourceview" (
+ requires = "lablgtk2"
+ archive(byte) = "lablgtksourceview2.cma"
+ archive(native) = "lablgtksourceview2.cmxa"
+)

View File

@@ -0,0 +1,37 @@
{stdenv, fetchurl, ocaml, findlib, pkgconfig, gtk, libgnomecanvas, libglade, gtksourceview}:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
pname = "lablgtk";
version = "2.14.2";
in
stdenv.mkDerivation (rec {
name = "${pname}-${version}";
src = fetchurl {
url = "http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/dist/${name}.tar.gz";
sha256 = "1fnh0amm7lwgyjdhmlqgsp62gwlar1140425yc1j6inwmgnsp0a9";
};
buildInputs = [ocaml findlib pkgconfig gtk libgnomecanvas libglade gtksourceview];
patches = [ ./META.patch ];
configureFlags = "--with-libdir=$(out)/lib/ocaml/${ocaml_version}/site-lib";
buildFlags = "world";
postInstall = ''
ocamlfind install lablgtk2 META
'';
meta = {
platforms = ocaml.meta.platforms;
maintainers = [
stdenv.lib.maintainers.z77z
stdenv.lib.maintainers.roconnor
];
homepage = http://wwwfun.kurims.kyoto-u.ac.jp/soft/lsl/lablgtk.html;
description = "LablGTK is is an Objective Caml interface to gtk+";
license = "LGPLv2.1+";
};
})

View File

@@ -0,0 +1,14 @@
--- configure 2010-09-02 10:58:16.128236964 -0400
+++ configure.old 2010-09-02 10:57:42.368111615 -0400
@@ -1637,9 +1637,9 @@
echo "$as_me:$LINENO: result: $ac_cv_file__usr_include_caml_mlvalues_h" >&5
echo "${ECHO_T}$ac_cv_file__usr_include_caml_mlvalues_h" >&6
if test $ac_cv_file__usr_include_caml_mlvalues_h = yes; then
- OCAML_INCLUDE_DIR=/usr/include
+ OCAML_INCLUDE_DIR=/usr/include/caml
else
- OCAML_INCLUDE_DIR=$OCAML_LIB_DIR
+ OCAML_INCLUDE_DIR=$OCAML_LIB_DIR/caml
fi

View File

@@ -0,0 +1,40 @@
{stdenv, fetchurl, pkgconfig, ocaml, findlib, gmetadom, gtkmathview, lablgtk }:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
version = "0.7.2";
pname = "lablgtkmathview";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "http://helm.cs.unibo.it/mml-widget/sources/${pname}-${version}.tar.gz";
sha256 = "0rgrpgwrgphw106l1xawxir002b7rmzc23rcxhv8ib6rymp1divx";
};
buildInputs = [pkgconfig ocaml findlib gmetadom gtkmathview lablgtk];
createFindlibDestdir = true;
propagatedBuildInputs = [gtkmathview];
prePatch = ''
substituteInPlace Makefile.in --replace "PROPCC = @OCAML_LIB_DIR@" "PROPCC = ${lablgtk}/lib/ocaml/${ocaml_version}/site-lib"
'';
buildPhase = ''
ensureDir .test
make
make opt
'';
meta = {
homepage = http://helm.cs.unibo.it/mml-widget/;
description = "OCaml bindings for gtkmathview";
license = "LGPLv2+";
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}

View File

@@ -0,0 +1,42 @@
{stdenv, fetchurl, ocaml, findlib, mysql}:
# TODO: la versione stabile da' un errore di compilazione dovuto a
# qualche cambiamento negli header .h
# TODO: compilazione di moduli dipendenti da zip, ssl, tcl, gtk, gtk2
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
pname = "ocaml-mysql";
version = "1.0.4";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "http://raevnos.pennmush.org/code/${pname}/${pname}-${version}.tar.gz";
sha256 = "17i5almar8qrhc9drq0cvlprxf9wi9szj5kh4gnz11l9al8i3lar";
};
buildInputs = [ocaml findlib mysql];
createFindlibDestdir = true;
propagatedbuildInputs = [mysql];
preConfigure = ''
export LDFLAGS="-L${mysql}/lib/mysql"
'';
buildPhase = ''
make
make opt
'';
meta = {
homepage = http://raevnos.pennmush.org/code/ocaml-mysql/;
description = "Bindings for interacting with MySQL databases from ocaml";
license = "LGPLv2.1+";
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}

View File

@@ -15,6 +15,8 @@ stdenv.mkDerivation {
buildInputs = [ncurses ocaml findlib ocaml_pcre camlzip openssl ocaml_ssl];
createFindlibDestdir = true;
dontAddPrefix = true;
preConfigure = ''

View File

@@ -0,0 +1,72 @@
Author: Stefano Zacchiroli <zack@debian.org>
Description: build (and install) using camlp5 instead of camlp4
--- ulex0.8.orig/META
+++ ulex0.8/META
@@ -1,5 +1,5 @@
version = "0.8"
-requires = "camlp4"
+requires = "camlp5"
description = "Runtime support for ulex"
archive(byte) = "ulexing.cma"
archive(native) = "ulexing.cmxa"
--- ulex0.8.orig/Makefile
+++ ulex0.8/Makefile
@@ -20,7 +20,7 @@
ocamlopt -a -o ulexing.cmxa $(ULEXING)
pa_ulex.cma: $(ULEX)
- ocamlc -a -o pa_ulex.cma -pp 'camlp4o pa_extend.cmo q_MLast.cmo' -I +camlp4 $(ULEX)
+ ocamlc -a -o pa_ulex.cma -pp 'camlp5o pa_extend.cmo q_MLast.cmo' -I `camlp5 -where` $(ULEX)
pa_ulex.ml: pa_ulex.ml.src
ocaml mk_pa_ulex.ml
@@ -29,14 +29,14 @@
rm -f *.cm* *~ test custom_ulexing *.o *.a *.html *.css pa_ulex.ml
view_test: pa_ulex.cma
- camlp4o ./pa_ulex.cma pr_o.cmo -sep "\n" test.ml
+ camlp5o ./pa_ulex.cma pr_o.cmo -sep "\n" test.ml
run_test: ulexing.cma pa_ulex.cma
- ocamlc -o test -pp 'camlp4o ./pa_ulex.cma' ulexing.cma test.ml
+ ocamlc -o test -pp 'camlp5o ./pa_ulex.cma' ulexing.cma test.ml
./test
custom_ulexing: ulexing.cma pa_ulex.cma
- ocamlc -o custom_ulexing -pp 'camlp4o ./pa_ulex.cma' ulexing.cma custom_ulexing.ml
+ ocamlc -o custom_ulexing -pp 'camlp5o ./pa_ulex.cma' ulexing.cma custom_ulexing.ml
doc:
--- ulex0.8.orig/README
+++ ulex0.8/README
@@ -142,7 +142,7 @@
Compilation of OCaml files with lexer specifications:
- ocamlfind ocamlc -c -package ulex -syntax camlp4o my_file.ml
+ ocamlfind ocamlc -c -package ulex -syntax camlp5o my_file.ml
When linking, you must also include the ulex package:
ocamlfind ocamlc -o my_prog -linkpkg -package ulex my_file.cmo
--- ulex0.8.orig/mk_pa_ulex.ml
+++ ulex0.8/mk_pa_ulex.ml
@@ -1,10 +1,4 @@
let s = float_of_string (String.sub (Sys.ocaml_version) 0 4) in
-if (s < 3.09) then (
print_endline "Old camlp4 (loc)";
Sys.command "sed s/_loc/loc/ < pa_ulex.ml.src > pa_ulex.ml"
-)
-else (
- print_endline "New camlp4 (_loc)";
- Sys.command "cp pa_ulex.ml.src pa_ulex.ml"
-)
--- ulex0.8.orig/pa_ulex.ml.src
+++ ulex0.8/pa_ulex.ml.src
@@ -1,4 +1,4 @@
-let _loc = (Lexing.dummy_pos,Lexing.dummy_pos)
+let _loc = Stdpp.dummy_loc
(* Named regexp *)

View File

@@ -0,0 +1,32 @@
{stdenv, fetchurl, ocaml, findlib, camlp5 }:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
version = "0.8";
pname = "ulex";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "http://www.cduce.org/download/old/${pname}-${version}.tar.gz";
sha256 = "19faabg8hzz155xlzmjwsl59d7slahb5m1l9zh1fqvvpp81r26cp";
};
buildInputs = [ocaml findlib camlp5];
createFindlibDestdir = true;
patches = [ ./meta_version.patch ./camlp5.patch ];
buildFlags = "all all.opt";
meta = {
homepage = http://www.cduce.org/download.html;
description = "ulex is a lexer generator for Unicode and OCaml";
license = "MIT";
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}

View File

@@ -0,0 +1,10 @@
Author: Stefano Zacchiroli <zack@debian.org>
Description: fix a typo in the findlib package version number specified in META
--- ulex0.8.orig/META
+++ ulex0.8/META
@@ -1,4 +1,4 @@
-version = "0.7"
+version = "0.8"
requires = "camlp4"
description = "Runtime support for ulex"
archive(byte) = "ulexing.cma"

View File

@@ -0,0 +1,28 @@
{stdenv, fetchurl, ocaml, findlib }:
let
ocaml_version = (builtins.parseDrvName ocaml.name).version;
version = "1.1";
pname = "ulex";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "http://www.cduce.org/download/${pname}-${version}.tar.gz";
sha256 = "0fjlkwps14adfgxdrbb4yg65fhyimplvjjs1xqj5np197cig67x0";
};
buildInputs = [ocaml findlib];
buildFlags = "all all.opt";
meta = {
homepage = http://www.cduce.org/download.html;
description = "ulex is a lexer generator for Unicode and OCaml";
license = "MIT";
maintainers = [ stdenv.lib.maintainers.roconnor ];
};
}