irods: link osxfuse and use :optional DSL
Closes Homebrew/homebrew#26086. Closes Homebrew/homebrew#26141. Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
61e5008857
commit
98e303a64e
|
@ -7,9 +7,9 @@ class Irods < Formula
|
|||
|
||||
conflicts_with 'sleuthkit', :because => 'both install `ils`'
|
||||
|
||||
option 'with-fuse', 'Install iRODS FUSE client'
|
||||
option 'with-osxfuse', 'Install iRODS FUSE client'
|
||||
|
||||
depends_on 'osxfuse' if build.include? 'with-fuse'
|
||||
depends_on 'osxfuse' => :optional
|
||||
|
||||
def install
|
||||
chdir 'iRODS'
|
||||
|
@ -23,12 +23,13 @@ class Irods < Formula
|
|||
|
||||
bin.install Dir['clients/icommands/bin/*'].select {|f| File.executable? f}
|
||||
|
||||
# patch in order to use fuse4x
|
||||
if build.include? 'with-fuse'
|
||||
# patch in order to use osxfuse
|
||||
if build.with? 'osxfuse'
|
||||
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'
|
||||
inreplace 'Makefile', 'lfuse', 'losxfuse'
|
||||
inreplace 'Makefile', '-I$(fuseHomeDir)/include', '-I$(fuseHomeDir)/include/osxfuse'
|
||||
system 'make'
|
||||
end
|
||||
bin.install Dir['clients/fuse/bin/*'].select {|f| File.executable? f}
|
||||
|
|
Loading…
Reference in New Issue