diff options
| author | Rui Pereira | 2012-12-12 13:53:51 +0100 |
|---|---|---|
| committer | Adam Vandenberg | 2013-01-04 21:25:37 -0800 |
| commit | f9edc7a3f984fa27a22194b931903ccc5fb85f07 (patch) | |
| tree | d0a36b2ed2ccaa34acec836b97d96e27afae1567 /Library | |
| parent | 16582238a5a6e047cf5966b1ad8026fad7394122 (diff) | |
| download | homebrew-f9edc7a3f984fa27a22194b931903ccc5fb85f07.tar.bz2 | |
iRODS 3.2
Closes #16549.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/irods.rb | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/Library/Formula/irods.rb b/Library/Formula/irods.rb new file mode 100644 index 000000000..7f09526a7 --- /dev/null +++ b/Library/Formula/irods.rb @@ -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 |
