2010-11-23 11:26:50 +00:00
|
|
|
require 'formula'
|
|
|
|
|
2011-03-10 05:11:03 +00:00
|
|
|
class Osmosis < Formula
|
2010-11-23 11:26:50 +00:00
|
|
|
homepage 'http://wiki.openstreetmap.org/wiki/Osmosis'
|
2012-04-01 13:55:32 +00:00
|
|
|
url 'http://bretth.dev.openstreetmap.org/osmosis-build/osmosis-0.40.1.zip'
|
2012-09-03 18:33:56 +00:00
|
|
|
sha1 '2a51c35b6270af51f6fffaa9d7ed5fa5e1c30a7b'
|
2010-11-23 11:26:50 +00:00
|
|
|
|
|
|
|
def patches
|
|
|
|
# need to adjust home dir for a clean install
|
|
|
|
DATA
|
|
|
|
end
|
|
|
|
|
|
|
|
def install
|
2012-02-11 04:52:03 +00:00
|
|
|
bin.install 'bin/osmosis'
|
|
|
|
libexec.install %w(lib config script)
|
2010-11-23 11:26:50 +00:00
|
|
|
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.
|