Merge pull request #21205 from boronine/haxe-3.2.1

haxe: 3.1.3 -> 3.2.1
This commit is contained in:
Arseniy Seroka 2016-12-23 22:07:07 +03:00 committed by GitHub
commit a45ffc7e49
2 changed files with 22 additions and 20 deletions

View File

@ -1,17 +1,17 @@
{ stdenv, fetchgit, ocaml, zlib, neko, camlp4 }:
stdenv.mkDerivation {
name = "haxe-3.1.3";
name = "haxe-3.2.1";
buildInputs = [ocaml zlib neko camlp4];
src = fetchgit {
url = "https://github.com/HaxeFoundation/haxe.git";
sha256 = "0d8s9yqsqcbr2lfw4xnmg7vzgb6k1jq6hlwwaf1kmn9wxpvcc6x9";
sha256 = "1x9ay5a2llq46fww3k07jxx8h1vfpyxb522snc6702a050ki5vz3";
fetchSubmodules = true;
# Tag 3.1.3
rev = "7be30670b2f1f9b6082499c8fb9e23c0a6df6c28";
# Tag 3.2.1
rev = "deab4424399b520750671e51e5f5c2684e942c17";
};
prePatch = ''

View File

@ -1,10 +1,10 @@
diff --git a/extra/haxelib_src/src/tools/haxelib/Main.hx b/extra/haxelib_src/src/tools/haxelib/Main.hx
index a44a785..0eb811a 100644
diff --git a/src/tools/haxelib/Main.hx b/src/tools/haxelib/Main.hx
index dc18815..def5231 100644
--- a/extra/haxelib_src/src/tools/haxelib/Main.hx
+++ b/extra/haxelib_src/src/tools/haxelib/Main.hx
@@ -996,21 +996,26 @@ class Main {
@@ -1301,21 +1301,26 @@ class Main {
}
function checkRec( prj : String, version : String, l : List<{ project : String, version : String, info : Infos }> ) {
- var pdir = getRepository() + Data.safe(prj);
- if( !FileSystem.exists(pdir) )
@ -44,7 +44,7 @@ index a44a785..0eb811a 100644
var json = try File.getContent(vdir+"/"+Data.JSON) catch( e : Dynamic ) null;
var inf = Data.readData(json,false);
l.add({ project : prj, version : version, info: inf });
@@ -1025,15 +1030,21 @@ class Main {
@@ -1330,15 +1335,21 @@ class Main {
var a = args[argcur++].split(":");
checkRec(a[0],a[1],list);
}
@ -73,10 +73,10 @@ index a44a785..0eb811a 100644
var ndir = dir + "ndll";
if( FileSystem.exists(ndir) ) {
var sysdir = ndir+"/"+Sys.systemName();
@@ -1153,21 +1164,39 @@ class Main {
print(' Path: $devPath');
@@ -1491,23 +1502,43 @@ class Main {
);
}
+ function getNixLib(project:String):Null<String>
+ {
+ var hlibPath = Sys.getEnv("HAXELIB_PATH");
@ -91,7 +91,7 @@ index a44a785..0eb811a 100644
+ }
+ return null;
+ }
+
function run() {
- var rep = getRepository();
var project = param("Library");
@ -103,10 +103,10 @@ index a44a785..0eb811a 100644
- pdir += "/";
- var version = temp[1] != null ? temp[1] : getCurrent(pdir);
- var dev = try getDev(pdir) catch ( e : Dynamic ) null;
- var vdir = dev!=null ? dev : pdir + Data.safe(version);
- var rdir = vdir + "/run.n";
- if( !FileSystem.exists(rdir) )
- throw "Library "+project+" version "+version+" does not have a run script";
- var vdir = dev != null ? dev : pdir + Data.safe(version);
args.push(cli.cwd);
+
+ var vdir = this.getNixLib(project);
+ if (vdir == null) {
+ var rep = getRepository();
@ -121,6 +121,8 @@ index a44a785..0eb811a 100644
+ if( !FileSystem.exists(rdir) )
+ throw "Library "+project+" version "+version+" does not have a run script";
+ }
args.push(Sys.getCwd());
Sys.setCwd(vdir);
var cmd = "neko run.n";
cli.cwd = vdir;
-
var callArgs =
switch try [Data.readData(File.getContent(vdir + '/haxelib.json'), false), null] catch (e:Dynamic) [null, e] {
case [null, e]: