This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

iRODS 3.2

Closes #16549.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
1 parent 58b5320 commit ef766b1ace75a8d85ba99f1180b07a0f05ccd8e8 @RuiPereira RuiPereira committed with klausmeyer Dec 12, 2012
Showing with 33 additions and 0 deletions.
  1. +33 −0 Library/Formula/irods.rb
View
@@ -0,0 +1,33 @@
+require 'formula'
+
+class Irods < Formula
+ homepage 'https://www.irods.org'
+ url 'https://www.irods.org/cgi-bin/upload16.cgi/irods3.2.tgz'
+ sha1 'd1dd7787e69cfda96b7719af2e50ffbc68485a23'
+
+ option 'with-fuse', 'Install iRODS FUSE client'
+
+ depends_on 'fuse4x' if build.include? 'with-fuse'
+
+ def install
+ system "./scripts/configure"
+ system "make"
+
+ bin.install Dir['clients/icommands/bin/*'].select {|f| File.executable? f}
+
+ # patch in order to use fuse4x
+ if build.include? 'with-fuse'
+ inreplace 'config/config.mk', '# IRODS_FS = 1', 'IRODS_FS = 1'
+ inreplace 'config/config.mk', 'fuseHomeDir=/home/mwan/adil/fuse-2.7.0', "fuseHomeDir=#{HOMEBREW_PREFIX}"
+ chdir 'clients/fuse' do
+ inreplace 'Makefile', 'lfuse', 'lfuse4x'
+ system "make"
+ end
+ bin.install Dir['clients/fuse/bin/*'].select {|f| File.executable? f}
+ end
+ end
+
+ def test
+ system "#{bin}/ipwd"
+ end
+end

0 comments on commit ef766b1

Please sign in to comment.