summaryrefslogtreecommitdiff
blob: ff490cdd1aef6e98231d29c0fbae2557d5dd0a09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils java-pkg-2

MY_PV=${PV//./_}
MY_P=smartsvn-generic-${MY_PV}

DESCRIPTION="SmartSVN"
HOMEPAGE="http://www.syntevo.com/smartsvn/"
SRC_URI="${MY_P}.tar.gz"
SLOT="0"
LICENSE="smartsvn"
KEYWORDS="~amd64 ~x86"

IUSE=""
RESTRICT="fetch"

RDEPEND=">=virtual/jre-1.4.1"

S="${WORKDIR}/${PN}-${MY_PV}"

src_install() {
	local rdir="/opt/${PN}"
	insinto ${rdir}
	doins -r * || die "cannot install needed files"

	java-pkg_regjar ${rdir}/lib/${PN}.jar

	java-pkg_dolauncher ${PN} "--java-args -Xmx256 --jar ${PN}.jar"

	for X in 32 48 64 128
	do
		insinto /usr/share/icons/hicolor/${X}x${X}/apps
		newins "${S}/bin/${PN}-${X}x${X}.png" "${PN}.png" || die "cannot install needed files"
	done

	make_desktop_entry "${PN}" "SmartSVN" ${PN}.png "Development;RevisionControl"
}

pkg_nofetch(){
	einfo "Please download ${MY_P}.tar.gz from:"
	einfo "${HOMEPAGE}download.html?file=smartsvn/${MY_P}.tar.gz"
	einfo "and move/copy to ${DISTDIR}"
}