summaryrefslogtreecommitdiff
path: root/homebrew/lysp
diff options
context:
space:
mode:
Diffstat (limited to 'homebrew/lysp')
-rw-r--r--homebrew/lysp/.beer63
-rw-r--r--homebrew/lysp/.make.sh-auto4
-rw-r--r--homebrew/lysp/_metadata/description1
-rw-r--r--homebrew/lysp/_metadata/homepage1
-rw-r--r--homebrew/lysp/_metadata/name1
-rw-r--r--homebrew/lysp/_metadata/version1
-rwxr-xr-xhomebrew/lysp/download.sh1
-rwxr-xr-xhomebrew/lysp/patches.sh33
8 files changed, 105 insertions, 0 deletions
diff --git a/homebrew/lysp/.beer b/homebrew/lysp/.beer
new file mode 100644
index 000000000..311093745
--- /dev/null
+++ b/homebrew/lysp/.beer
@@ -0,0 +1,63 @@
+{
+ "name": "Lysp",
+ "description": "Small Lisp interpreter",
+ "url": "http://www.piumarta.com/software/lysp/lysp-1.1.tar.gz",
+ "mirror": null,
+ "homepage": "http://www.piumarta.com/software/lysp/",
+ "depends": [
+ {
+ "depend": "bdw-gc",
+ "build-depend": false
+ },
+ {
+ "depend": "gcc",
+ "build-depend": false
+ }
+ ],
+ "resource": [],
+ "conflicts": [],
+ "patches": [
+ {
+ "url": null,
+ "data": [
+ "diff --git a/Makefile b/Makefile\n",
+ "index fc3f5d9..0b0e20d 100644\n",
+ "--- a/Makefile\n",
+ "+++ b/Makefile\n",
+ "@@ -1,6 +1,3 @@\n",
+ "-CFLAGS = -O -g -Wall\n",
+ "-CFLAGSO = -O3 -g -Wall -DNDEBUG\n",
+ "-CFLAGSs = -Os -g -Wall -DNDEBUG\n",
+ " LDLIBS = -rdynamic\n",
+ " \n",
+ " all : lysp gclysp\n",
+ "@@ -10,15 +7,15 @@ lysp : lysp.c gc.c\n",
+ " \tsize $@\n",
+ " \n",
+ " olysp: lysp.c gc.c\n",
+ "-\t$(CC) $(CFLAGSO) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl\n",
+ "+\t$(CC) $(CFLAGS) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl\n",
+ " \tsize $@\n",
+ " \n",
+ " ulysp: lysp.c gc.c\n",
+ "-\t$(CC) $(CFLAGSs) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl\n",
+ "+\t$(CC) $(CFLAGS) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl\n",
+ " \tsize $@\n",
+ " \n",
+ " gclysp: lysp.c\n",
+ "-\t$(CC) $(CFLAGSO) -DBDWGC=1 -o $@ lysp.c $(LDLIBS) -lgc\n",
+ "+\t$(CC) $(CFLAGS) -DBDWGC=1 -o $@ lysp.c $(LDLIBS) -lgc\n",
+ " \tsize $@\n",
+ " \n",
+ " run : all\n"
+ ]
+ }
+ ],
+ "install": [
+ "inreplace \"Makefile\", \"-rdynamic\", \"\"",
+ "system \"make\", \"CC=#{ENV.cc}\"",
+ "bin.install \"lysp\", \"gclysp\""
+ ],
+ "version": "1.1",
+ "file": "lysp.rb"
+} \ No newline at end of file
diff --git a/homebrew/lysp/.make.sh-auto b/homebrew/lysp/.make.sh-auto
new file mode 100644
index 000000000..a034e57d0
--- /dev/null
+++ b/homebrew/lysp/.make.sh-auto
@@ -0,0 +1,4 @@
+pkg:setup
+inreplace "Makefile", "-rdynamic", ""
+make CC=${PKG_TARG}-clang
+bin.install "lysp", "gclysp"
diff --git a/homebrew/lysp/_metadata/description b/homebrew/lysp/_metadata/description
new file mode 100644
index 000000000..468589b94
--- /dev/null
+++ b/homebrew/lysp/_metadata/description
@@ -0,0 +1 @@
+Small Lisp interpreter
diff --git a/homebrew/lysp/_metadata/homepage b/homebrew/lysp/_metadata/homepage
new file mode 100644
index 000000000..d55b43064
--- /dev/null
+++ b/homebrew/lysp/_metadata/homepage
@@ -0,0 +1 @@
+http://www.piumarta.com/software/lysp/
diff --git a/homebrew/lysp/_metadata/name b/homebrew/lysp/_metadata/name
new file mode 100644
index 000000000..3e47d991d
--- /dev/null
+++ b/homebrew/lysp/_metadata/name
@@ -0,0 +1 @@
+Lysp
diff --git a/homebrew/lysp/_metadata/version b/homebrew/lysp/_metadata/version
new file mode 100644
index 000000000..9459d4ba2
--- /dev/null
+++ b/homebrew/lysp/_metadata/version
@@ -0,0 +1 @@
+1.1
diff --git a/homebrew/lysp/download.sh b/homebrew/lysp/download.sh
new file mode 100755
index 000000000..5666a33bb
--- /dev/null
+++ b/homebrew/lysp/download.sh
@@ -0,0 +1 @@
+wget http://www.piumarta.com/software/lysp/lysp-1.1.tar.gz \ No newline at end of file
diff --git a/homebrew/lysp/patches.sh b/homebrew/lysp/patches.sh
new file mode 100755
index 000000000..f97484035
--- /dev/null
+++ b/homebrew/lysp/patches.sh
@@ -0,0 +1,33 @@
+echo 'Creating brew-patch.diff'
+cat << EOF >> brew-patch.diff
+diff --git a/Makefile b/Makefile
+index fc3f5d9..0b0e20d 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,6 +1,3 @@
+-CFLAGS = -O -g -Wall
+-CFLAGSO = -O3 -g -Wall -DNDEBUG
+-CFLAGSs = -Os -g -Wall -DNDEBUG
+ LDLIBS = -rdynamic
+
+ all : lysp gclysp
+@@ -10,15 +7,15 @@ lysp : lysp.c gc.c
+ size $@
+
+ olysp: lysp.c gc.c
+- $(CC) $(CFLAGSO) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl
++ $(CC) $(CFLAGS) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl
+ size $@
+
+ ulysp: lysp.c gc.c
+- $(CC) $(CFLAGSs) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl
++ $(CC) $(CFLAGS) -DBDWGC=0 -o $@ lysp.c gc.c $(LDLIBS) -ldl
+ size $@
+
+ gclysp: lysp.c
+- $(CC) $(CFLAGSO) -DBDWGC=1 -o $@ lysp.c $(LDLIBS) -lgc
++ $(CC) $(CFLAGS) -DBDWGC=1 -o $@ lysp.c $(LDLIBS) -lgc
+ size $@
+
+ run : all
+EOF