homebrew-core/Formula/gengetopt.rb
Jack Nagel fa3d89a7c0 Use automatic mirror selection for GNU downloads
It seems that the main GNU download site has issues in some places
outside the U.S., so we'll use the provided "ftpmirror.gnu.org" to pick
a nearby mirror.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-09-12 15:08:20 -05:00

18 lines
563 B
Ruby

require 'formula'
class Gengetopt < Formula
url 'http://ftpmirror.gnu.org/gengetopt/gengetopt-2.22.4.tar.gz'
homepage 'http://www.gnu.org/software/gengetopt/'
md5 'e69d1b051784eb3a1c9fae36cb8b25ea'
def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}",
"--mandir=#{man}"
system "make"
# Bug in gengetopt's build system; permissions not set on some
# scripts required for installation
chmod_R 0755, 'build-aux/'
system "make install"
end
end