aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormroach2015-04-13 16:11:23 +0800
committerMike McQuaid2015-04-14 11:37:38 -0700
commit8cf7cd70024756c0b532b08bd17f1ee9fbf0fcec (patch)
tree6e4973f61b77576fcc72da783f932378651142e8
parentf1964ec3533abca99e38e19019a838ac9674ed0e (diff)
downloadhomebrew-8cf7cd70024756c0b532b08bd17f1ee9fbf0fcec.tar.bz2
sfk 1.7.4 (new formula)
Single command line binary for performing myriad text and file operations. Closes #38605. Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
-rw-r--r--Library/Formula/sfk.rb18
1 files changed, 18 insertions, 0 deletions
diff --git a/Library/Formula/sfk.rb b/Library/Formula/sfk.rb
new file mode 100644
index 000000000..47d4ab3f8
--- /dev/null
+++ b/Library/Formula/sfk.rb
@@ -0,0 +1,18 @@
+class Sfk < Formula
+ homepage "http://stahlworks.com/dev/swiss-file-knife.html"
+ url "https://downloads.sourceforge.net/project/swissfileknife/1-swissfileknife/1.7.4/sfk-1.7.4.tar.gz"
+ sha256 "aeb9c658d8b87c9a11108736dace65bf495a77a51a6a7585442f90b5183d94b3"
+
+ def install
+ # Using the standard ./configure && make install method does not work with sfk as of this version
+ # As per the build instructions for OS X, this is all you need to do to build sfk
+ system ENV.cxx, "-DMAC_OS_X", "sfk.cpp", "sfkext.cpp", "-o", "sfk"
+
+ # The sfk binary is all you need. There are no man pages or share files
+ bin.install "sfk"
+ end
+
+ test do
+ system "sfk", "ip"
+ end
+end