git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #20867 from vbgl/omake-0.10.1

omake: update to 0.10.1

commit44234570ec217c5939d0402c5eddb56d2949cd7c authorvbgl <vbgl@users.noreply.github.com> dateFri 9 Dec 2016, 21:49 (10 years ago) parent9a7e6e9e672fbc
11 files changed+38−136
pkgs/development/compilers/teyjus/default.nix+5−5 pkgs/development/compilers/teyjus/fix-lex-to-flex.patch+11−11 pkgs/development/ocaml-modules/camlimages/4.0.nix+2−2 pkgs/development/ocaml-modules/camlimages/4.1.nix+2−2 pkgs/development/tools/ocaml/omake/0.9.8.6-rc1.nix−38 pkgs/development/tools/ocaml/omake/default.nix+14−28 pkgs/development/tools/ocaml/omake/omake-build-0.9.8.5.diff−11 pkgs/development/tools/ocaml/omake/omake-lm_printf-gcc44.diff−22 pkgs/development/tools/ocaml/omake/warn.patch−10 pkgs/top-level/all-packages.nix+4−4 pkgs/top-level/ocaml-packages.nix−3
pkgs/development/compilers/teyjus/default.nix+5−5
@@ -1,11 +1,11 @@
1−{ stdenv, fetchurl, omake, ocaml, flex, bison }:
1+{ stdenv, fetchzip, omake, ocaml, flex, bison }:
22
33stdenv.mkDerivation {
4− name = "teyjus-2.0b2";
4+ name = "teyjus-2.1";
55
6− src = fetchurl {
7− url = "https://teyjus.googlecode.com/files/teyjus-source-2.0-b2.tar.gz";
8− sha256 = "f589fb460d7095a6e674b7a6413772c41b98654c38602c3e8c477a976da99052";
6+ src = fetchzip {
7+ url = https://github.com/teyjus/teyjus/archive/v2.1.tar.gz;
8+ sha256 = "064jqf68zpmvndgyhilmxfhnvx1bzm8avhgw82csj5wxw5ky6glz";
99 };
1010
1111 patches = [ ./fix-lex-to-flex.patch ];
pkgs/development/compilers/teyjus/fix-lex-to-flex.patch+11−11
@@ -1,23 +1,23 @@
1−diff --git a/source/OMakefile b/source/OMakefile
2−index 6b19d84..095b8b6 100644
3−--- a/source/OMakefile
4−+++ b/source/OMakefile
5−@@ -164,12 +164,17 @@ LNK_MAIN = $(FNT)/linkerfront
1+--- a/source/OMakefile 1970-01-01 00:00:01.000000000 +0000
2++++ b/source/OMakefile 2016-12-02 08:48:42.000000000 +0000
3+@@ -183,18 +183,18 @@
64 DEP_MAIN = $(FNT)/dependfront
5+ PAR_MAIN = $(FNT)/parsefront
76
8− ############################################################
9−+# Nixpkgs specific changes
10−+#
11−+
127+LEX = flex
138+
14−+############################################################
9+ ############################################################
1510 # Platform specific changes
1611 #
1712
13+ if $(mem $(SYSNAME), Linux)
14+ YACC = bison -by
15+- LEX = flex
16+ export
17+
1818 if $(mem $(OSTYPE), Cygwin Win32)
1919 YACC = bison -by
2020- LEX = flex
21− CFLAGS += -mno-cygwin
21+ CC = i686-pc-mingw32-gcc
2222 INC_C[] += $(INC)/byteswap $(INC)/search
2323 export
pkgs/development/ocaml-modules/camlimages/4.0.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, omake, ocaml, omake_rc1, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:
1+{ stdenv, fetchurl, omake, ocaml, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:
22
33let
44 pname = "camlimages";
@@ -13,7 +13,7 @@ stdenv.mkDerivation {
1313 sha256 = "b40237c1505487049799a7af296eb3996b3fa08eab94415546f46d61355747c4";
1414 };
1515
16− buildInputs = [ocaml omake_rc1 findlib graphicsmagick ghostscript ];
16+ buildInputs = [ ocaml omake findlib graphicsmagick ghostscript ];
1717
1818 propagatedBuildInputs = [libtiff libjpeg libpng giflib freetype libXpm ];
1919
pkgs/development/ocaml-modules/camlimages/4.1.nix+2−2
@@ -1,4 +1,4 @@
1−{stdenv, fetchurl, omake, ocaml, omake_rc1, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:
1+{stdenv, fetchurl, omake, ocaml, libtiff, libjpeg, libpng, giflib, findlib, libXpm, freetype, graphicsmagick, ghostscript }:
22
33assert stdenv.lib.versionAtLeast (stdenv.lib.getVersion ocaml) "4.00";
44
@@ -15,7 +15,7 @@ stdenv.mkDerivation {
1515 sha256 = "1ppddhfknpirj1vilm5dxgyp82kf7ahpvjmh7z75a1fnaqv3kpki";
1616 };
1717
18− buildInputs = [ocaml omake_rc1 findlib graphicsmagick ghostscript ];
18+ buildInputs = [ ocaml omake findlib graphicsmagick ghostscript ];
1919
2020 propagatedBuildInputs = [libtiff libjpeg libpng giflib freetype libXpm ];
2121
pkgs/development/tools/ocaml/omake/0.9.8.6-rc1.nixdeleted−38
@@ -1,38 +0,0 @@
1−{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
2−let
3− pname = "omake";
4− version = "0.9.8.6-0.rc1";
5− webpage = "http://omake.metaprl.org";
6−in
7−stdenv.mkDerivation {
8−
9− name = "${pname}-${version}";
10−
11− src = fetchurl {
12− url = "http://pkgs.fedoraproject.org/repo/pkgs/ocaml-omake/${pname}-${version}.tar.gz/fe39a476ef4e33b7ba2ca77a6bcaded2/${pname}-${version}.tar.gz";
13− sha256 = "1sas02pbj56m7wi5vf3vqrrpr4ynxymw2a8ybvfj2dkjf7q9ii13";
14− };
15− patchFlags = "-p0";
16− patches = [ ./warn.patch ];
17−
18− buildInputs = [ ocaml makeWrapper ncurses ];
19−
20− phases = "unpackPhase patchPhase buildPhase";
21− buildPhase = ''
22− make bootstrap
23− make PREFIX=$out all
24− make PREFIX=$out install
25− '';
26−# prefixKey = "-prefix ";
27−#
28−# configureFlags = if transitional then "--transitional" else "--strict";
29−#
30−# buildFlags = "world.opt";
31−
32− meta = {
33− description = "Omake build system";
34− homepage = "${webpage}";
35− license = "GPL";
36− platforms = ocaml.meta.platforms or [];
37− };
38−}
pkgs/development/tools/ocaml/omake/default.nix+14−28
@@ -1,38 +1,24 @@
1−{stdenv, fetchurl, makeWrapper, ocaml, ncurses}:
2−let
3− pname = "omake";
4− version = "0.9.8.5-3";
5− webpage = "http://omake.metaprl.org";
6−in
7−stdenv.mkDerivation {
1+{ stdenv, fetchurl, ocaml, ncurses }:
82
9− name = "${pname}-${version}";
3+stdenv.mkDerivation rec {
4+
5+ name = "omake-${version}";
6+ version = "0.10.1";
107
118 src = fetchurl {
12− url = "mirror://debian/pool/main/o/omake/omake_${version}.orig.tar.gz";
13− sha256 = "1bfxbsimfivq0ar2g5fkzvr5ql97n5dg562pfyd29y4zyh4mwrsv";
9+ url = "http://download.camlcity.org/download/${name}.tar.gz";
10+ sha256 = "093ansbppms90hiqvzar2a46fj8gm9iwnf8gn38s6piyp70lrbsj";
1411 };
15− patchFlags = "-p0";
16− patches = [ ./omake-build-0.9.8.5.diff ./omake-lm_printf-gcc44.diff ];
17−
18− buildInputs = [ ocaml makeWrapper ncurses ];
1912
20− phases = "unpackPhase patchPhase buildPhase";
21− buildPhase = ''
22− make bootstrap
23− make PREFIX=$out all
24− make PREFIX=$out install
25− '';
26−# prefixKey = "-prefix ";
27−#
28−# configureFlags = if transitional then "--transitional" else "--strict";
29−#
30−# buildFlags = "world.opt";
13+ buildInputs = [ ocaml ncurses ];
3114
3215 meta = {
3316 description = "A build system designed for scalability and portability";
34− homepage = "${webpage}";
35− license = "GPL";
36− broken = true;
17+ homepage = http://projects.camlcity.org/projects/omake.html;
18+ license = with stdenv.lib.licenses; [
19+ mit /* scripts */
20+ gpl2 /* program */
21+ ];
22+ inherit (ocaml.meta) platforms;
3723 };
3824}
pkgs/development/tools/ocaml/omake/omake-build-0.9.8.5.diffdeleted−11
@@ -1,11 +0,0 @@
1−--- src/exec/omake_exec.ml 2006-12-08 23:52:01.000000000 +0100
2−+++ src/exec/omake_exec.ml 2009-04-15 22:19:07.000000000 +0200
3−@@ -46,7 +46,7 @@
4− open Omake_options
5− open Omake_command_type
6−
7−-external sync : unit -> unit = "caml_sync"
8−+(*external sync : unit -> unit = "caml_sync"*)
9−
10− module Exec =
11− struct
pkgs/development/tools/ocaml/omake/omake-lm_printf-gcc44.diffdeleted−22
@@ -1,22 +0,0 @@
1−--- src/libmojave-external/cutil/lm_printf.c.orig 2007-07-15 19:55:23.000000000 +0200
2−+++ src/libmojave-external/cutil/lm_printf.c 2009-06-21 19:20:40.000000000 +0200
3−@@ -144,3 +144,3 @@
4− if(bufp != buffer)
5−- free(buffer);
6−+ free(bufp);
7− failwith("ml_print_string");
8−@@ -149,3 +149,3 @@
9− if(bufp != buffer)
10−- free(buffer);
11−+ free(bufp);
12− return v_result;
13−@@ -192,3 +192,3 @@
14− if(bufp != buffer)
15−- free(buffer);
16−+ free(bufp);
17− failwith("ml_print_string");
18−@@ -197,3 +197,3 @@
19− if(bufp != buffer)
20−- free(buffer);
21−+ free(bufp);
22− return v_result;
pkgs/development/tools/ocaml/omake/warn.patchdeleted−10
@@ -1,10 +0,0 @@
1−diff -p1 -aur ../omake-0.9.8.6.ori/lib/build/OCaml.om ./lib/build/OCaml.om
2−--- ../omake-0.9.8.6.ori/lib/build/OCaml.om 2008-03-05 01:07:25.000000000 +0000
3−+++ ./lib/build/OCaml.om 2013-06-01 15:52:37.000000000 +0000
4−@@ -178,3 +178,3 @@ declare OCAMLDEPFLAGS
5− public.OCAMLPPFLAGS =
6−-public.OCAMLFLAGS = -warn-error A
7−+public.OCAMLFLAGS =
8− public.OCAMLCFLAGS = -g
9−Seulement dans ./lib/build: OCaml.om~
10−Seulement dans .: warn.patch
pkgs/top-level/all-packages.nix+4−4
@@ -5303,9 +5303,7 @@ in
53035303 lua = lua5_1;
53045304 };
53055305
5306− teyjus = callPackage ../development/compilers/teyjus {
5307− omake = omake_rc1;
5308− };
5306+ teyjus = callPackage ../development/compilers/teyjus { };
53095307
53105308 thrust = callPackage ../development/tools/thrust {
53115309 gconf = pkgs.gnome2.GConf;
@@ -6345,7 +6343,9 @@ in
63456343 noweb = callPackage ../development/tools/literate-programming/noweb { };
63466344 nuweb = callPackage ../development/tools/literate-programming/nuweb { tex = texlive.combined.scheme-small; };
63476345
6348− inherit (ocamlPackages) omake omake_rc1;
6346+ omake = callPackage ../development/tools/ocaml/omake {
6347+ inherit (ocamlPackages_4_02) ocaml;
6348+ };
63496349
63506350 omniorb = callPackage ../development/tools/omniorb { };
63516351
pkgs/top-level/ocaml-packages.nix−3
@@ -649,9 +649,6 @@ let
649649
650650 trv = callPackage ../development/tools/misc/trv { };
651651
652− omake = callPackage ../development/tools/ocaml/omake { };
653− omake_rc1 = callPackage ../development/tools/ocaml/omake/0.9.8.6-rc1.nix { };
654−
655652 verasco = callPackage ../development/tools/analysis/verasco (
656653 if system == "x86_64-linux"
657654 then { tools = pkgs.pkgsi686Linux.stdenv.cc; }