aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/elinks.rb
blob: c23d802e941893abd11c590506181811aca4f768 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
require 'formula'

class Elinks < Formula
  homepage 'http://elinks.or.cz/'
  url 'http://elinks.or.cz/download/elinks-0.11.7.tar.bz2'
  sha1 'd13edc1477d0ab32cafe7d3c1f3a23ae1c0a5c54'

  head 'http://elinks.cz/elinks.git'

  devel do
    version '0.12pre5'
    url 'http://elinks.cz/download/elinks-0.12pre5.tar.bz2'
    md5 '92790144290131ac5e63b44548b45e08'
  end

  if build.head?
    depends_on :automake
    depends_on :libtool
  end

  fails_with :llvm do
    build 2326
  end

  # enables 256 colors, per the manual
  def patches
    DATA
  end

  def install
    ENV.deparallelize
    ENV.delete('LD')
    system "./autogen.sh" if build.head?
    system "./configure", "--prefix=#{prefix}", "--without-spidermonkey"
    system "make install"
  end
end

__END__
diff --git a/features.conf b/features.conf
index 1c0095c..7ee8b0d 100644
--- a/features.conf
+++ b/features.conf
@@ -501,7 +501,7 @@ CONFIG_88_COLORS=no
 #
 # Default: disabled
 
-CONFIG_256_COLORS=no
+CONFIG_256_COLORS=yes
 
 
 ### Ex-mode Interface