blob: e15949ca8c776a9b6dc0f0129e4cfbefed6decf0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  | 
require 'formula'
class Jsvc < Formula
  homepage 'http://commons.apache.org/daemon/jsvc.html'
  url 'http://apache.oss.eznetsols.org//commons/daemon/source/commons-daemon-1.0.9-native-src.tar.gz'
  md5 '7f1296384b887ba852fddb4041bd219e'
  version '1.0.9'
  def install
    arch = Hardware.is_64_bit? ? "-arch x86_64" : "-arch i386"
    ENV.append "CFLAGS", arch
    ENV.append "LDFLAGS", arch
    prefix.install %w{ NOTICE.txt LICENSE.txt RELEASE-NOTES.txt }
    cd 'unix'
    system './configure', '--with-java=/System/Library/Frameworks/JavaVM.framework',
                          '--with-os-type=Headers'
    system 'make'
    bin.install 'jsvc'
  end
end
  |