aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorSimon Sigurdhsson2012-07-01 11:20:09 +0200
committerMax Howell2012-09-03 09:47:02 -0400
commit8507f651daa91b9c21e3866d2d2adc7659452ff5 (patch)
tree110fa55d895aebd550c5267845a043409b96e75b /Library/Formula
parent2e5a38c8b4987a4083dd12d22f043f635144d276 (diff)
downloadhomebrew-8507f651daa91b9c21e3866d2d2adc7659452ff5.tar.bz2
+argp-standalone-1.3
This is an extraction of the Argp header and library from Glibc. It may be used as a dependency for formulae that depend on the argp functionality of Glibc. Closes #13138. Signed-off-by: Max Howell <mxcl@me.com>
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/argp-standalone.rb23
1 files changed, 23 insertions, 0 deletions
diff --git a/Library/Formula/argp-standalone.rb b/Library/Formula/argp-standalone.rb
new file mode 100644
index 000000000..00f3014af
--- /dev/null
+++ b/Library/Formula/argp-standalone.rb
@@ -0,0 +1,23 @@
+require 'formula'
+
+# This is an extraction of the Argp header and library from Glibc. It may be
+# used as a dependency for formulae that depend on the argp functionality of
+# Glibc.
+
+class ArgpStandalone < Formula
+ homepage 'http://www.lysator.liu.se/~nisse/misc/'
+ url 'http://www.lysator.liu.se/~nisse/misc/argp-standalone-1.3.tar.gz'
+ sha1 '815c560680ebdc11694b88de2f8ec15133e0bfa0'
+
+ def patches
+ # This patch fixes compilation with Clang.
+ { :p0 => "https://trac.macports.org/export/86556/trunk/dports/devel/argp-standalone/files/patch-argp-fmtstream.h" }
+ end
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+ system "make install"
+ lib.install 'libargp.a'
+ include.install 'argp.h'
+ end
+end