/[gentoo-x86]/sci-geosciences/josm/josm-4201.ebuild
Gentoo

Contents of /sci-geosciences/josm/josm-4201.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Jul 31 14:10:38 2011 UTC (8 years, 5 months ago) by scarabeus
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Version bump to latest. Drop older.

(Portage version: 2.2.0_alpha49/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/josm/josm-4201.ebuild,v 1.1 2011/07/06 12:23:37 scarabeus Exp $
4
5 EAPI=4
6
7 JAVA_ANT_ENCODING=UTF-8
8
9 [[ ${PV} == "9999" ]] && SUBVERSION_ECLASS="subversion"
10 ESVN_REPO_URI="http://josm.openstreetmap.de/svn/trunk"
11 inherit eutils java-pkg-2 java-ant-2 ${SUBVERSION_ECLASS}
12 unset SUBVERSION_ECLASS
13
14 DESCRIPTION="Java-based editor for the OpenStreetMap project"
15 HOMEPAGE="http://josm.openstreetmap.de/"
16 [[ ${PV} == "9999" ]] || SRC_URI="http://josm.fabian-fingerle.de/${P}.tar.xz"
17
18 LICENSE="GPL-2"
19 SLOT="0"
20 [[ ${PV} == "9999" ]] || KEYWORDS="~amd64 ~x86"
21
22 DEPEND=">=virtual/jdk-1.6"
23 RDEPEND=">=virtual/jre-1.6"
24
25 S="${WORKDIR}/${PN}"
26
27 IUSE=""
28
29 src_prepare() {
30 if [[ ${PV} == "9999" ]]; then
31 sed -i \
32 -e "s:josm-custom.jar:josm.jar:" \
33 -e "s:josm-custom-optimized.jar:josm-optimized.jar:" \
34 build.xml || die "Sed failed"
35
36 # create-revision needs the compile directory to be a svn directory
37 # see also http://lists.openstreetmap.org/pipermail/dev/2009-March/014182.html
38 sed -i \
39 -e "s:arg[ ]value=\".\":arg value=\"${ESVN_STORE_DIR}\/${PN}\/trunk\":" \
40 build.xml || die "Sed failed"
41 fi
42 }
43
44 src_compile() {
45 eant dist
46 }
47
48 src_install() {
49 java-pkg_newjar "dist/${PN}.jar" || die "java-pkg_newjar failed"
50 java-pkg_dolauncher "${PN}" --jar "${PN}.jar" || die "java-pkg_dolauncher failed"
51
52 newicon images/logo.png josm.png || die "newicon failed"
53 make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm "Science;Geoscience"
54 }

  ViewVC Help
Powered by ViewVC 1.1.20