aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorG Coco2012-12-06 14:01:19 -0500
committerAdam Vandenberg2013-01-31 11:35:21 -0800
commit4acb1896df30a4a872c3f121747a300e5dc261f7 (patch)
treee1cf01cb73bbdd55f18e5062dde3136eac287726
parent7a80519e912176916988b0947c0e1fe7a4e50a6d (diff)
downloadhomebrew-4acb1896df30a4a872c3f121747a300e5dc261f7.tar.bz2
srmio 0.1
srmio is a small C library to access the PowerControl of a SRM bike power meter. It's implementing the serial communication protocol to the PowerControls V, VI and 7. Closes #16447. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
-rw-r--r--Library/Formula/srmio.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Formula/srmio.rb b/Library/Formula/srmio.rb
new file mode 100644
index 000000000..de20e2c16
--- /dev/null
+++ b/Library/Formula/srmio.rb
@@ -0,0 +1,17 @@
+require 'formula'
+
+class Srmio < Formula
+ homepage 'http://www.zuto.de/project/srmio/'
+ url 'http://www.zuto.de/project/files/srmio/srmio-0.1.0.tar.gz'
+ sha1 '681fdf78ea0eae889fa93c929c5806da78fcca15'
+
+ def install
+ system "./configure", "--disable-dependency-tracking",
+ "--prefix=#{prefix}"
+ system "make install"
+ end
+
+ def test
+ system "#{bin}/srmcmd", "--help"
+ end
+end