Dar 2.4.15
Please don’t merge this PR till Homebrew/homebrew#32755 is merged. Closes Homebrew/homebrew#32756. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
This commit is contained in:
parent
6cada1dc6d
commit
041497afe2
1 changed files with 21 additions and 21 deletions
|
@ -1,9 +1,9 @@
|
|||
require 'formula'
|
||||
require "formula"
|
||||
|
||||
class Dar < Formula
|
||||
homepage 'http://dar.linux.free.fr/doc/index.html'
|
||||
url 'https://downloads.sourceforge.net/project/dar/dar/2.4.14/dar-2.4.14.tar.gz'
|
||||
sha1 '77f3592cb80a70f663412ca3cb9008a51c9ca4d6'
|
||||
homepage "http://dar.linux.free.fr/doc/index.html"
|
||||
url "https://downloads.sourceforge.net/project/dar/dar/2.4.15/dar-2.4.15.tar.gz"
|
||||
sha1 "6c175b735410a905fcb07a4549f8b6cbf86b08d8"
|
||||
|
||||
bottle do
|
||||
sha1 "c3602f446508944f94682e4c02236e8a7ef0801c" => :mavericks
|
||||
|
@ -11,22 +11,22 @@ class Dar < Formula
|
|||
sha1 "dc52dcf3187c93bcf7fbabda25987499e32a116d" => :lion
|
||||
end
|
||||
|
||||
option 'with-docs', 'build programming documentation (in particular libdar API documentation) and html man page'
|
||||
option 'with-libgcrypt', 'enable strong encryption support'
|
||||
option 'with-lzo', 'enable lzo compression support'
|
||||
option 'with-upx', 'make executables compressed at installation time'
|
||||
option "with-docs", "build programming documentation (in particular libdar API documentation) and html man page"
|
||||
option "with-libgcrypt", "enable strong encryption support"
|
||||
option "with-lzo", "enable lzo compression support"
|
||||
option "with-upx", "make executables compressed at installation time"
|
||||
|
||||
depends_on 'coreutils' => :build if build.with? 'docs'
|
||||
depends_on 'doxygen' => :build if build.with? 'docs'
|
||||
depends_on 'gettext' => :optional
|
||||
depends_on 'gnu-sed' => :build
|
||||
depends_on 'libgcrypt' => :optional
|
||||
depends_on 'lzo' => :optional
|
||||
depends_on 'upx' => :build if build.with? 'upx'
|
||||
depends_on "coreutils" => :build if build.with? "docs"
|
||||
depends_on "doxygen" => :build if build.with? "docs"
|
||||
depends_on "gettext" => :optional
|
||||
depends_on "gnu-sed" => :build
|
||||
depends_on "libgcrypt" => :optional
|
||||
depends_on "lzo" => :optional
|
||||
depends_on "upx" => :build if build.with? "upx"
|
||||
|
||||
def install
|
||||
ENV.prepend_path 'PATH', "#{Formula['gnu-sed'].opt_prefix}/libexec/gnubin"
|
||||
ENV.prepend_path 'PATH', "#{Formula['coreutils'].libexec}/gnubin" if build.with? 'docs'
|
||||
ENV.prepend_path 'PATH', "#{Formula['coreutils'].libexec}/gnubin" if build.with? "docs"
|
||||
ENV.libstdcxx if ENV.compiler == :clang && MacOS.version >= :mavericks
|
||||
|
||||
args = %W[
|
||||
|
@ -36,12 +36,12 @@ class Dar < Formula
|
|||
--prefix=#{prefix}
|
||||
]
|
||||
|
||||
args << "--disable-build-html" if build.without? 'docs'
|
||||
args << "--disable-libgcrypt-linking" if build.without? 'libgcrypt'
|
||||
args << "--disable-liblzo2-linking" if build.without? 'lzo'
|
||||
args << "--disable-upx" if build.without? 'upx'
|
||||
args << "--disable-build-html" if build.without? "docs"
|
||||
args << "--disable-libgcrypt-linking" if build.without? "libgcrypt"
|
||||
args << "--disable-liblzo2-linking" if build.without? "lzo"
|
||||
args << "--disable-upx" if build.without? "upx"
|
||||
|
||||
system "./configure", *args
|
||||
system "make install"
|
||||
system "make" ,"install"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue