lysp: remove
This commit is contained in:
parent
9acb086c62
commit
2bbb930c8f
1 changed files with 0 additions and 74 deletions
|
@ -1,74 +0,0 @@
|
||||||
class Lysp < Formula
|
|
||||||
desc "Small Lisp interpreter"
|
|
||||||
homepage "http://www.piumarta.com/software/lysp/"
|
|
||||||
url "http://www.piumarta.com/software/lysp/lysp-1.1.tar.gz"
|
|
||||||
sha256 "436a8401f8a5cc4f32108838ac89c0d132ec727239d6023b9b67468485509641"
|
|
||||||
revision 6
|
|
||||||
|
|
||||||
bottle do
|
|
||||||
cellar :any
|
|
||||||
sha256 "9f1474a3af4c8255f59b3da2b8cdba1fca9819be77413f97454024055b6e5084" => :mojave
|
|
||||||
sha256 "e7d9ebdee682743b97380db43b485f61fcd1e16cdd947644d0c28b3421be5cb6" => :high_sierra
|
|
||||||
sha256 "72050185e961e163ac4c722929db03b73a6889d572ca95166134970fa27702ab" => :sierra
|
|
||||||
end
|
|
||||||
|
|
||||||
depends_on "bdw-gc"
|
|
||||||
depends_on "gcc"
|
|
||||||
|
|
||||||
fails_with :clang do
|
|
||||||
cause "use of unknown builtin '__builtin_return'"
|
|
||||||
end
|
|
||||||
|
|
||||||
# Use our CFLAGS
|
|
||||||
patch :DATA
|
|
||||||
|
|
||||||
def install
|
|
||||||
# this option is supported only for ELF object files
|
|
||||||
inreplace "Makefile", "-rdynamic", ""
|
|
||||||
|
|
||||||
system "make", "CC=#{ENV.cc}"
|
|
||||||
bin.install "lysp", "gclysp"
|
|
||||||
end
|
|
||||||
|
|
||||||
test do
|
|
||||||
(testpath/"test.l").write <<~EOS
|
|
||||||
(define println (subr (dlsym "printlnSubr")))
|
|
||||||
(define + (subr (dlsym "addSubr")))
|
|
||||||
(println (+ 40 2))
|
|
||||||
EOS
|
|
||||||
|
|
||||||
assert_equal "42", shell_output("#{bin}/lysp test.l").chomp
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
__END__
|
|
||||||
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
|
|
Loading…
Reference in a new issue