homebrew-core/Formula/tinyscheme.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

53 lines
1.5 KiB
Ruby

class Tinyscheme < Formula
desc "Very small Scheme implementation"
homepage "http://tinyscheme.sourceforge.net"
url "https://downloads.sourceforge.net/project/tinyscheme/tinyscheme/tinyscheme-1.40/tinyscheme-1.40.tar.gz"
sha256 "c594c84633b1dcfe832e0416cbc9f889b6bae352845e14503883119a941a12fc"
bottle do
sha1 "4946723ab6e7e3689ca087574a3ae7078d50ff84" => :mavericks
sha1 "7c272214c941b749a3e9b57744fbd33564151b78" => :mountain_lion
sha1 "f2f6def9dc2ef11876dd1e307634ac454302ed11" => :lion
end
# Modify compile flags for Mac OS X per instructions
patch :DATA
def install
system "make", "INITDEST=#{share}"
lib.install("libtinyscheme.dylib")
share.install("init.scm")
bin.install("scheme")
end
end
__END__
--- a/makefile 2011-01-16 20:51:17.000000000 +1300
+++ b/makefile 2012-04-08 22:38:11.000000000 +1200
@@ -21,7 +21,7 @@
CC = gcc -fpic
DEBUG=-g -Wall -Wno-char-subscripts -O
Osuf=o
-SOsuf=so
+SOsuf=dylib
LIBsuf=a
EXE_EXT=
LIBPREFIX=lib
@@ -34,7 +34,6 @@
LDFLAGS = -shared
DEBUG=-g -Wno-char-subscripts -O
SYS_LIBS= -ldl
-PLATFORM_FEATURES= -DSUN_DL=1
# Cygwin
#PLATFORM_FEATURES = -DUSE_STRLWR=0
@@ -50,8 +49,7 @@
#LIBPREFIX = lib
#OUT = -o $@
-FEATURES = $(PLATFORM_FEATURES) -DUSE_DL=1 -DUSE_MATH=0 -DUSE_ASCII_NAMES=0
-
+FEATURES = $(PLATFORM_FEATURES) -DUSE_DL=1 -DUSE_MATH=1 -DUSE_ASCII_NAMES=0 -DOSX -DInitFile="\"$(INITDEST)/init.scm"\"
OBJS = scheme.$(Osuf) dynload.$(Osuf)
LIBTARGET = $(LIBPREFIX)tinyscheme.$(SOsuf)