2010-05-03 16:36:04 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Csstidy < Formula
|
2010-05-03 16:36:04 +00:00
|
|
|
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'
|
2011-10-15 05:02:02 +00:00
|
|
|
system "scons", "-j #{ENV.make_jobs}",
|
2010-05-03 16:36:04 +00:00
|
|
|
"arch=#{arch}"
|
|
|
|
|
|
|
|
bin.install "release/csstidy/csstidy"
|
|
|
|
end
|
|
|
|
end
|