diff options
| author | Dominyk Tiller | 2014-11-25 12:03:59 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2014-11-26 07:59:04 +0000 |
| commit | 7d3863c1aada1220db2e528435bf58b381cddcd7 (patch) | |
| tree | 2660158b0eb2e0e19fb5ecf5575f011540ccccbf /Library | |
| parent | b7d03d4f887da9add94c2faf45acfa262cdce110 (diff) | |
| download | homebrew-7d3863c1aada1220db2e528435bf58b381cddcd7.tar.bz2 | |
ucommon 6.2.2 (new formula)
It’s a useful secure library that does stuff; It has a pretty
complicated history, I’d drown the entire commit message if I tried to
explain what it does and why.
Closes #34437.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/ucommon.rb | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Library/Formula/ucommon.rb b/Library/Formula/ucommon.rb new file mode 100644 index 000000000..6611b5061 --- /dev/null +++ b/Library/Formula/ucommon.rb @@ -0,0 +1,27 @@ +require "formula" + +class Ucommon < Formula + homepage "https://www.gnu.org/software/commoncpp/" + url "http://ftpmirror.gnu.org/commonc++/ucommon-6.2.2.tar.gz" + sha1 "867e06988de3dea1d04a71155bf77063df6fcd8f" + + depends_on "pkg-config" => :build + depends_on "gnutls" + + def install + # Replace the ldd with OS X's otool. This is unlikely to be merged upstream. + # Emailed upstream (dyfet at gnu dot org) querying this on 25/11/14. + # It generates a very minor runtime error without the inreplace, so... + inreplace "commoncpp-config.in", "ldd /bin/sh", "otool -L /bin/sh" + inreplace "ucommon-config.in", "ldd /bin/sh", "otool -L /bin/sh" + + system "./configure", "--prefix=#{prefix}", "--disable-dependency-tracking", + "--disable-silent-rules", "--enable-socks", + "--with-sslstack=gnutls", "--with-pkg-config" + system "make", "install" + end + + test do + system "#{bin}/ucommon-config", "--libs" + end +end |
