diff options
| author | Baptiste Fontaine | 2015-01-27 13:26:13 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-01-27 13:00:25 +0000 |
| commit | 14fba670e419edad000ec7e2a77aa5f6e5e85194 (patch) | |
| tree | 3de2cef2bc691d8187173e4e4814b1840164e67a /Library/Formula | |
| parent | b642ad2f610fc8af9a01fec0720bd93b995fda5f (diff) | |
| download | homebrew-14fba670e419edad000ec7e2a77aa5f6e5e85194.tar.bz2 | |
yaws 1.99
Closes #36269.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/yaws.rb | 37 |
1 files changed, 17 insertions, 20 deletions
diff --git a/Library/Formula/yaws.rb b/Library/Formula/yaws.rb index a49c59a87..0ddb196ac 100644 --- a/Library/Formula/yaws.rb +++ b/Library/Formula/yaws.rb @@ -1,13 +1,11 @@ -require 'formula' - class Yaws < Formula - homepage 'http://yaws.hyber.org' - url 'https://github.com/klacke/yaws/archive/yaws-1.98.tar.gz' - sha1 'a4628ef14f13ac33e4ace1b679e600a9fbd2f1ba' - head 'https://github.com/klacke/yaws.git' + homepage "http://yaws.hyber.org" + url "https://github.com/klacke/yaws/archive/yaws-1.99.tar.gz" + sha1 "ea407afe7b080ed065182d73503899a75360dfaf" + head "https://github.com/klacke/yaws.git" option "without-yapp", "Omit yaws applications" - option '32-bit' + option "32-bit" depends_on "autoconf" => :build depends_on "automake" => :build @@ -15,38 +13,37 @@ class Yaws < Formula depends_on "erlang" # the default config expects these folders to exist - skip_clean 'var/log/yaws' - skip_clean 'lib/yaws/examples/ebin' - skip_clean 'lib/yaws/examples/include' + skip_clean "var/log/yaws" + skip_clean "lib/yaws/examples/ebin" + skip_clean "lib/yaws/examples/include" def install if build.build_32_bit? - ENV.append %w{CFLAGS LDFLAGS}, "-arch #{Hardware::CPU.arch_32_bit}" + ENV.append %w[CFLAGS LDFLAGS], "-arch #{Hardware::CPU.arch_32_bit}" end system "autoreconf", "-fvi" system "./configure", "--prefix=#{prefix}", # Ensure pam headers are found on Xcode-only installs "--with-extrainclude=#{MacOS.sdk_path}/usr/include/security" - system "make install" + system "make", "install" if build.with? "yapp" - cd 'applications/yapp' do + cd "applications/yapp" do system "make" - system "make install" + system "make", "install" end end # the default config expects these folders to exist - (lib/'yaws/examples/ebin').mkpath - (lib/'yaws/examples/include').mkpath + (lib/"yaws/examples/ebin").mkpath + (lib/"yaws/examples/include").mkpath - (var/'log/yaws').mkpath - (var/'yaws/www').mkpath + (var/"log/yaws").mkpath + (var/"yaws/www").mkpath end test do - system bin/'yaws', '--version' + system bin/"yaws", "--version" end - end |
