diff options
| author | Jelle Schühmacher | 2010-12-18 14:14:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2010-12-23 22:21:19 +0000 |
| commit | e977a74e42bcdd1c0444e354be8cc57d6b65cfbb (patch) | |
| tree | e3f6495045626f1491aff856d36627ab446f01ec /Library/Formula/djview4.rb | |
| parent | 97930ba7b68c59a8c89168dd736a795471d7afd3 (diff) | |
| download | homebrew-e977a74e42bcdd1c0444e354be8cc57d6b65cfbb.tar.bz2 | |
New Formula: DjView4
A djvu viewer based on djvulibre and Qt
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula/djview4.rb')
| -rw-r--r-- | Library/Formula/djview4.rb | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/Library/Formula/djview4.rb b/Library/Formula/djview4.rb new file mode 100644 index 000000000..0d238a2c2 --- /dev/null +++ b/Library/Formula/djview4.rb @@ -0,0 +1,34 @@ +require 'formula' + +class Djview4 <Formula + url 'http://sourceforge.net/projects/djvu/files/DjView/4.6/djview4-4.6.tar.gz' + homepage 'http://djvu.sourceforge.net/djview4.html' + md5 '642105970467cf0864c0073140d1fa11' + + depends_on 'djvulibre' + depends_on 'qt' + + def install + inreplace "Makefile.in" do |s| + s.gsub! '${INSTALL_PROGRAM} src/djview ${DESTDIR}${bindir}/djview4', '/bin/cp -r src/djview.app ${DESTDIR}${prefix}' + end + system "./configure", "--disable-debug", + "--disable-dependency-tracking", + "--prefix=#{prefix}", + "--with-x=no", + "--disable-desktopfiles" + system "make" + system "make install" + # Remove bad symlink created by make install + bin.rmtree + end + + def caveats; <<-EOS + djview.app was installed in: + #{prefix} + + To symlink into ~/Applications, you can do: + brew linkapps + EOS + end +end |
