2010-06-24 03:58:01 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Odt2txt < Formula
|
2010-06-24 03:58:01 +00:00
|
|
|
# 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
|
2011-10-30 23:12:11 +00:00
|
|
|
# the build flags in the Makefile contain "/opt" paths
|
|
|
|
args = ["CC=#{ENV.cc}",
|
|
|
|
"CFLAGS=#{ENV.cflags}",
|
|
|
|
"LDFLAGS=#{ENV.cppflags}",
|
|
|
|
"DESTDIR=#{prefix}"]
|
2010-06-24 03:58:01 +00:00
|
|
|
|
|
|
|
# Use the -B flag to force make the install target to circumvent bugs in the Makefile
|
2011-10-30 23:12:11 +00:00
|
|
|
system "make", "-B", "install", *args
|
2010-06-24 03:58:01 +00:00
|
|
|
end
|
|
|
|
end
|