aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorAdam Vandenberg2012-09-02 11:42:54 -0700
committerAdam Vandenberg2012-09-02 11:42:54 -0700
commit31857e33a2dfe2142ae917ad62dc7aadaca77287 (patch)
tree289303ca806539bfbe3cd90a09d4efe17b3e9feb /Library/Formula
parentd99db9103ef71f5bfd77cca0f803faa8a34a194a (diff)
downloadhomebrew-31857e33a2dfe2142ae917ad62dc7aadaca77287.tar.bz2
libnfc: use new dsl
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/libnfc.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/Library/Formula/libnfc.rb b/Library/Formula/libnfc.rb
index a717a90ba..6b8392876 100644
--- a/Library/Formula/libnfc.rb
+++ b/Library/Formula/libnfc.rb
@@ -1,21 +1,22 @@
require 'formula'
class Libnfc < Formula
- url 'http://libnfc.googlecode.com/files/libnfc-1.5.1.tar.gz'
homepage 'http://www.libnfc.org/'
- md5 '81e3e59496060dc495c95844654a8038'
+ url 'http://libnfc.googlecode.com/files/libnfc-1.5.1.tar.gz'
+ sha1 'aebd4a126f2268d06ade445cd6cf2b3c59256f51'
depends_on 'libusb-compat'
- def options
- [['--with-pn532_uart', 'Enable PN532 UART support']]
- end
+ option 'with-pn532_uart', 'Enable PN532 UART support'
def install
- args = ["--disable-debug", "--disable-dependency-tracking",
- "--prefix=#{prefix}"]
+ args = %W[
+ --disable-debug
+ --disable-dependency-tracking
+ --prefix=#{prefix}
+ ]
- if ARGV.include? '--with-pn532_uart'
+ if build.include? 'with-pn532_uart'
args << "--enable-serial-autoprobe"
args << "--with-drivers=pn532_uart"
end