summaryrefslogtreecommitdiff
path: root/homebrew/tinyfugue
diff options
context:
space:
mode:
authorMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-20 20:49:46 -0500
committerMCApollo <34170230+MCApollo@users.noreply.github.com>2019-04-23 20:18:47 -0500
commit12335518ab39608d58370c85ff9f5384ad2aa5f7 (patch)
tree352d81f2a2de3f1252af732080ec0fde38c13b4d /homebrew/tinyfugue
parenta2b26ad12d4fa12f0273645caf4be6d0b8b71e7c (diff)
Ported in the homebrew-marauder for a hacky update/import system.
TODO: Maybe add a license & fix up messy code.
Diffstat (limited to 'homebrew/tinyfugue')
-rw-r--r--homebrew/tinyfugue/.beer88
-rw-r--r--homebrew/tinyfugue/.make.sh-auto3
-rw-r--r--homebrew/tinyfugue/_metadata/description1
-rw-r--r--homebrew/tinyfugue/_metadata/homepage1
-rw-r--r--homebrew/tinyfugue/_metadata/name1
-rw-r--r--homebrew/tinyfugue/_metadata/version1
-rwxr-xr-xhomebrew/tinyfugue/download.sh1
-rwxr-xr-xhomebrew/tinyfugue/patches.sh47
8 files changed, 143 insertions, 0 deletions
diff --git a/homebrew/tinyfugue/.beer b/homebrew/tinyfugue/.beer
new file mode 100644
index 000000000..3ea41dafe
--- /dev/null
+++ b/homebrew/tinyfugue/.beer
@@ -0,0 +1,88 @@
+{
+ "name": "TinyFugue",
+ "description": "Programmable MUD client",
+ "url": "https://downloads.sourceforge.net/project/tinyfugue/tinyfugue/5.0%20beta%208/tf-50b8.tar.gz",
+ "mirror": null,
+ "homepage": "https://tinyfugue.sourceforge.io/",
+ "depends": [
+ {
+ "depend": "libnet",
+ "build-depend": false
+ },
+ {
+ "depend": "openssl",
+ "build-depend": false
+ },
+ {
+ "depend": "pcre",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [
+ {
+ "conflict": "tee-clc",
+ "reason": "both install a `tf` binary"
+ }
+ ],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "--- a/src/malloc.c\t2007-01-13 15:12:39.000000000 -0800\n",
+ "+++ b/src/malloc.c\t2012-10-26 08:23:30.000000000 -0700\n",
+ "@@ -7,6 +7,7 @@\n",
+ " ************************************************************************/\n",
+ " static const char RCSid[] = \"$Id: malloc.c,v 35004.22 2007/01/13 23:12:39 kkeys Exp $\";\n",
+ " \n",
+ "+#include \"sys/types.h\"\n",
+ " #include \"tfconfig.h\"\n",
+ " #include \"port.h\"\n",
+ " #include \"signals.h\"\n",
+ "--- a/src/macro.c\t2007-01-13 15:12:39.000000000 -0800\n",
+ "+++ b/src/macro.c\t2012-10-26 08:15:31.000000000 -0700\n",
+ "@@ -893,7 +893,8 @@\n",
+ " }\n",
+ " spec->attr &= ~F_NONE;\n",
+ " if (spec->nsubattr) {\n",
+ "-\tint n = pcre_info(spec->trig.ri->re, NULL, NULL);\n",
+ "+\tint n;\n",
+ "+\tpcre_fullinfo(spec->trig.ri->re, NULL, PCRE_INFO_CAPTURECOUNT, &n);\n",
+ " \tfor (i = 0; i < spec->nsubattr; i++) {\n",
+ " \t spec->subattr[i].attr &= ~F_NONE;\n",
+ " \t if (spec->subattr[i].subexp > n) {\n",
+ "--- a/src/pattern.c\t2007-01-13 15:12:39.000000000 -0800\n",
+ "+++ b/src/pattern.c\t2012-10-26 08:16:19.000000000 -0700\n",
+ "@@ -151,7 +151,7 @@\n",
+ " \t emsg ? emsg : \"unknown error\");\n",
+ " \tgoto tf_reg_compile_error;\n",
+ " }\n",
+ "- n = pcre_info(ri->re, NULL, NULL);\n",
+ "+ pcre_fullinfo(ri->re, NULL, PCRE_INFO_CAPTURECOUNT, &n);\n",
+ " if (n < 0) goto tf_reg_compile_error;\n",
+ " ri->ovecsize = 3 * (n + 1);\n",
+ " ri->ovector = dmalloc(NULL, sizeof(int) * ri->ovecsize, file, line);\n",
+ "--- a/src/pattern.h\t2007-01-13 15:12:39.000000000 -0800\n",
+ "+++ b/src/pattern.h\t2012-10-26 08:17:54.000000000 -0700\n",
+ "@@ -10,7 +10,7 @@\n",
+ " #ifndef PATTERN_H\n",
+ " #define PATTERN_H\n",
+ " \n",
+ "-#include \"pcre-2.08/pcre.h\"\n",
+ "+#include <pcre.h>\n",
+ " \n",
+ " typedef struct RegInfo {\n",
+ " pcre *re;\n"
+ ]
+ }
+ ],
+ "install": [
+ "system \"./configure\", \"--disable-debug\", \"--disable-dependency-tracking\",",
+ "\"--prefix=#{prefix}\",",
+ "\"--enable-getaddrinfo\",",
+ "\"--enable-termcap=ncurses\"",
+ "system \"make\", \"install\""
+ ],
+ "version": "5.0",
+ "file": "tiny-fugue.rb"
+} \ No newline at end of file
diff --git a/homebrew/tinyfugue/.make.sh-auto b/homebrew/tinyfugue/.make.sh-auto
new file mode 100644
index 000000000..4e51f9849
--- /dev/null
+++ b/homebrew/tinyfugue/.make.sh-auto
@@ -0,0 +1,3 @@
+pkg:setup
+pkg:configure --disable-dependency-tracking --enable-getaddrinfo --enable-termcap=ncurses
+make DESTDIR=${PKG_DEST} install
diff --git a/homebrew/tinyfugue/_metadata/description b/homebrew/tinyfugue/_metadata/description
new file mode 100644
index 000000000..74a463196
--- /dev/null
+++ b/homebrew/tinyfugue/_metadata/description
@@ -0,0 +1 @@
+Programmable MUD client
diff --git a/homebrew/tinyfugue/_metadata/homepage b/homebrew/tinyfugue/_metadata/homepage
new file mode 100644
index 000000000..02e0dff9e
--- /dev/null
+++ b/homebrew/tinyfugue/_metadata/homepage
@@ -0,0 +1 @@
+https://tinyfugue.sourceforge.io/
diff --git a/homebrew/tinyfugue/_metadata/name b/homebrew/tinyfugue/_metadata/name
new file mode 100644
index 000000000..99c8cb99b
--- /dev/null
+++ b/homebrew/tinyfugue/_metadata/name
@@ -0,0 +1 @@
+TinyFugue
diff --git a/homebrew/tinyfugue/_metadata/version b/homebrew/tinyfugue/_metadata/version
new file mode 100644
index 000000000..819e07a22
--- /dev/null
+++ b/homebrew/tinyfugue/_metadata/version
@@ -0,0 +1 @@
+5.0
diff --git a/homebrew/tinyfugue/download.sh b/homebrew/tinyfugue/download.sh
new file mode 100755
index 000000000..0718aa1e6
--- /dev/null
+++ b/homebrew/tinyfugue/download.sh
@@ -0,0 +1 @@
+wget https://downloads.sourceforge.net/project/tinyfugue/tinyfugue/5.0%20beta%208/tf-50b8.tar.gz \ No newline at end of file
diff --git a/homebrew/tinyfugue/patches.sh b/homebrew/tinyfugue/patches.sh
new file mode 100755
index 000000000..355dccbdc
--- /dev/null
+++ b/homebrew/tinyfugue/patches.sh
@@ -0,0 +1,47 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+--- a/src/malloc.c 2007-01-13 15:12:39.000000000 -0800
++++ b/src/malloc.c 2012-10-26 08:23:30.000000000 -0700
+@@ -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"
+ #include "port.h"
+ #include "signals.h"
+--- 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,8 @@
+ }
+ 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, PCRE_INFO_CAPTURECOUNT, &n);
+ 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);
++ pcre_fullinfo(ri->re, NULL, PCRE_INFO_CAPTURECOUNT, &n);
+ 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;
+EOF