aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/fdclone.rb
diff options
context:
space:
mode:
authorRyo Okamoto2013-10-12 15:27:10 +0900
committerAdam Vandenberg2013-10-26 09:01:14 -0700
commit4cdce784af6f09cf3c56be016316085e70b6f194 (patch)
tree9cd1ace44fdc1ebb99ca60d89633eb4b7f2268c7 /Library/Formula/fdclone.rb
parentb83568c37d1f4995f0dd25c15dd9f0f24c1681d2 (diff)
downloadhomebrew-4cdce784af6f09cf3c56be016316085e70b6f194.tar.bz2
fdclone 3.01a
Closes #23218. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/fdclone.rb')
-rw-r--r--Library/Formula/fdclone.rb46
1 files changed, 46 insertions, 0 deletions
diff --git a/Library/Formula/fdclone.rb b/Library/Formula/fdclone.rb
new file mode 100644
index 000000000..21bcb3335
--- /dev/null
+++ b/Library/Formula/fdclone.rb
@@ -0,0 +1,46 @@
+require 'formula'
+
+class Fdclone < Formula
+ homepage 'http://hp.vector.co.jp/authors/VA012337/soft/fd/'
+ url 'http://hp.vector.co.jp/authors/VA012337/soft/fd/FD-3.01a.tar.gz'
+ sha1 '5d4f90ccaee67fadcc5d776f90bbe2fd760c4cdd'
+
+ depends_on 'nkf' => :build
+
+ def patches
+ DATA
+ end
+
+ def install
+ ENV.j1
+ system "make", "PREFIX=#{prefix}", "all"
+ system "make", "MANTOP=#{man}", "install"
+
+ %w(README FAQ HISTORY LICENSES TECHKNOW ToAdmin).each do |file|
+ system "nkf", "-w", "--overwrite", file
+ prefix.install "#{file}.eng" => file
+ prefix.install file => "#{file}.ja"
+ end
+
+ share.install "_fdrc" => "fd2rc.dist"
+ end
+
+ def caveats; <<-EOS.undent
+ To install the initial config file:
+ install -c -m 0644 #{share}/fd2rc.dist ~/.fd2rc
+ EOS
+ end
+end
+
+__END__
+diff --git a/machine.h b/machine.h
+index 8bc70ab..39b0d28 100644
+--- a/machine.h
++++ b/machine.h
+@@ -1449,4 +1449,6 @@ typedef unsigned long u_long;
+ #define GETTODARGS 2
+ #endif
+
++#define USEDATADIR
++
+ #endif /* !__MACHINE_H_ */