Skip to content

Commit

Permalink
colpack 1.0.4
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Vandenberg <[email protected]>
  • Loading branch information
brada authored and adamv committed Dec 3, 2011
1 parent 400f79c commit a57ceb3
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Library/Formula/colpack.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require 'formula'

class Colpack < Formula
url 'http://www.cscapes.org/download/ColPack/ColPack-1.0.4.tar.gz'
homepage 'http://www.cscapes.org/coloringpage/software.htm'
md5 '0595cc882b0232be773ec29e7de24fc1'

def install
inreplace "makefile" do |s|
s.gsub! ".so", ".dylib"
s.gsub! "-soname,", "-install_name,#{prefix}/build/lib/"
s.gsub! "\$\(PWD\)", ".."
s.gsub! ".exe", ""
end
system "make"
prefix.install Dir['build/include','build/lib']
bin.install('ColPack')
end
end

0 comments on commit a57ceb3

Please sign in to comment.