Author: urkud
Date: Wed Aug 18 18:56:03 2010
New Revision: 23235
URL: https://svn.nixos.org/websvn/nix/?rev=23235&sc=1
Log:
antlr-2: compile library
Added:
nixpkgs/trunk/pkgs/development/tools/parsing/antlr/2.7.7-fixes.patch
Modified:
nixpkgs/trunk/pkgs/development/tools/parsing/antlr/2.7.7.nix
Added: nixpkgs/trunk/pkgs/development/tools/parsing/antlr/2.7.7-fixes.patch
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ nixpkgs/trunk/pkgs/development/tools/parsing/antlr/2.7.7-fixes.patch
Wed Aug 18 18:56:03 2010 (r23235)
@@ -0,0 +1,26 @@
+diff --git a/lib/cpp/antlr/CharScanner.hpp b/lib/cpp/antlr/CharScanner.hpp
+index 8a97e97..1835a3e 100644
+--- a/lib/cpp/antlr/CharScanner.hpp
++++ b/lib/cpp/antlr/CharScanner.hpp
+@@ -11,6 +11,8 @@
+ #include <antlr/config.hpp>
+
+ #include <map>
++#include <cstdio>
++#include <cstring>
+
+ #ifdef HAS_NOT_CCTYPE_H
+ #include <ctype.h>
+diff --git a/scripts/config.make.in b/scripts/config.make.in
+index c23dd5c..6057309 100644
+--- a/scripts/config.make.in
++++ b/scripts/config.make.in
+@@ -38,7 +38,7 @@ MAKEOVERRIDES := $(patsubst SUBDIRS=%,,$(MAKEOVERRIDES))
+ all clean distclean test install force-target clean-target ::
+ @dirs="$(SUBDIRS)" ; \
+ test -z "$${dirs}" && { \
+- dirs=`/bin/ls` ; \
++ dirs=`ls` ; \
+ } ; \
+ for d in . $${dirs} ; do \
+ case $${d} in \
Modified: nixpkgs/trunk/pkgs/development/tools/parsing/antlr/2.7.7.nix
==============================================================================
--- nixpkgs/trunk/pkgs/development/tools/parsing/antlr/2.7.7.nix Wed Aug
18 16:37:46 2010 (r23234)
+++ nixpkgs/trunk/pkgs/development/tools/parsing/antlr/2.7.7.nix Wed Aug
18 18:56:03 2010 (r23235)
@@ -6,5 +6,6 @@
url = "http://www.antlr2.org/download/antlr-2.7.7.tar.gz";
sha256 = "1ffvcwdw73id0dk6pj2mlxjvbg0662qacx4ylayqcxgg381fnfl5";
};
+ patches = [ ./2.7.7-fixes.patch ];
buildInputs = [jdk python];
}
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits