2012-02-11 00:55:51 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Movgrab < Formula
|
|
|
|
homepage 'http://sites.google.com/site/columscode'
|
2012-11-12 02:02:14 +00:00
|
|
|
url 'http://sites.google.com/site/columscode/files/movgrab-1.1.13.tar.gz'
|
|
|
|
sha1 '532e5e529dd4263b54f56965fafab04686f9f873'
|
2012-02-11 00:55:51 +00:00
|
|
|
|
|
|
|
def install
|
2012-05-08 18:23:46 +00:00
|
|
|
# When configure recurses into libUseful-2.0, it puts CC and CFLAGS into
|
|
|
|
# the second configure command line causing an error, invalid host type.
|
|
|
|
# The workaround is to manually configure libUseful-2.0 without those.
|
2012-02-11 00:55:51 +00:00
|
|
|
# The cache-file and srcdir arguments parse ok. So those were left in.
|
2012-10-10 19:40:52 +00:00
|
|
|
# Reported upstream. As of 1.1.12 the dev hasn't solved this yet.
|
2012-05-08 18:23:46 +00:00
|
|
|
system './configure', "--prefix=#{prefix}", '--no-recursion'
|
2012-02-11 00:55:51 +00:00
|
|
|
cd 'libUseful-2.0' do
|
2012-05-08 18:23:46 +00:00
|
|
|
system './configure', "--prefix=#{prefix}",
|
|
|
|
'--cache-file=/dev/null',
|
|
|
|
'--srcdir=.'
|
2012-02-11 00:55:51 +00:00
|
|
|
end
|
2012-05-08 18:23:46 +00:00
|
|
|
system 'make'
|
|
|
|
system 'make install'
|
2012-02-11 00:55:51 +00:00
|
|
|
end
|
|
|
|
end
|