aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/argp-standalone.rb
blob: 00f3014af6081e28f43cd8e490db3988b342145d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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