summaryrefslogtreecommitdiff
blob: 88cf158a3de3a88a4d768fa6dff0252b434a9333 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

MY_P="tr-2.0.epsilon"
DESCRIPTION="Java-based Getting Things Done (GTD) application"
HOMEPAGE="http://thinkingrock.com.au/"
SRC_URI="http://mesh.dl.sourceforge.net/sourceforge/thinkingrock/${MY_P}.zip"

LICENSE="CDDL"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

RDEPEND=">=virtual/jre-1.5.0"
DEPEND="${DEPEND}
	app-arch/unzip"

S=${WORKDIR}/${MY_P}

src_install() {
	local installDir=/opt/${MY_P}

	insinto /opt
	doins -r "${S}"
	fperms a+rx ${installDir}/bin/thinkingrock ${installDir}/bin/xdg-email ${installDir}/bin/xdg-open
	# Symlink the wrapper script
	dosym ${installDir}/bin/thinkingrock /usr/bin/thinkingrock
	# Symlink the directory and the jar to have them without version number
	dosym ${installDir} /opt/${PN}
	insinto /usr/share/pixmaps
	newins thinkingrock/resource/images/logo.png thinking-rock.png
	insinto /usr/share/applications
	newins "${FILESDIR}"/thinking-rock-2.0.desktop thinking-rock.desktop
}