aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorChristopher Sexton2014-06-17 12:19:59 -0400
committerMike McQuaid2014-06-19 17:01:09 +0100
commitecb52fc722ed90295e0a199785e61b8e82b9af36 (patch)
tree89a707adbad6fdb9a6b65ba68262f39ea3b3ba2e /Library
parenta9aca80d20b3fd16495e7d4987c1af614daab0fa (diff)
downloadhomebrew-ecb52fc722ed90295e0a199785e61b8e82b9af36.tar.bz2
ibeacon 1.0.1 (new formula)
Add formula for Radius Networks iBeacon CLI. A utility for scanning and transmitting iBeacon profiles over Bluetooth 4.0. https://github.com/RadiusNetworks/ibeacon-cli Updats based on feedback: - Download code from tarball - Prefer double quotes - Fix test for version string - Require mavericks (for CLPeripheral#identifier) Note about testing: There was some discussion about adding more thorough tests, that do something a little more useful than print the version number, but this command requires BLE hardware. Since the test bots are VMs or Mac Minis that may not have that hardware it is hard to exercise that functionality. If there is some functionality exposed through the CLI that does not require bluetooth hardware then we should add tests for that.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/ibeacon.rb21
1 files changed, 21 insertions, 0 deletions
diff --git a/Library/Formula/ibeacon.rb b/Library/Formula/ibeacon.rb
new file mode 100644
index 000000000..e0c4f5efe
--- /dev/null
+++ b/Library/Formula/ibeacon.rb
@@ -0,0 +1,21 @@
+require "formula"
+
+class Ibeacon < Formula
+ homepage "https://github.com/RadiusNetworks/ibeacon-cli"
+ url "https://github.com/RadiusNetworks/ibeacon-cli/archive/v1.0.1.tar.gz"
+ sha1 "2f2b635a1211950772c0ae5269b955c280b8fe73"
+ head "https://github.com/RadiusNetworks/ibeacon-cli.git"
+
+ depends_on :macos => :mavericks
+ depends_on :xcode => :build
+
+ def install
+ xcodebuild "-configuration", "Release", "SYMROOT=build", "-verbose"
+ prefix.install "build/Release/ibeacon"
+ bin.write_exec_script "#{prefix}/ibeacon"
+ end
+
+ test do
+ assert `#{bin}/ibeacon --version`.include?("Version")
+ end
+end