homebrew-core/Formula/irods.rb

43 lines
1.2 KiB
Ruby
Raw Normal View History

2014-09-23 15:13:57 +00:00
require "formula"
class Irods < Formula
2014-09-23 15:13:57 +00:00
homepage "https://www.irods.org"
url "https://github.com/irods/irods-legacy/archive/3.3.1.tar.gz"
sha1 "c5d1b3acc1ec58a51466437afbddd2ab46cb1e8f"
2014-09-23 15:13:57 +00:00
conflicts_with "sleuthkit", :because => "both install `ils`"
2013-11-10 07:04:58 +00:00
2014-09-23 15:13:57 +00:00
option "with-osxfuse", "Install iRODS FUSE client"
depends_on :osxfuse => :optional
def install
2014-09-23 15:13:57 +00:00
chdir "iRODS"
system "./scripts/configure"
# include PAM authentication by default
2014-09-23 15:13:57 +00:00
inreplace "config/config.mk", "# PAM_AUTH = 1", "PAM_AUTH = 1"
inreplace "config/config.mk", "# USE_SSL = 1", "USE_SSL = 1"
2014-09-23 15:13:57 +00:00
system "make"
2014-09-23 15:13:57 +00:00
bin.install Dir["clients/icommands/bin/*"].select {|f| File.executable? f}
# patch in order to use osxfuse
2014-09-23 15:13:57 +00:00
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", "losxfuse"
inreplace "Makefile", "-I$(fuseHomeDir)/include", "-I$(fuseHomeDir)/include/osxfuse"
system "make"
end
2014-09-23 15:13:57 +00:00
bin.install Dir["clients/fuse/bin/*"].select {|f| File.executable? f}
end
end
test do
system "#{bin}/ipwd"
end
end