homebrew-core/Formula/horndis.rb
BrewTestBot 95884bae22 Formula files style updates.
Closes Homebrew/homebrew#42407.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
2015-08-03 14:21:42 +01:00

30 lines
1.1 KiB
Ruby

class Horndis < Formula
desc "USB tethering driver for OS X"
homepage "http://joshuawise.com/horndis"
url "https://github.com/jwise/HoRNDIS/archive/rel7.tar.gz"
sha256 "62963e3c4e7fc81f3babd6843e516fde682f5065730d6eb62dc58480719917cd"
bottle do
cellar :any
sha1 "0d55b2656caeb26a77ee1eb5d6785bbf85529a0b" => :mavericks
sha1 "5f8c5a67a3c3eaa99e60f59e1b2910a95ca2bdb6" => :mountain_lion
end
depends_on UnsignedKextRequirement
depends_on :xcode => :build
def install
xcodebuild "-configuration", "Release", "SDKROOT=",
"MACOSX_DEPLOYMENT_TARGET=",
"GCC_VERSION=",
"ONLY_ACTIVE_ARCH=YES",
"SYMROOT=build"
kext_prefix.install "build/Release/HoRNDIS.kext"
end
def caveats; <<-EOS.undent
In order for HoRNDIS to work, kernel extension must be installed by the root user:
$ sudo /bin/cp -rfX #{kext_prefix}/HoRNDIS.kext /Library/Extensions
EOS
end
end