diff options
| author | Ryan Barnard | 2010-06-23 23:58:01 -0400 |
|---|---|---|
| committer | Adam Vandenberg | 2010-06-24 16:51:44 -0700 |
| commit | d9b8b5b878b7d2c4a628dbae2ba5da652b4cfc91 (patch) | |
| tree | 26b9b4621a0bf0ccd90e425e2c728a5d46940e13 | |
| parent | 003b52193d332973b180a42fdee470aa47e8a352 (diff) | |
| download | homebrew-d9b8b5b878b7d2c4a628dbae2ba5da652b4cfc91.tar.bz2 | |
Added formula for odt2txt tool.
Created a new Homebrew formula for the odt2txt command-line document-to-text conversion tool. Installs
to a snapshot version with Mac support in the Makefile.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
* Remove "/opt" paths from Makefile
| -rw-r--r-- | Library/Formula/odt2txt.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/Library/Formula/odt2txt.rb b/Library/Formula/odt2txt.rb new file mode 100644 index 000000000..89f2959e8 --- /dev/null +++ b/Library/Formula/odt2txt.rb @@ -0,0 +1,20 @@ +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 + inreplace "Makefile" do |s| + # Don't add /opt on OS X + s.gsub! "CFLAGS += -I/opt/local/include", "" + s.gsub! "LDFLAGS += -L/opt/local/lib", "" + end + + # Uses a custom makefile instead of autoconf; we set DESTDIR to the prefix value + # Use the -B flag to force make the install target to circumvent bugs in the Makefile + system "make", "-B", "DESTDIR=#{prefix}", "install" + end +end |
