blob: e776d2e13814c2bb82c9c3468b6a1c02a0f049b9 (
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
  | 
require 'formula'
class VcodexDownloadStrategy < CurlDownloadStrategy
  # downloading from AT&T requires using the following credentials
  def credentials
    'I accept www.opensource.org/licenses/eclipse:.'
  end
  def curl(*args)
    args << '--user' << credentials
    super
  end
end
class Vcodex < Formula
  homepage 'http://www2.research.att.com/~gsf/download/ref/vcodex/vcodex.html'
  url 'http://www2.research.att.com/~gsf/download/tgz/vcodex.2013-05-31.tgz',
      :using => VcodexDownloadStrategy
  sha1 '0423ee95b13069dd617c5f7625484a92d5068ea0'
  version '2013-05-31'
  def install
    # Vcodex makefiles do not work in parallel mode
    ENV.deparallelize
    # make all Vcodex stuff
    system "/bin/sh ./Runmake"
    # install manually
    bin.install Dir['bin/vc*']
    # put all includes into a directory of their own
    (include + "vcodex").install Dir['include/*.h']
    lib.install Dir['lib/*.a']
    man.install 'man/man3'
  end
  def caveats; <<-EOS.undent
    We agreed to the Eclipse Public License 1.0 for you.
    If this is unacceptable you should uninstall.
    EOS
  end
end
  |