From 4e0cc181ee7ff6d4f1392f4cc5b61e2b158462c4 Mon Sep 17 00:00:00 2001 From: stas Date: Fri, 25 Sep 2009 12:14:32 +0000 Subject: - Add port for astro/osmosis. WWW: http://wiki.openstreetmap.org/wiki/Osmosis Submitted by: glebius@ Feature safe: yes --- astro/osmosis/Makefile | 54 ++++++++++++++++++++++++++ astro/osmosis/distinfo | 3 ++ astro/osmosis/files/osmosis.in | 86 ++++++++++++++++++++++++++++++++++++++++++ astro/osmosis/pkg-descr | 9 +++++ 4 files changed, 152 insertions(+) create mode 100644 astro/osmosis/Makefile create mode 100644 astro/osmosis/distinfo create mode 100644 astro/osmosis/files/osmosis.in create mode 100644 astro/osmosis/pkg-descr (limited to 'astro/osmosis') diff --git a/astro/osmosis/Makefile b/astro/osmosis/Makefile new file mode 100644 index 000000000000..73faa4e70a1b --- /dev/null +++ b/astro/osmosis/Makefile @@ -0,0 +1,54 @@ +# New ports collection makefile for: osmosis +# Date created: 2009/09/21 +# Whom: Gleb Smirnoff +# +# $FreeBSD$ +# + +PORTNAME= osmosis +PORTVERSION= 0.31.2 +CATEGORIES= astro java +MASTER_SITES= http://dev.openstreetmap.org/~bretth/osmosis-build/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-bin + +MAINTAINER= glebius@FreeBSD.org +COMMENT= A command line java app for processing OpenStreetMap data + +NO_BUILD= yes + +USE_JAVA= YES +JAVA_VERSION= 1.6+ + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} +SUB_FILES= osmosis + +FETCH_ARGS= -pRr +JAVAJARDIR_REL= ${JAVAJARDIR:C,${PREFIX}/?,,} +JARFILES= aopalliance-1.0.jar \ + bzip2-20090327.jar \ + commons-dbcp-1.2.2.jar \ + commons-logging-1.1.1.jar \ + commons-pool-1.3.jar \ + jpf-1.5.jar \ + mysql-connector-java-5.1.6.jar \ + postgis-1.3.2.jar \ + postgresql-8.3-603.jdbc4.jar \ + spring-beans-2.5.6.SEC01.jar \ + spring-context-2.5.6.SEC01.jar \ + spring-core-2.5.6.SEC01.jar \ + spring-jdbc-2.5.6.SEC01.jar \ + spring-tx-2.5.6.SEC01.jar \ + stax2-api-3.0.1.jar \ + woodstox-core-lgpl-4.0.3.jar + +PLIST_FILES= bin/osmosis ${JAVAJARDIR_REL}/osmosis.jar \ + ${JARFILES:S,^,${DATADIR_REL}/,} + +do-install: + @${MKDIR} ${JAVAJARDIR}/ + ${INSTALL_DATA} ${WRKSRC}/osmosis.jar ${JAVAJARDIR}/ + @${MKDIR} ${DATADIR}/ + ${INSTALL_DATA} ${JARFILES:S,^,${WRKSRC}/lib/default/,} ${DATADIR}/ + ${INSTALL_SCRIPT} ${WRKDIR}/osmosis ${PREFIX}/bin/osmosis + +.include diff --git a/astro/osmosis/distinfo b/astro/osmosis/distinfo new file mode 100644 index 000000000000..1a7f46b92006 --- /dev/null +++ b/astro/osmosis/distinfo @@ -0,0 +1,3 @@ +MD5 (osmosis-0.31.2-bin.tar.gz) = 3c8a5d8109add0395208c38543034962 +SHA256 (osmosis-0.31.2-bin.tar.gz) = 3252ba62271c6b74a7c13960ecf68b703c47764371be4dfa04577c6e01a99c8c +SIZE (osmosis-0.31.2-bin.tar.gz) = 6837385 diff --git a/astro/osmosis/files/osmosis.in b/astro/osmosis/files/osmosis.in new file mode 100644 index 000000000000..e025d0834dec --- /dev/null +++ b/astro/osmosis/files/osmosis.in @@ -0,0 +1,86 @@ +#!/bin/sh + +# Config files can define several variables used throughout this script. +# JAVACMD - The java command to launch osmosis. +# JAVACMD_OPTIONS - The options to append to the java command, typically used +# to modify jvm settings such as max memory. +# OSMOSIS_OPTIONS - The options to apply to all osmosis invocations, typically +# used to add plugins or make quiet operation the default. + +if [ -f /etc/osmosis ] ; then + . /etc/osmosis +fi + +if [ -f "$HOME/.osmosis" ] ; then + . "$HOME/.osmosis" +fi + +if [ -z "$JAVACMD" ] ; then + # No JAVACMD provided in osmosis config files, therefore default to java + JAVACMD="%%LOCALBASE%%/bin/java" +fi + +JAVACMD_OPTIONS="-Xmx1024m ${JAVACMD_OPTIONS}" +JAVA_VERSION="%%JAVA_VERSION%%" +export JAVA_VERSION + +if [ "x$1x" = "xx" ] || echo "$@" | grep -q -e '--help' ; then + cat <