blob: a1c8c5c4cf271cfac5b4ce2d29caaf4fcb1c7257 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
require 'formula'
class Osmosis < Formula
url 'http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-0.38.zip'
homepage 'http://wiki.openstreetmap.org/wiki/Osmosis'
md5 'e0d48f644485578625482f5e660b2358'
def patches
# need to adjust home dir for a clean install
DATA
end
def install
bin.install Dir['bin/osmosis']
%w(lib config script).each { |d| libexec.install d }
end
end
__END__
--- a/bin/osmosis 2010-11-16 06:58:44.000000000 +0100
+++ b/bin/osmosis 2010-11-23 12:13:01.000000000 +0100
@@ -83,6 +83,7 @@
saveddir=`pwd`
MYAPP_HOME=`dirname "$PRG"`/..
MYAPP_HOME=`cd "$MYAPP_HOME" && pwd`
+MYAPP_HOME="$MYAPP_HOME/libexec"
cd "$saveddir"
# Build up the classpath of required jar files via classworlds launcher.
|