diff options
| author | Ruben Fonseca | 2013-12-27 23:13:43 +0000 |
|---|---|---|
| committer | Adam Vandenberg | 2014-02-26 18:56:29 -0800 |
| commit | e689b98a7d7b768c05c0c022b9f822fbcfd41584 (patch) | |
| tree | 1a60d0764f2b6d0ad6739a86e13cacc950ed53fe /Library/Formula | |
| parent | 1c9d9b5b559bdb3cc26c6ae80ae713ff8cc74e4a (diff) | |
| download | homebrew-e689b98a7d7b768c05c0c022b9f822fbcfd41584.tar.bz2 | |
tenyr 0.6.0
Closes #25496.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/tenyr.rb | 43 |
1 files changed, 40 insertions, 3 deletions
diff --git a/Library/Formula/tenyr.rb b/Library/Formula/tenyr.rb index 89b0d783f..7a80e9627 100644 --- a/Library/Formula/tenyr.rb +++ b/Library/Formula/tenyr.rb @@ -2,15 +2,52 @@ require 'formula' class Tenyr < Formula homepage 'http://tenyr.info/' - url 'https://github.com/kulp/tenyr/archive/v0.5.0.tar.gz' - sha1 '90b2ef38c25c9d35a9114c28994655b81466f466' + url 'https://github.com/kulp/tenyr/archive/v0.6.0.tar.gz' + sha1 '93f5215f5d788d5ef3e04a1720dcb0685d33ec18' head 'https://github.com/kulp/tenyr.git' - depends_on 'bison' # tenyr requires bison >= 2.5 + depends_on 'bison' => :build # tenyr requires bison >= 2.5 + depends_on 'sdl2' + depends_on 'sdl2_image' + + def patches + DATA + end def install + bison = Formula.factory('bison').bin/"bison" + + inreplace "Makefile" do |s| + s.gsub! "bison", bison + end + system "make" bin.install 'tsim', 'tas', 'tld' end end + +__END__ +diff --git a/src/debugger_parser.y b/src/debugger_parser.y +index c000640..289e4da 100644 +--- a/src/debugger_parser.y ++++ b/src/debugger_parser.y +@@ -13,6 +13,7 @@ + int tdbg_error(YYLTYPE *locp, struct debugger_data *dd, const char *s); + + #define YYLEX_PARAM (dd->scanner) ++void *yyscanner; + + %} + +diff --git a/src/parser.y b/src/parser.y +index 6eb4dd1..e3f23df 100644 +--- a/src/parser.y ++++ b/src/parser.y +@@ -40,6 +40,7 @@ static int check_immediate_size(struct parse_data *pd, YYLTYPE *locp, uint32_t + imm); + + #define YYLEX_PARAM (pd->scanner) ++void *yyscanner; + + struct symbol *symbol_find(struct symbol_list *list, const char *name); |
