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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat Sep 6 19:37:21 2014 UTC (5 years, 5 months ago) by nixphoeni
Branch: MAIN
CVS Tags: HEAD
Version bump, cf. bug #483114

(Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key 35488453)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
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 # Upstream doesn't provide versioned tarballs, so we'll have to create one on our own:
17 # REVISION=${PV}
18 # mkdir -p josm-${REVISION}
19 # svn co -r ${REVISION} http://josm.openstreetmap.de/svn/trunk/ josm-${REVISION}
20 # cd josm-${REVISION} && ant init-svn-revision-xml && cd -
21 # tar -cz --exclude=.svn -f /usr/portage/distfiles/josm-${REVISION}.tar.gz josm-${REVISION}
22 [[ ${PV} == "9999" ]] || SRC_URI="mirror://gentoo/${P}.tar.gz"
23
24 LICENSE="GPL-2"
25 SLOT="0"
26
27 # Don't move KEYWORDS on the previous line or ekeyword won't work # 399061
28 [[ ${PV} == "9999" ]] || \
29 KEYWORDS="~amd64 ~x86"
30
31 DEPEND=">=virtual/jdk-1.7"
32 RDEPEND=">=virtual/jre-1.7"
33
34 S="${WORKDIR}/${P}"
35
36 IUSE=""
37
38 src_prepare() {
39
40 if [[ ${PV} == "9999" ]]; then
41
42 # create-revision needs the compile directory to be a svn directory
43 # see also http://lists.openstreetmap.org/pipermail/dev/2009-March/014182.html
44 sed -i \
45 -e "s:arg[ ]value=\".\":arg value=\"${ESVN_STORE_DIR}\/${PN}\/trunk\":" \
46 build.xml || die "sed failed"
47
48 else
49
50 # Remove dependency on git and svn just for generating a
51 # revision - the tarball should already have REVISION.XML
52 sed -i -e 's:, *init-git-revision-xml::g' \
53 -e '/<exec[ \t].*"svn"[ \t].*/,+5{d;n;}' \
54 -e 's:${svn.info.result}:1:' \
55 build.xml || die "sed failed"
56
57 # Fix for josm bug #10325
58 epatch "${FILESDIR}/${P}-dist-optimized-fix.patch"
59
60 fi
61
62 }
63
64 src_compile() {
65 eant dist-optimized
66 }
67
68 src_install() {
69 java-pkg_newjar "dist/${PN}-custom-optimized.jar" "${PN}.jar" || die "java-pkg_newjar failed"
70 java-pkg_dolauncher "${PN}" --jar "${PN}.jar" || die "java-pkg_dolauncher failed"
71
72 newicon images/logo.png josm.png || die "newicon failed"
73 make_desktop_entry "${PN}" "Java OpenStreetMap Editor" josm "Utility;Science;Geoscience"
74 }

  ViewVC Help
Powered by ViewVC 1.1.20