Commit db0cefda authored by T. Fischer's avatar T. Fischer

Adding ebuild for JOSM's 'unstable'

parent fd0971c4
EBUILD josm-8558.ebuild 1760 SHA256 bdbbf14585b2401685043ed7f48bf22717bf12b7e27997fe24e6a473b46e0085 SHA512 cabd626888786e23f0fa2c176ca9d4579e21a2771f611edb63f5f7d73b01cf275ddd216073ae0d98fc6c529a77b178e82e210cd6071a5c5cc50feb8a180044e3 WHIRLPOOL a92dfe607548503538f27fa66e2ae60b0116606b2bc615e7bd66dc668d86e5c3822539c14c0a198b7460d54661d5efb9c909d03e9255089edc9febe56d9b93ca
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils java-pkg-2 java-ant-2 subversion
JAVA_ANT_ENCODING=UTF-8
ESVN_REPO_URI="http://josm.openstreetmap.de/svn/trunk"
ESVN_REVISION=${PV}
DESCRIPTION="Java-based editor for the OpenStreetMap project"
HOMEPAGE="http://josm.openstreetmap.de/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND=">=virtual/jdk-1.7
gnome-base/librsvg"
RDEPEND=">=virtual/jre-1.7"
S="${WORKDIR}/${P}"
IUSE=""
src_prepare() {
# create-revision needs the compile directory to be a svn directory
# see also http://lists.openstreetmap.org/pipermail/dev/2009-March/014182.html
sed -i \
-e "s:arg[ ]value=\".\":arg value=\"${ESVN_STORE_DIR}\/${PN}\/trunk\":" \
build.xml || die "sed failed"
pwd
}
src_compile() {
eant dist-optimized
# create icon in various sizes based on project's SVG logo
for size in 128 16 192 22 24 256 32 36 48 512 64 72 96 ; do
mkdir -p ${T}/${size} || die "Cannot create temporary directory '${T}/${size}'"
rsvg-convert -f png -o ${T}/${size}/${PN}.png -w ${size} -h ${size} "images/logo.svg" || \
die "Cannot create PNG file '${T}/${size}/${PN}.png' from SVG file 'images/logo.svg'"
done
}
src_install() {
java-pkg_newjar "dist/${PN}-custom-optimized.jar" "${PN}.jar" || die "java-pkg_newjar failed"
java-pkg_dolauncher "${PN}" --jar "${PN}.jar" || die "java-pkg_dolauncher failed"
for size in 128 16 192 22 24 256 32 36 48 512 64 72 96 ; do
insinto /usr/share/icons/hicolor/${size}x${size}/apps
doins ${T}/${size}/${PN}.png || die "Cannot install PNG icon of size ${size}"
done
make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm "Utility;Science;Geoscience"
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment