diff options
| author | theirix | 2015-04-13 01:02:49 +0300 |
|---|---|---|
| committer | Jack Nagel | 2015-04-17 14:37:22 -0400 |
| commit | 9a7ee1d8d74d7da3a2eb5e5723c1a9967ae9e0a3 (patch) | |
| tree | 690234ecd563fe5c07190694cdff6f5fc19ff289 /Library/Formula | |
| parent | 5662d4abb7c18458193f011defaf287e4fa24974 (diff) | |
| download | homebrew-9a7ee1d8d74d7da3a2eb5e5723c1a9967ae9e0a3.tar.bz2 | |
djview4 4.10.3
Closes #38594.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/djview4.rb | 50 |
1 files changed, 3 insertions, 47 deletions
diff --git a/Library/Formula/djview4.rb b/Library/Formula/djview4.rb index 511789e26..046a867c0 100644 --- a/Library/Formula/djview4.rb +++ b/Library/Formula/djview4.rb @@ -2,22 +2,18 @@ require 'formula' class Djview4 < Formula homepage 'http://djvu.sourceforge.net/djview4.html' - url 'https://downloads.sourceforge.net/project/djvu/DjView/4.8/djview-4.8.tar.gz' - sha1 '266d207afb63a1ee63eed054190bf88888fda572' + url 'https://downloads.sourceforge.net/project/djvu/DjView/4.10/djview-4.10.3.tar.gz' + sha1 '5e31fec525d05744454bd0b74f0375acde1ad66c' depends_on 'pkg-config' => :build depends_on 'djvulibre' depends_on 'qt' - # Patch for Qt 4.8 compatibility. See: - # https://build.opensuse.org/package/view_file?file=djview4-qt-4.8.patch&package=djvulibre-djview4&project=graphics&rev=8c40ae0f91469bb1af80f36c24516251 - # When updating this formula, check if this patch is still needed. - patch :DATA - def install system "./configure", "--disable-debug", "--prefix=#{prefix}", "--with-x=no", + "--disable-nsdejavu", "--disable-desktopfiles" system "make", "CC=#{ENV.cc}", "CXX=#{ENV.cxx}" @@ -27,43 +23,3 @@ class Djview4 < Formula prefix.install 'src/djview.app' end end - - -__END__ -Index: djview-4.8/src/qdjvuwidget.cpp -=================================================================== ---- djview-4.8.orig/src/qdjvuwidget.cpp -+++ djview-4.8/src/qdjvuwidget.cpp -@@ -153,7 +153,7 @@ all_numbers(const char *s) - } - - template<class T> static inline void --swap(T& x, T& y) -+myswap(T& x, T& y) - { - T tmp; - tmp = x; -@@ -173,11 +173,11 @@ ksmallest(T *v, int n, int k) - /* Sort v[lo], v[m], v[hi] by insertion */ - m = (lo+hi)/2; - if (v[lo]>v[m]) -- swap(v[lo],v[m]); -+ myswap(v[lo],v[m]); - if (v[m]>v[hi]) { -- swap(v[m],v[hi]); -+ myswap(v[m],v[hi]); - if (v[lo]>v[m]) -- swap(v[lo],v[m]); -+ myswap(v[lo],v[m]); - } - /* Extract pivot, place sentinel */ - pivot = v[m]; -@@ -191,7 +191,7 @@ ksmallest(T *v, int n, int k) - do ++l; while (v[l]<pivot); - do --h; while (v[h]>pivot); - if (l < h) { -- swap(v[l],v[h]); -+ myswap(v[l],v[h]); - goto loop; - } - /* Finish up */ |
