diff --git a/sci-geosciences/josm/additional-files/josm.hvif b/sci-geosciences/josm/additional-files/josm.hvif new file mode 100644 index 000000000..352460287 Binary files /dev/null and b/sci-geosciences/josm/additional-files/josm.hvif differ diff --git a/sci-geosciences/josm/additional-files/josm.svg b/sci-geosciences/josm/additional-files/josm.svg new file mode 100644 index 000000000..b3eedc2ea --- /dev/null +++ b/sci-geosciences/josm/additional-files/josm.svg @@ -0,0 +1,208 @@ + + + JOSM Logotype 2019 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + image/svg+xml + + JOSM Logotype 2019 + 2019-08-05 + + + Diamond00744 + + + + + Public Domain + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/sci-geosciences/josm/josm_bin-18531.recipe b/sci-geosciences/josm/josm_bin-18531.recipe new file mode 100644 index 000000000..0b524ad58 --- /dev/null +++ b/sci-geosciences/josm/josm_bin-18531.recipe @@ -0,0 +1,46 @@ +SUMMARY="An extensible editor for OpenStreetMap" +DESCRIPTION="JOSM is the \"Java OpenStreetMap Editor\". It is a feature-rich editor \ +for the experienced OSM mapper. It requires some configuration efforts. But if you \ +intend to become a great OSM mapper, it's worth the time you need to get used to it." +HOMEPAGE="https://josm.openstreetmap.de/" +COPYRIGHT="2006-2022 Immanuel Scholz, Dirk Stöcker" +LICENSE="GNU GPL v2" +REVISION="1" +SOURCE_URI="https://josm.openstreetmap.de/download/josm-snapshot-$portVersion.jar#noarchive" +CHECKSUM_SHA256="fdeb066cb6e2750eb4f9ab8c0b55b61b01fb579a9d4d5cdb94336cb24ba1723b" +ADDITIONAL_FILES="josm.hvif" + +ARCHITECTURES="any" +DISABLE_SOURCE_PACKAGE="true" + +PROVIDES=" + josm_bin = $portVersion + app:josm = $portVersion + " +REQUIRES=" + haiku + java:environment == 8 + " + +BUILD_PREREQUIRES=" + " + +INSTALL() +{ + josmDir=$appsDir/JOSM + mkdir -p $josmDir/java + + cp josm-snapshot-$portVersion.jar $josmDir/java/josm.jar + + cat << EOF > $josmDir/josm.sh +#!/bin/sh -l +APPDIR="\$(dirname -- "\$(readlink -f -- "\${0}")" )" +CLASSPATH="\${APPDIR}/java/josm.jar" +\${JDK8_HOME}/bin/java -cp "\${CLASSPATH}" -Djosm.restart=true org.openstreetmap.josm.gui.MainApplication "\$@" +EOF + chmod 755 $josmDir/josm.sh + + addattr -t icon -f $portDir/additional-files/josm.hvif \ + "BEOS:ICON" "$josmDir/josm.sh" + addAppDeskbarSymlink $josmDir/josm.sh 'JOSM' +}