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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Jan 13 12:28:13 2013 UTC (21 months, 2 weeks ago) by hanno
Branch: MAIN
CVS Tags: HEAD
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-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/josm/josm-5485.ebuild,v 1.2 2012/11/16 20:12:26 ago Exp $
4
5 EAPI=5
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.hboeck.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}/${P}"
29
30 IUSE=""
31
32 src_prepare() {
33 if [[ ${PV} == "9999" ]]; then
34
35 # create-revision needs the compile directory to be a svn directory
36 # see also http://lists.openstreetmap.org/pipermail/dev/2009-March/014182.html
37 sed -i \
38 -e "s:arg[ ]value=\".\":arg value=\"${ESVN_STORE_DIR}\/${PN}\/trunk\":" \
39 build.xml || die "Sed failed"
40 fi
41 }
42
43 src_compile() {
44 eant dist-optimized
45 }
46
47 src_install() {
48 java-pkg_newjar "dist/${PN}-custom-optimized.jar" "${PN}.jar" || die "java-pkg_newjar failed"
49 java-pkg_dolauncher "${PN}" --jar "${PN}.jar" || die "java-pkg_dolauncher failed"
50
51 newicon images/logo.png josm.png || die "newicon failed"
52 make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm "Utility;Science;Geoscience"
53 }

  ViewVC Help
Powered by ViewVC 1.1.20