2010-09-16 10:18:36 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class TinyFugue < Formula
|
2010-09-16 10:18:36 +00:00
|
|
|
homepage 'http://tinyfugue.sourceforge.net/'
|
2013-01-28 03:22:56 +00:00
|
|
|
url 'http://downloads.sourceforge.net/project/tinyfugue/tinyfugue/5.0%20beta%208/tf-50b8.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '37bb70bfb7b44d36c28606c6bd45e435502fb4b4'
|
2010-10-03 01:37:52 +00:00
|
|
|
version '5.0b8'
|
2010-09-16 10:18:36 +00:00
|
|
|
|
|
|
|
depends_on 'libnet'
|
2012-10-26 15:29:55 +00:00
|
|
|
depends_on 'pcre'
|
2010-09-16 10:18:36 +00:00
|
|
|
|
2012-10-26 15:29:55 +00:00
|
|
|
# pcre deprecated pcre_info. Switch to HB pcre-8.31 and pcre_fullinfo.
|
2013-01-28 03:22:56 +00:00
|
|
|
# Not reported upstream; project is in stasis since 2007.
|
2010-09-16 10:18:36 +00:00
|
|
|
def patches
|
2010-10-03 01:37:52 +00:00
|
|
|
DATA
|
2010-09-16 10:18:36 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
|
|
|
system "./configure", "--disable-debug", "--disable-dependency-tracking",
|
2013-01-28 03:22:56 +00:00
|
|
|
"--prefix=#{prefix}",
|
|
|
|
"--enable-getaddrinfo",
|
|
|
|
"--enable-termcap=ncurses"
|
2010-09-16 10:18:36 +00:00
|
|
|
system "make install"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2010-10-03 01:37:52 +00:00
|
|
|
|
2010-09-16 10:18:36 +00:00
|
|
|
__END__
|
2012-10-26 15:29:55 +00:00
|
|
|
--- a/src/malloc.c 2007-01-13 15:12:39.000000000 -0800
|
|
|
|
+++ b/src/malloc.c 2012-10-26 08:23:30.000000000 -0700
|
2010-10-03 01:37:52 +00:00
|
|
|
@@ -7,6 +7,7 @@
|
|
|
|
************************************************************************/
|
|
|
|
static const char RCSid[] = "$Id: malloc.c,v 35004.22 2007/01/13 23:12:39 kkeys Exp $";
|
|
|
|
|
|
|
|
+#include "sys/types.h"
|
|
|
|
#include "tfconfig.h"
|
2010-09-16 10:18:36 +00:00
|
|
|
#include "port.h"
|
|
|
|
#include "signals.h"
|
2012-10-26 15:29:55 +00:00
|
|
|
--- a/src/macro.c 2007-01-13 15:12:39.000000000 -0800
|
|
|
|
+++ b/src/macro.c 2012-10-26 08:15:31.000000000 -0700
|
|
|
|
@@ -893,7 +893,7 @@
|
|
|
|
}
|
|
|
|
spec->attr &= ~F_NONE;
|
|
|
|
if (spec->nsubattr) {
|
|
|
|
- int n = pcre_info(spec->trig.ri->re, NULL, NULL);
|
|
|
|
+ int n = pcre_fullinfo(spec->trig.ri->re, NULL, 0, NULL);
|
|
|
|
for (i = 0; i < spec->nsubattr; i++) {
|
|
|
|
spec->subattr[i].attr &= ~F_NONE;
|
|
|
|
if (spec->subattr[i].subexp > n) {
|
|
|
|
--- a/src/pattern.c 2007-01-13 15:12:39.000000000 -0800
|
|
|
|
+++ b/src/pattern.c 2012-10-26 08:16:19.000000000 -0700
|
|
|
|
@@ -151,7 +151,7 @@
|
|
|
|
emsg ? emsg : "unknown error");
|
|
|
|
goto tf_reg_compile_error;
|
|
|
|
}
|
|
|
|
- n = pcre_info(ri->re, NULL, NULL);
|
|
|
|
+ n = pcre_fullinfo(ri->re, NULL, 0, NULL);
|
|
|
|
if (n < 0) goto tf_reg_compile_error;
|
|
|
|
ri->ovecsize = 3 * (n + 1);
|
|
|
|
ri->ovector = dmalloc(NULL, sizeof(int) * ri->ovecsize, file, line);
|
|
|
|
--- a/src/pattern.h 2007-01-13 15:12:39.000000000 -0800
|
|
|
|
+++ b/src/pattern.h 2012-10-26 08:17:54.000000000 -0700
|
|
|
|
@@ -10,7 +10,7 @@
|
|
|
|
#ifndef PATTERN_H
|
|
|
|
#define PATTERN_H
|
|
|
|
|
|
|
|
-#include "pcre-2.08/pcre.h"
|
|
|
|
+#include <pcre.h>
|
|
|
|
|
|
|
|
typedef struct RegInfo {
|
|
|
|
pcre *re;
|