aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorZach Langley2011-10-17 19:55:21 -0400
committerAdam Vandenberg2012-02-18 14:28:03 -0800
commit89d24920cb5e4ebdce2226d23be16462a1984769 (patch)
treef05c7431f75358144b5f3cabaaf1af050b4a4d53 /Library
parent110b10a07189678c9274ec9df0437e0930982f73 (diff)
downloadhomebrew-89d24920cb5e4ebdce2226d23be16462a1984769.tar.bz2
nauty 24r2
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/nauty.rb31
1 files changed, 31 insertions, 0 deletions
diff --git a/Library/Formula/nauty.rb b/Library/Formula/nauty.rb
new file mode 100644
index 000000000..503c5ba5f
--- /dev/null
+++ b/Library/Formula/nauty.rb
@@ -0,0 +1,31 @@
+require 'formula'
+
+class Nauty < Formula
+ homepage 'http://cs.anu.edu.au/~bdm/nauty/'
+ url 'http://cs.anu.edu.au/~bdm/nauty/nauty24r2.tar.gz'
+ version '24r2'
+ md5 '53f83420491a32e3fe9b03a44c559a89'
+
+ def options
+ [['--run-tests', "Runs the included test programs"]]
+ end
+
+ def install
+ system "./configure", "--disable-debug", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make all"
+ system "make checks" if ARGV.include? '--run-tests'
+
+ bin.install %w{ NRswitchg addedgeg amtog biplabg catg complg copyg countg
+ deledgeg directg dreadnaut dretog genbg geng genrang gentourng labelg
+ listg multig newedgeg pickg planarg shortg showg }
+
+ prefix.install 'nug.pdf'
+ end
+
+ def caveats; <<-EOS.undent
+ User guide was saved locally to:
+ #{prefix}/nug.pdf
+ EOS
+ end
+end