aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorRichard Bronosky2010-05-05 00:43:39 -0400
committerAdam Vandenberg2010-05-04 22:06:39 -0700
commit3e36d87c8a03ac6b3480d2670c6a8cd07855369d (patch)
tree83928354cb269000b2dbb4a6a6cad39e2120e26d /Library/Formula
parente3d3b89bb84e541579f86b67a28586a9fa80842b (diff)
downloadhomebrew-3e36d87c8a03ac6b3480d2670c6a8cd07855369d.tar.bz2
Added a package for catdoc (which includes catppt and xls2csv).
As a DBA I cannot live without xls2csv. It is a very old, very stable project. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/catdoc.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/catdoc.rb b/Library/Formula/catdoc.rb
new file mode 100644
index 000000000..a3778ee60
--- /dev/null
+++ b/Library/Formula/catdoc.rb
@@ -0,0 +1,18 @@
+require 'formula'
+
+class Catdoc <Formula
+ url 'http://ftp.wagner.pp.ru/pub/catdoc/catdoc-0.94.2.tar.gz'
+ homepage 'http://wagner.pp.ru/~vitus/software/catdoc/'
+ # Victor Wagner publishes a SHA1 hash, to keep it simple let's use that instead of MD5
+ sha1 '50ce9d7cb24ad6b10a856c9c24183e2b0a11ca04'
+
+ def install
+ system "./configure --disable-debug --disable-dependency-tracking --prefix=#{prefix}"
+ # The INSTALL file confuses make on case insensitive filesystems.
+ system "mv INSTALL INSTALL.txt"
+ system "make"
+ # There is a race condition in the charsets/Makefile install target. The following line solves it.
+ system "make -C charsets install-dirs"
+ system "make install"
+ end
+end