From eedab84b25931899dc70ca49ace4ae083ed2575b Mon Sep 17 00:00:00 2001 From: Dominyk Tiller Date: Tue, 13 Jan 2015 19:59:57 +0000 Subject: b43-fwcutter 019 Version bump, style nits. Closes #35837. Signed-off-by: Mike McQuaid --- Library/Formula/b43-fwcutter.rb | 35 +++++------------------------------ 1 file changed, 5 insertions(+), 30 deletions(-) (limited to 'Library') diff --git a/Library/Formula/b43-fwcutter.rb b/Library/Formula/b43-fwcutter.rb index 2209275db..dbf8b30e5 100644 --- a/Library/Formula/b43-fwcutter.rb +++ b/Library/Formula/b43-fwcutter.rb @@ -1,21 +1,13 @@ -require "formula" - class B43Fwcutter < Formula homepage "http://wireless.kernel.org/en/users/Drivers/b43" - url "http://bues.ch/b43/fwcutter/b43-fwcutter-018.tar.bz2" - sha1 "e77ff733ec43d77761330e16480b7ffa16c7c5dd" - - # Use OSSwapInt16/32 instead of GNU byteswap.h. - # This has been accepted upstream but has not yet been - # officially released. See: - # https://github.com/mbuesch/b43-tools/pull/1 - patch :DATA + url "http://bues.ch/b43/fwcutter/b43-fwcutter-019.tar.bz2" + sha1 "64198fd2885b0eb0f8968ce3dc2037545b67f065" def install - inreplace 'Makefile' do |m| + inreplace "Makefile" do |m| # Don't try to chown root:root on generated files - m.gsub! /install -o 0 -g 0/, 'install' - m.gsub! /install -d -o 0 -g 0/, 'install -d' + m.gsub! /install -o 0 -g 0/, "install" + m.gsub! /install -d -o 0 -g 0/, "install -d" # Fix manpage installation directory m.gsub! "$(PREFIX)/man", man end @@ -27,20 +19,3 @@ class B43Fwcutter < Formula system "#{bin}/b43-fwcutter", "--version" end end - -__END__ ---- a/fwcutter.h -+++ b/fwcutter.h -@@ -22,2 +22,5 @@ - #define bswap_32bswap32 -+#elif defined(__APPLE__) -+#define bswap_16 OSSwapInt16 -+#define bswap_32 OSSwapInt32 - #endif ---- a/fwcutter.c -+++ b/fwcutter.c -@@ -42,2 +42,4 @@ - #include -+#elif defined(__APPLE__) -+#include - #else -- cgit v1.2.3