Created
October 12, 2015 11:26
-
-
Save odekopoon/585e6251e59d0135a294 to your computer and use it in GitHub Desktop.
homebrew shen 19.2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'formula' | |
| class Shen < Formula | |
| url 'http://www.shenlanguage.org/download/Shen.zip' | |
| homepage 'http://www.lambdassociates.org/' | |
| sha1 '3fa8f00d80b5600892fe3dc55ee97a3154a5161e' | |
| version '19.2' | |
| case | |
| when ARGV.include?("--sbcl") then | |
| depends_on 'sbcl' | |
| else | |
| depends_on 'clisp' | |
| end | |
| def options | |
| [["--sbcl", "Build SBCL version."]] | |
| end | |
| def install | |
| case | |
| when ARGV.include?("--sbcl") then | |
| system "cp KLambda/* Platforms/SBCL" | |
| safe_system "cd Platforms/SBCL; sbcl --load install.lsp" | |
| system "mv Platforms/SBCL/Shen.exe shen" | |
| else | |
| system "cp KLambda/* Platforms/CLisp" | |
| safe_system "cd Platforms/CLisp; clisp -i install.lsp" | |
| system "echo \"#!/bin/bash\nclisp -M #{prefix}/Shen.mem $*\" > shen" | |
| prefix.install ['Platforms/CLisp/Shen.mem'] | |
| end | |
| system "chmod 755 shen" | |
| bin.install ['shen'] | |
| end | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment