Commits

Filippo Valsorda committed 751a0d6

iodine: add patch for Mountain Lion compatibility

Remove failing inreplaces.

This applies the e1e438497a83dbe6800212a0e5cb632907d1b3d9 patch by
@zschoche for Mountain Lion compatibility. It has gone unheard upstream
yarrick/iodine#1 and iodine does not work on 10.8 without.

Closes #16736.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>

  • Participants
  • Parent commits 4562ce4

Comments (0)

Files changed (1)

Library/Formula/iodine.rb

   homepage 'http://code.kryo.se/iodine/'
   sha1 '4fa9a248b8a84df8a727a5d749e669e58136edca'
 
-  def install
-    unless MacOS.version == :leopard
-      inreplace ["src/common.c", "src/dns.c", "src/iodine.c", "src/iodined.c"],
-        "arpa/nameser8_compat", "arpa/nameser_compat"
-    end
+  def patches
+    # 10.8 compatibility; see https://github.com/yarrick/iodine/pull/1
+    "https://github.com/zschoche/iodine/commit/e1e438497a83dbe6800212a0e5cb632907d1b3d9.patch"
+  end
 
+  def install
     system "make", "install", "prefix=#{prefix}"
   end
 end