Commit 8a115f8a authored by T. Fischer's avatar T. Fischer

Updating JOSM ebuild for latest stable and devel versions

parent 86bed00b
EBUILD josm-9060.ebuild 2125 SHA256 a6c91489257651e754672ea5476bde5e566f96a2e60acce77a1facf2544e8bbf SHA512 c45f8bc15fa341f10db4157b80e162dae9c390e203f6dfd2268e63a7e957bc83947ce42726d592b43cdaa262525f8459a7090d48f9daad603360128b5e769b37 WHIRLPOOL 3a4c857013f34b31ee12d263dbd7a8472c753b041737c7fc0d21b7d2689571eb5b53c9d93109fc125bd68ea6751dfb7d389e11fe1829219357fde75f6fbf9bb6
EBUILD josm-9329.ebuild 2123 SHA256 464594a664c58300e8f4f74ca286a3af27a37ab7fbd0d5641ded1b5b3d3f93c0 SHA512 de238a324d72ae96d683242e05dc1d2717dae225cca3c294af46884bf3c93d23c1906da2ddc3bbd8b6810ddfa918658c28958bf8eed75ff9f609319ec07726e7 WHIRLPOOL ed1344b6df51bb9dcdfcd85068c92e3528ab553b3842a543f634324a2a3a877fd0364ea39a0b8a737a4775945a6fb525d4484dd45edc2fc3e2e5a7bc6fe00a8c
EBUILD josm-9417.ebuild 2125 SHA256 a6c91489257651e754672ea5476bde5e566f96a2e60acce77a1facf2544e8bbf SHA512 c45f8bc15fa341f10db4157b80e162dae9c390e203f6dfd2268e63a7e957bc83947ce42726d592b43cdaa262525f8459a7090d48f9daad603360128b5e769b37 WHIRLPOOL 3a4c857013f34b31ee12d263dbd7a8472c753b041737c7fc0d21b7d2689571eb5b53c9d93109fc125bd68ea6751dfb7d389e11fe1829219357fde75f6fbf9bb6
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
JAVA_ANT_ENCODING=UTF-8
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
|| ( media-gfx/imagemagick media-gfx/graphicsmagick )
media-gfx/optipng
gnome-base/librsvg"
RDEPEND=">=virtual/jre-1.7"
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
rsvg-convert -f png -o ${T}/${PN}.png images/logo.svg || \
die "Cannot create PNG file '${T}/${PN}.png' from SVG file 'images/logo.svg'"
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}'"
convert ${T}/${PN}.png -scale ${size}x${size} ${T}/${size}/${PN}.png || \
die "Cannot create PNG file '${T}/${size}/${PN}.png' from PNG file ${T}/${PN}.png'"
optipng ${T}/${size}/${PN}.png || \
die "Cannot optimize PNG file '${T}/${size}/${PN}.png'"
done
}
src_install() {
java-pkg_newjar "dist/${PN}-custom-optimized.jar" "${PN}.jar" || die "java-pkg_newjar failed"
java-pkg_dolauncher "${PN}" --java_args '-Dawt.useSystemAAFontSettings=gasp' --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