diff options
| author | Juan Sebastian Casallas | 2011-10-04 18:57:28 +0200 |
|---|---|---|
| committer | Charlie Sharpsteen | 2011-10-05 14:31:28 -0700 |
| commit | 922374a39532f0fd494f3564f8d22d9a214d4bbd (patch) | |
| tree | 529afc76845dc45bbbbe66f6ad182a565d35169d /Library | |
| parent | 93c8859a22740a796ed40b758ab760e7dfdc0392 (diff) | |
| download | homebrew-922374a39532f0fd494f3564f8d22d9a214d4bbd.tar.bz2 | |
VRPN: Update to 07.29
-Changed the url of vrpn to download a zip file from unc's ftp instead of pulling from unc's git repo.
-Unc's git repo is now on the formula's head
-Changed version number
-Added libusb (change from rpavlik to support HID)
-Added --docs argument (change from rpavlik to build documentation)
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/vrpn.rb | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/Library/Formula/vrpn.rb b/Library/Formula/vrpn.rb index e0f70f152..ffae4ab99 100644 --- a/Library/Formula/vrpn.rb +++ b/Library/Formula/vrpn.rb @@ -1,14 +1,21 @@ require 'formula' class Vrpn < Formula - url 'git://git.cs.unc.edu/vrpn.git', :tag => 'version_07.28' - version '07.28' + url 'ftp://ftp.cs.unc.edu/pub/packages/GRIP/vrpn/vrpn_07_29.zip' + md5 '422f13fc9cbb62d36c96f3cc3b06cec9' + head 'git://git.cs.unc.edu/vrpn.git' + version '07.29' homepage 'http://vrpn.org' + depends_on 'libusb' # for HID support depends_on 'cmake' => :build + depends_on 'doxygen' if ARGV.include? '--docs' def options - [['--clients', 'Build client apps and tests.']] + [ + ['--clients', 'Build client apps and tests.'], + ['--docs', 'Build doxygen-based API documentation'] + ] end def install @@ -19,12 +26,16 @@ class Vrpn < Formula else args << "-DVRPN_BUILD_CLIENTS:BOOL=OFF" end - args << ".." Dir.mkdir "build" Dir.chdir "build" do system "cmake", *args + + if ARGV.include? '--docs' + system "make doc" + end + system "make install" end end |
