]> arthur.barton.de Git - homebrew-alex.git/blobdiff - Formula/identd.rb
identd: Fix "brew audit" problems
[homebrew-alex.git] / Formula / identd.rb
index e7e4aff942c34c19e4131167c397d6f40eff5576..73c211709fb419d767afe57c07b47bf94f9288cc 100644 (file)
@@ -1,9 +1,8 @@
-require 'formula'
-
 class Identd < Formula
-  url 'http://rc.shaunrowland.com/git/identd.git', :using => :git
-  version '0.20120228'
-  homepage 'http://www.shaunrowland.com/fsync/2011/05/15/identd-for-mac-os-x/'
+  desc "Simple IDENT daemon"
+  homepage "http://www.shaunrowland.com/fsync/2011/05/15/identd-for-mac-os-x/"
+  url "http://rc.shaunrowland.com/git/identd.git"
+  version "0.20120228"
 
   def patches
     # manual page: remove "manual uninstall" description
@@ -14,10 +13,10 @@ class Identd < Formula
     inreplace "identd.xcodeproj/project.pbxproj",
       /CODE_SIGN_IDENTITY = \".*\"/, 'CODE_SIGN_IDENTITY=""'
     inreplace "identd/identd.8",
-      /\/usr\/local/, "#{HOMEBREW_PREFIX}"
-    system "xcodebuild -target identd -configuration Release"
-    sbin.install('build/Release/identd')
-    man8.install('identd/identd.8')
+      %r{/usr/local}, "#{HOMEBREW_PREFIX}"
+    xcodebuild "SYMROOT=build", "-target", "identd", "-configuration", "Release"
+    sbin.install("build/Release/identd")
+    man8.install("identd/identd.8")
   end
 end