2013-02-11 17:09:24 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Minizinc < Formula
|
2013-07-08 09:07:36 +00:00
|
|
|
homepage 'http://www.minizinc.org'
|
|
|
|
url 'http://www.minizinc.org/downloads/release-1.6/minizinc-1.6-x86_64-apple-darwin.tar.gz'
|
2013-02-11 17:09:24 +00:00
|
|
|
sha1 '71f0e08962eb8bb44c463851f0144c8b006fdb80'
|
|
|
|
|
2013-04-01 16:53:13 +00:00
|
|
|
depends_on :arch => :x86_64
|
2013-02-11 17:09:24 +00:00
|
|
|
|
2014-03-20 01:21:14 +00:00
|
|
|
# remove echoed recommendations about linking directories
|
|
|
|
# add installation location as parameter of SETUP script
|
|
|
|
patch :DATA
|
2013-02-11 17:09:24 +00:00
|
|
|
|
|
|
|
def install
|
2013-07-09 15:33:40 +00:00
|
|
|
system "sh", "SETUP", libexec
|
2013-02-11 17:09:24 +00:00
|
|
|
man.install Dir['doc/man/*']
|
2013-07-09 15:33:40 +00:00
|
|
|
libexec.install 'bin', 'lib'
|
|
|
|
bin.install_symlink Dir["#{libexec}/bin/*"]
|
|
|
|
(bin/'private').unlink
|
2013-02-11 17:09:24 +00:00
|
|
|
end
|
|
|
|
|
2014-02-23 21:31:41 +00:00
|
|
|
test do
|
2013-02-11 17:09:24 +00:00
|
|
|
system "#{bin}/mzn2fzn", "--help"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
__END__
|
|
|
|
diff --git a/SETUP b/SETUP
|
|
|
|
index 33d973e..7715800 100755
|
|
|
|
--- a/SETUP
|
|
|
|
+++ b/SETUP
|
|
|
|
@@ -33,7 +33,3 @@ chmod a+x bin/mzn2fzn
|
|
|
|
#----------------------------------------------------------------------------#
|
|
|
|
|
|
|
|
echo "-- G12 MiniZinc distribution setup complete."
|
|
|
|
-echo
|
|
|
|
-echo "-- Don't forget to add $INSTALL_PATH/bin to your PATH"
|
|
|
|
-echo "-- and $INSTALL_PATH/doc/man to your MANPATH."
|
|
|
|
-echo
|
|
|
|
|
|
|
|
diff --git a/SETUP b/SETUP
|
|
|
|
index 7715800..71c93b6 100755
|
|
|
|
--- a/SETUP
|
|
|
|
+++ b/SETUP
|
|
|
|
@@ -11,7 +11,7 @@
|
|
|
|
|
|
|
|
#-----------------------------------------------------------------------------#
|
|
|
|
|
|
|
|
-INSTALL_PATH=`pwd`
|
|
|
|
+INSTALL_PATH=$1
|
|
|
|
EXEEXT=""
|
|
|
|
|
|
|
|
#----------------------------------------------------------------------------#
|