2010-09-12 10:02:48 +00:00
|
|
|
require 'formula'
|
|
|
|
|
|
|
|
class Jsvc < Formula
|
|
|
|
homepage 'http://commons.apache.org/daemon/jsvc.html'
|
2012-05-14 10:10:55 +00:00
|
|
|
url 'http://archive.apache.org/dist/commons/daemon/source/commons-daemon-1.0.10-native-src.tar.gz'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 'b76272e39fb5c4695a102227d3c52d9c717c4ede'
|
2012-05-14 10:10:55 +00:00
|
|
|
version '1.0.10'
|
2010-09-12 10:02:48 +00:00
|
|
|
|
|
|
|
def install
|
2012-02-07 10:29:39 +00:00
|
|
|
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'
|
2012-02-14 08:28:03 +00:00
|
|
|
system './configure', '--with-java=/System/Library/Frameworks/JavaVM.framework',
|
|
|
|
'--with-os-type=Headers'
|
2012-02-07 10:29:39 +00:00
|
|
|
system 'make'
|
2010-09-12 10:02:48 +00:00
|
|
|
bin.install 'jsvc'
|
|
|
|
end
|
|
|
|
end
|