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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Jan 13 12:28:13 2013 UTC (7 years ago) by hanno
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Version bump, switch to different source archives that allow building without svn

(Portage version: 2.1.11.40/cvs/Linux x86_64, signed Manifest commit with key 0xA5880072BBB51E42)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/josm/josm-5315.ebuild,v 1.2 2012/11/16 20:12:26 ago 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
21 # Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
22 [[ ${PV} == "9999" ]] || \
23 KEYWORDS="~amd64 ~x86"
24
25 DEPEND=">=virtual/jdk-1.6"
26 RDEPEND=">=virtual/jre-1.6"
27
28 S="${WORKDIR}/${PN}"
29
30 IUSE=""
31
32 src_prepare() {
33 if [[ ${PV} == "9999" ]]; then
34 sed -i \
35 -e "s:josm-custom.jar:josm.jar:" \
36 -e "s:josm-custom-optimized.jar:josm-optimized.jar:" \
37 build.xml || die "Sed failed"
38
39 # create-revision needs the compile directory to be a svn directory
40 # see also http://lists.openstreetmap.org/pipermail/dev/2009-March/014182.html
41 sed -i \
42 -e "s:arg[ ]value=\".\":arg value=\"${ESVN_STORE_DIR}\/${PN}\/trunk\":" \
43 build.xml || die "Sed failed"
44 fi
45 }
46
47 src_compile() {
48 eant dist-optimized
49 }
50
51 src_install() {
52 java-pkg_newjar "dist/${PN}-optimized.jar" "${PN}.jar" || die "java-pkg_newjar failed"
53 java-pkg_dolauncher "${PN}" --jar "${PN}.jar" || die "java-pkg_dolauncher failed"
54
55 newicon images/logo.png josm.png || die "newicon failed"
56 make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm "Science;Geoscience"
57 }

  ViewVC Help
Powered by ViewVC 1.1.20