homebrew-core/Formula/jsvc.rb
Alessandro Brandimarti 8711f2f2a0 jsvc 1.0.10
Closes Homebrew/homebrew#12237.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
2012-05-14 17:04:38 -05:00

22 lines
665 B
Ruby

require 'formula'
class Jsvc < Formula
homepage 'http://commons.apache.org/daemon/jsvc.html'
url 'http://archive.apache.org/dist/commons/daemon/source/commons-daemon-1.0.10-native-src.tar.gz'
md5 '36d5a1daa9d477d00cd3ad80226325c5'
version '1.0.10'
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