Created
September 8, 2015 12:58
-
-
Save wkentaro/e4299847bbf2eb45661b to your computer and use it in GitHub Desktop.
This file contains 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
# Documentation: https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md | |
# http://www.rubydoc.info/github/Homebrew/homebrew/master/frames | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class Euslisp < Formula | |
desc "EusLisp is an integrated programming system for the research on intelligent robots" | |
homepage "https://github.com/euslisp/EusLisp" | |
url "https://github.com/euslisp/EusLisp/archive/EusLisp-9.15.tar.gz" | |
version "9.15" | |
sha256 "74cf37606bd9fcb38ddcd6dcfbbb0989375faa9c18ada3dff6e39d610d966ea9" | |
head "https://github.com/euslisp/EusLisp.git", :using => :git | |
# depends_on "cmake" => :build | |
# depends_on :x11 # if your formula requires any X11/XQuartz components | |
def install | |
ENV.deparallelize # if your formula fails when building in parallel | |
ENV["ARCHDIR"] = "Darwin" | |
ENV["EUSDIR"] = Dir.pwd | |
ENV["PATH"] = "#{ENV["PATH"]}:#{ENV["EUSDIR"]}/Darwin/bin" | |
ENV["LD_LIBRARY_PATH"] = "#{ENV["EUSDIR"]}/#{ENV["ARCHDIR"]}/lib" | |
cd "lisp" | |
ln_s "Makefile.Darwin", "Makefile" | |
system "make", "eus0" | |
system "make", "eus1" | |
# system "make", "install", "PUBBINDIR=#{bin}" | |
end | |
test do | |
# `test do` will create, run in and delete a temporary directory. | |
# | |
# This test will fail and we won't accept that! It's enough to just replace | |
# "false" with the main program this formula installs, but it'd be nice if you | |
# were more thorough. Run the test with `brew test EusLisp`. Options passed | |
# to `brew install` such as `--HEAD` also need to be provided to `brew test`. | |
# | |
# The installed folder is not in the path, so use the entire path to any | |
# executables being tested: `system "#{bin}/program", "do", "something"`. | |
system "false" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment