diff options
| author | Alexey Ivanov | 2013-09-17 22:35:50 +0400 |
|---|---|---|
| committer | Adam Vandenberg | 2013-09-19 07:33:23 -0700 |
| commit | 8dcdb90f1822227d9ffae8f018a7372ae213b69b (patch) | |
| tree | bdb5a00a52f051f77ece77d61f3ba00633bbb004 /Library | |
| parent | ae2f94a7c0bf2e763bd93d6ce5083867be110b85 (diff) | |
| download | homebrew-8dcdb90f1822227d9ffae8f018a7372ae213b69b.tar.bz2 | |
nanomsg 0.1
nanomsg is a socket library that provides several common communication
patterns. It aims to make the networking layer fast, scalable, and easy
to use. Implemented in C, it works on a wide range of operating systems
with no further dependencies.
Closes #22633.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/nanomsg.rb | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/Library/Formula/nanomsg.rb b/Library/Formula/nanomsg.rb new file mode 100644 index 000000000..040d8e46e --- /dev/null +++ b/Library/Formula/nanomsg.rb @@ -0,0 +1,45 @@ +require 'formula' + +class Nanomsg < Formula + homepage 'http://nanomsg.org' + url 'http://download.nanomsg.org/nanomsg-0.1-alpha.tar.gz' + version '0.1-alpha' + sha1 '6b2d9bd60bfcf9377befa006608598716e1c1fe9' + + head 'https://github.com/nanomsg/nanomsg.git' + + option 'with-test', 'Verify the build with make check' + option 'with-doc', 'Install man pages' if build.head? + option 'without-nanocat', 'Do not install nanocat tool' if build.head? + + if build.head? then + depends_on :autoconf + depends_on :automake + end + + depends_on 'pkg-config'=> :build + depends_on :libtool + + if build.with? 'doc' then + depends_on 'asciidoc' => :build + depends_on 'xmlto' => :build + end + + def install + ENV['XML_CATALOG_FILES'] = "#{etc}/xml/catalog" if build.with? 'doc' + + system './autogen.sh' if build.head? + + args = ["--disable-debug", + "--disable-dependency-tracking", + "--disable-silent-rules", + "--prefix=#{prefix}"] + args << "--disable-nanocat" if build.without? 'nanocat' + args << "--enable-doc" if build.with? 'doc' + + system './configure', *args + system 'make' + system 'make', '-j1', 'check' if build.with? 'test' + system 'make', 'install' + end +end |
