homebrew-core/Formula/odt2txt.rb
Jack Nagel dd8790964e odt2txt: set flags instead of using inreplace
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2011-10-30 18:12:11 -05:00

19 lines
597 B
Ruby

require 'formula'
class Odt2txt < Formula
# Retrieve the HEAD because no releases have been made since the commit that
# includes Makefile rules for Mac OS X.
head 'git://repo.or.cz/odt2txt.git'
homepage 'http://stosberg.net/odt2txt/'
def install
# the build flags in the Makefile contain "/opt" paths
args = ["CC=#{ENV.cc}",
"CFLAGS=#{ENV.cflags}",
"LDFLAGS=#{ENV.cppflags}",
"DESTDIR=#{prefix}"]
# Use the -B flag to force make the install target to circumvent bugs in the Makefile
system "make", "-B", "install", *args
end
end