2010-04-05 19:12:09 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Devtodo < Formula
|
2010-04-05 19:12:09 +00:00
|
|
|
homepage 'http://swapoff.org/DevTodo'
|
2012-03-17 18:30:04 +00:00
|
|
|
url 'http://swapoff.org/files/devtodo/devtodo-0.1.20.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '003067a12139d712dbb3706069e0950a93ecaaf4'
|
2010-04-05 19:12:09 +00:00
|
|
|
|
2012-11-11 03:12:26 +00:00
|
|
|
depends_on "readline"
|
2010-04-05 19:12:09 +00:00
|
|
|
|
2012-03-17 18:30:04 +00:00
|
|
|
# Fix invalid regex. See http://swapoff.org/ticket/54
|
|
|
|
# @adamv - this url not responding 3/17/2012
|
2010-04-05 19:12:09 +00:00
|
|
|
def patches
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
# Rename Regex.h to Regex.hh to avoid case-sensitivity confusion with regex.h
|
2010-04-07 05:58:35 +00:00
|
|
|
mv "util/Regex.h", "util/Regex.hh"
|
2010-04-05 19:12:09 +00:00
|
|
|
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__
|
|
|
|
--- 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,.]+)|(\"[^\"]*\")|('[^']*')))"
|