2010-05-03 16:36:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Csstidy <Formula
|
|
|
|
head 'http://csstidy.svn.sourceforge.net/svnroot/csstidy/trunk-cpp/'
|
|
|
|
homepage 'http://csstidy.sourceforge.net/'
|
|
|
|
|
2010-09-19 17:21:57 +00:00
|
|
|
depends_on 'scons' => :build
|
2010-05-03 16:36:04 +00:00
|
|
|
|
|
|
|
def install
|
|
|
|
arch = Hardware.is_64_bit? ? 'x64' : 'ia32'
|
|
|
|
system "scons", "-j #{Hardware.processor_count}",
|
|
|
|
"arch=#{arch}"
|
|
|
|
|
|
|
|
bin.install "release/csstidy/csstidy"
|
|
|
|
end
|
|
|
|
end
|