diff options
| author | nibbles 2bits | 2012-06-12 11:22:50 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2012-06-12 20:34:45 -0700 |
| commit | aa496717ebf36b09941fa7eefaf92818dd520f79 (patch) | |
| tree | e3d89059a447c2b3e76192ff166aba2d11daedff /Library | |
| parent | 12b69939003f7780ecbf002a8c644e59c40c3b6e (diff) | |
| download | homebrew-aa496717ebf36b09941fa7eefaf92818dd520f79.tar.bz2 | |
djvulibre 3.5.25.3
Upgrade djvulibre to version 3.5.25.3.
Add a patch that's upstream to fix missing `INKSCAPE` file.
Curl a half-dozen missing pngs that are now in HEAD in response
to a bug report I filed. Fixes compile error with all compilers.
Add comments containing the removal version and bug report urls.
Remove unrecognized `--disable-debug`, '--with-x', and '--with-qt'.
Use the given flag named `--disable-desktopfiles` rather than the
negatation flag.
Tested on Lion using clang and llvm from XCode-4.3.3.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/djvulibre.rb | 31 |
1 files changed, 24 insertions, 7 deletions
diff --git a/Library/Formula/djvulibre.rb b/Library/Formula/djvulibre.rb index a07ec7d60..f66d01e60 100644 --- a/Library/Formula/djvulibre.rb +++ b/Library/Formula/djvulibre.rb @@ -2,19 +2,36 @@ require 'formula' class Djvulibre < Formula homepage 'http://djvu.sourceforge.net/' - url 'http://downloads.sourceforge.net/project/djvu/DjVuLibre/3.5.24/djvulibre-3.5.24.tar.gz' - sha1 '075d1d4a333a2fe74e4c9240d853be016e27e983' + url 'http://sourceforge.net/projects/djvu/files/DjVuLibre/3.5.25/djvulibre-3.5.25.3.tar.gz' + sha1 'ad35056aabb1950f385360ff59520a82a6f779ec' depends_on 'jpeg' depends_on 'libtiff' + # Remove this at version >= 3.5.25.4. This fixes compile errors where + # INKSCAPE is not found. Reported upstream and fixed in git. + # https://sourceforge.net/tracker/?func=detail&atid=406583&aid=3534102&group_id=32953 + def patches + 'http://djvu.git.sourceforge.net/git/gitweb.cgi?p=djvu/djvulibre.git;a=patch;h=b41a5ac4013ec7dbeeabb88816857581a100ee78' + end + def install + # Several pngs are missing. Reported upstream and fixed in git head. + # https://sourceforge.net/tracker/?func=detail&aid=3534280&group_id=32953&atid=406583 + # http://djvu.git.sourceforge.net/git/gitweb.cgi?p=djvu/djvulibre.git;a=commit;h=67b4df35e5b7806f9f065253d240ce0529aae52e + # Remove at version >= 3.5.25.4 + cd 'desktopfiles' do + curl '-s', '-o', 'prebuilt-hi128-djvu.png', 'http://djvu.git.sourceforge.net/git/gitweb.cgi?p=djvu/djvulibre.git;a=blob_plain;f=desktopfiles/prebuilt-hi128-djvu.png;hb=HEAD' + curl '-s', '-o', 'prebuilt-hi16-djvu.png', 'http://djvu.git.sourceforge.net/git/gitweb.cgi?p=djvu/djvulibre.git;a=blob_plain;f=desktopfiles/prebuilt-hi16-djvu.png;hb=HEAD' + curl '-s', '-o', 'prebuilt-hi20-djvu.png', 'http://djvu.git.sourceforge.net/git/gitweb.cgi?p=djvu/djvulibre.git;a=blob_plain;f=desktopfiles/prebuilt-hi20-djvu.png;hb=HEAD' + curl '-s', '-o', 'prebuilt-hi24-djvu.png', 'http://djvu.git.sourceforge.net/git/gitweb.cgi?p=djvu/djvulibre.git;a=blob_plain;f=desktopfiles/prebuilt-hi24-djvu.png;hb=HEAD' + curl '-s', '-o', 'prebuilt-hi256-djvu.png', 'http://djvu.git.sourceforge.net/git/gitweb.cgi?p=djvu/djvulibre.git;a=blob_plain;f=desktopfiles/prebuilt-hi256-djvu.png;hb=HEAD' + curl '-s', '-o', 'prebuilt-hi72-djvu.png', 'http://djvu.git.sourceforge.net/git/gitweb.cgi?p=djvu/djvulibre.git;a=blob_plain;f=desktopfiles/prebuilt-hi72-djvu.png;hb=HEAD' + curl '-s', '-o', 'prebuilt-hi96-djvu.png', 'http://djvu.git.sourceforge.net/git/gitweb.cgi?p=djvu/djvulibre.git;a=blob_plain;f=desktopfiles/prebuilt-hi96-djvu.png;hb=HEAD' + end + # Don't build X11 GUI apps, Spotlight Importer or QuickLook plugin - system "./configure", "--disable-debug", - "--prefix=#{prefix}", - "--enable-desktopfiles=no", - "--with-x=NO", - "--with-qt=NO" + system './configure', "--prefix=#{prefix}", '--disable-desktopfiles' system "make" system "make install" end |
