omake: version 0.9.8.5

svn path=/nixpkgs/trunk/; revision=22019
This commit is contained in:
David Guibert 2010-05-27 19:44:03 +00:00
parent 66c784d4dd
commit b0859969a5
4 changed files with 75 additions and 0 deletions

View File

@ -0,0 +1,37 @@
{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
let
pname = "omake";
version = "0.9.8.5-3";
webpage = "http://omake.metaprl.org";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
src = fetchurl {
url = "${webpage}/downloads/${pname}-${version}.tar.gz";
sha256 = "1bfxbsimfivq0ar2g5fkzvr5ql97n5dg562pfyd29y4zyh4mwrsv";
};
patchFlags = "-p0";
patches = [ ./omake-build-0.9.8.5.diff ./omake-lm_printf-gcc44.diff ];
buildInputs = [ ocaml makeWrapper ncurses ];
phases = "unpackPhase patchPhase buildPhase";
buildPhase = ''
make bootstrap
make PREFIX=$out all
make PREFIX=$out install
'';
# prefixKey = "-prefix ";
#
# configureFlags = if transitional then "--transitional" else "--strict";
#
# buildFlags = "world.opt";
meta = {
description = "Omake build system";
homepage = "${webpage}";
license = "GPL";
};
}

View File

@ -0,0 +1,11 @@
--- src/exec/omake_exec.ml 2006-12-08 23:52:01.000000000 +0100
+++ src/exec/omake_exec.ml 2009-04-15 22:19:07.000000000 +0200
@@ -46,7 +46,7 @@
open Omake_options
open Omake_command_type
-external sync : unit -> unit = "caml_sync"
+(*external sync : unit -> unit = "caml_sync"*)
module Exec =
struct

View File

@ -0,0 +1,22 @@
--- src/libmojave-external/cutil/lm_printf.c.orig 2007-07-15 19:55:23.000000000 +0200
+++ src/libmojave-external/cutil/lm_printf.c 2009-06-21 19:20:40.000000000 +0200
@@ -144,3 +144,3 @@
if(bufp != buffer)
- free(buffer);
+ free(bufp);
failwith("ml_print_string");
@@ -149,3 +149,3 @@
if(bufp != buffer)
- free(buffer);
+ free(bufp);
return v_result;
@@ -192,3 +192,3 @@
if(bufp != buffer)
- free(buffer);
+ free(bufp);
failwith("ml_print_string");
@@ -197,3 +197,3 @@
if(bufp != buffer)
- free(buffer);
+ free(bufp);
return v_result;

View File

@ -3288,6 +3288,11 @@ let
inherit fetchurl stdenv;
};
omake = import ../development/tools/ocaml/omake {
inherit stdenv fetchurl ocaml makeWrapper ncurses;
};
openocd = import ../development/tools/misc/openocd {
inherit fetchurl stdenv libftdi;
};