blob: df1121726d73d33837859234cff25c8a6db3f9be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  | 
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
  |