omake: 0.9.8.5 -> 0.10.1

This commit is contained in:
Vincent Laporte
2016-12-02 19:49:07 +00:00
parent 96e1220813
commit 895d3c8908
5 changed files with 19 additions and 63 deletions
+14 -28
View File
@@ -1,38 +1,24 @@
{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
let
pname = "omake";
version = "0.9.8.5-3";
webpage = "http://omake.metaprl.org";
in
stdenv.mkDerivation {
{ stdenv, fetchurl, ocaml, ncurses }:
name = "${pname}-${version}";
stdenv.mkDerivation rec {
name = "omake-${version}";
version = "0.10.1";
src = fetchurl {
url = "mirror://debian/pool/main/o/omake/omake_${version}.orig.tar.gz";
sha256 = "1bfxbsimfivq0ar2g5fkzvr5ql97n5dg562pfyd29y4zyh4mwrsv";
url = "http://download.camlcity.org/download/${name}.tar.gz";
sha256 = "093ansbppms90hiqvzar2a46fj8gm9iwnf8gn38s6piyp70lrbsj";
};
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";
buildInputs = [ ocaml ncurses ];
meta = {
description = "A build system designed for scalability and portability";
homepage = "${webpage}";
license = "GPL";
broken = true;
homepage = http://projects.camlcity.org/projects/omake.html;
license = with stdenv.lib.licenses; [
mit /* scripts */
gpl2 /* program */
];
inherit (ocaml.meta) platforms;
};
}