movgrab 1.2.1

Closes Homebrew/homebrew#24852.
Closes Homebrew/homebrew#24871.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
Fred Oliveira 2013-12-02 08:46:28 +00:00 committed by Adam Vandenberg
parent d44710cc8a
commit 06879d9b6a

View file

@ -2,22 +2,18 @@ require 'formula'
class Movgrab < Formula
homepage 'http://sites.google.com/site/columscode'
url 'http://sites.google.com/site/columscode/files/movgrab-1.1.13.tar.gz'
sha1 '532e5e529dd4263b54f56965fafab04686f9f873'
url 'https://sites.google.com/site/columscode/files/movgrab-1.2.1.tar.gz'
sha1 'f5f2f115dfdc2bb3d637f12d6b311910826e2123'
def install
# 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.
# The cache-file and srcdir arguments parse ok. So those were left in.
# Reported upstream. As of 1.1.12 the dev hasn't solved this yet.
system './configure', "--prefix=#{prefix}", '--no-recursion'
cd 'libUseful-2.0' do
system './configure', "--prefix=#{prefix}",
'--cache-file=/dev/null',
'--srcdir=.'
end
system './configure', "--prefix=#{prefix}", "--disable-debug", "--disable-dependency-tracking"
system 'make'
# because case-insensitivity is sadly a thing and while the movgrab
# Makefile itself doesn't declare INSTALL as a phony target, we
# just remove the INSTALL instructions file so we can actually
# just make install
system 'rm INSTALL'
system 'make install'
end
end