homebrew-core/Formula/vcodex.rb

41 lines
1.1 KiB
Ruby
Raw Normal View History

require 'formula'
class VcodexDownloadStrategy < CurlDownloadStrategy
# downloading from AT&T requires using the following credentials
def credentials
2013-09-28 05:12:45 +00:00
'I accept www.opensource.org/licenses/eclipse:.'
end
2013-10-10 02:54:16 +00:00
def curl(*args)
args << '--user' << credentials
super
end
end
2011-03-10 05:11:03 +00:00
class Vcodex < Formula
homepage 'http://www2.research.att.com/~astopen/download/ref/vcodex/vcodex.html'
url 'http://www2.research.att.com/~astopen/download/tgz/vcodex.2013-05-31.tgz',
:using => VcodexDownloadStrategy
2013-09-28 05:12:45 +00:00
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
2013-09-28 05:12:45 +00:00
We agreed to the Eclipse Public License 1.0 for you.
If this is unacceptable you should uninstall.
EOS
end
end