# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 PortSystem 1.0 PortGroup java 1.0 PortGroup github 1.0 github.setup openstreetmap osmosis 0.48.3 github.tarball_from archive revision 0 categories java gis platforms any supported_archs noarch maintainers {@frankdean fdsd.co.uk:frank.dean} openmaintainer license public-domain LGPL-3+ ODbL Permissive description A command line Java application for processing OSM data long_description The tool consists of a series of pluggable \ components that can be chained together to perform \ a larger operation. For example, it has components \ for reading from database and from file, \ components for writing to database and to file, \ components for deriving and applying change sets \ to data sources, components for sorting data, \ etc. It has been written so that it is easy to add \ new features without re-writing common tasks such \ as file or database handling. checksums rmd160 a1920323b49aaabe15357630191aa364cc2fb9b2 \ sha256 3bf84e32ed4ff9525b1901b71ac4ddf63fc60892ce522ca1926a82eeafc107cc \ size 638032 set confdir ${prefix}/etc/${name} set appdir ${prefix}/share/${name} set docdir ${prefix}/share/doc/${name} java.version 1.8+ java.fallback openjdk11 depends_build port:gradle use_configure no build.env-append GRADLE_USER_HOME=${worksrcpath}/.gradle build.cmd ${worksrcpath}/gradlew build.target assemble test.run yes test.env-append GRADLE_USER_HOME=${worksrcpath}/.gradle test.cmd ${worksrcpath}/gradlew test.target build patchfiles package-bin-osmosis.diff \ build-gradle.diff post-patch { reinplace "s|/etc/osmosis|${confdir}/${name}.conf|g" \ ${worksrcpath}/package/bin/osmosis reinplace "s|@PREFIX@|${prefix}|g" \ ${worksrcpath}/package/bin/osmosis reinplace "s|@VERSION@|${version}|g" \ ${worksrcpath}/build.gradle reinplace "s|/usr/share|${prefix}/share|g" \ ${worksrcpath}/package/script/munin/README reinplace "s|/etc|${prefix}/etc|g" \ ${worksrcpath}/package/script/munin/README reinplace "s|#user osm|#user nobody|g" \ ${worksrcpath}/package/script/munin/osm_replication.conf reinplace "s|#env.osmosis /opt/osmosis/bin|env.osmosis ${appdir}/bin|g" \ ${worksrcpath}/package/script/munin/osm_replication.conf reinplace "s|#env.workingDirectory /path/to/state.txt|#env.workingDirectory ${prefix}/var/lib/mod_tile/.osmosis/state.txt|g" \ ${worksrcpath}/package/script/munin/osm_replication.conf } pre-test { # Tests that fail, which are effectively integration tests # requiring databases that have been created and configured for # testing. file delete -force ${worksrcpath}/osmosis-apidb/src/test file delete -force ${worksrcpath}/osmosis-extract/src/test file delete -force ${worksrcpath}/osmosis-pgsimple/src/test file delete -force ${worksrcpath}/osmosis-pgsnapshot/src/test } destroot { xinstall -m 0755 -d ${destroot}/${appdir} xinstall -m 0755 -d ${destroot}/${confdir} xinstall -m 0755 -d ${destroot}/${docdir} file copy ${worksrcpath}/README.md \ ${destroot}${docdir} foreach d [glob -nocomplain ${worksrcpath}/package/*] { file copy ${d} ${destroot}${appdir} } } post-destroot { file rename \ {*}[glob ${destroot}${appdir}/*.txt] \ ${destroot}${docdir} file delete ${destroot}${appdir}/build.gradle \ ${destroot}${appdir}/bin/osmosis-extract-apidb-0.6 \ ${destroot}${appdir}/bin/osmosis-extract-mysql-0.6 \ ${destroot}${appdir}/bin/osmosis.bat file delete -force ${destroot}${appdir}/build ln -s ${appdir}/bin/${name} ${destroot}${prefix}/bin/${name} destroot.keepdirs ${destroot}${confdir} }