aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorMichael Wild2010-04-05 21:12:09 +0200
committerAdam Vandenberg2010-05-20 14:59:17 -0700
commit4d4cab7c2bf79bb96393d13378ed95b5d031e164 (patch)
treeff9a58308aaeaa9783ffb52013cb45676f12aa1c /Library/Formula
parent97d661fd9939c112e880046a902de442ba1f6444 (diff)
downloadhomebrew-4d4cab7c2bf79bb96393d13378ed95b5d031e164.tar.bz2
Add devtodo formula
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/devtodo.rb42
1 files changed, 42 insertions, 0 deletions
diff --git a/Library/Formula/devtodo.rb b/Library/Formula/devtodo.rb
new file mode 100644
index 000000000..9420373f8
--- /dev/null
+++ b/Library/Formula/devtodo.rb
@@ -0,0 +1,42 @@
+require 'formula'
+
+class Devtodo <Formula
+ url 'http://swapoff.org/files/devtodo/devtodo-0.1.20.tar.gz'
+ homepage 'http://swapoff.org/DevTodo'
+ md5 '4a6241437cb56f237f850bcd2233c3c4'
+
+ depends_on "readline"
+
+ def patches
+ DATA
+ end
+
+ def install
+ # Rename Regex.h to Regex.hh to avoid case-sensitivity confusion with regex.h
+ FileUtils.mv "util/Regex.h", "util/Regex.hh"
+ inreplace ["util/Lexer.h", "util/Makefile.in", "util/Regex.cc"],
+ "Regex.h", "Regex.hh"
+
+ system "./configure", "--disable-debug",
+ "--disable-dependency-tracking",
+ "--prefix=#{prefix}",
+ "--mandir=#{man}"
+ system "make install"
+ doc.install 'contrib'
+ end
+end
+
+__END__
+Fix invalid regex. See http://swapoff.org/ticket/54
+
+--- a/util/XML.cc Mon Dec 10 22:26:55 2007
++++ b/util/XML.cc Mon Dec 10 22:27:07 2007
+@@ -49,7 +49,7 @@ void XML::init() {
+ // Only initialise scanners once
+ if (!initialised) {
+ // <?xml version="1.0" encoding="UTF-8" standalone="no"?>
+- xmlScan.addPattern(XmlDecl, "<\\?xml.*?>[[:space:]]*");
++ xmlScan.addPattern(XmlDecl, "<\\?xml.*\\?>[[:space:]]*");
+ xmlScan.addPattern(XmlCommentBegin, "<!--");
+ xmlScan.addPattern(XmlBegin, "<[a-zA-Z0-9_-]+"
+ "([[:space:]]+[a-zA-Z_0-9-]+=(([/a-zA-Z_0-9,.]+)|(\"[^\"]*\")|('[^']*')))"