blob: c3db019cfcef8300c9968a484eb5ad7a306af8a2 (
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
47
48
49
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/slashtime/slashtime-0.5.8.ebuild,v 1.1 2008/10/14 02:58:35 ken69267 Exp $
EAPI=1
JAVA_PKG_IUSE="source"
inherit java-pkg-2
DESCRIPTION="View the time at locations around the world"
HOMEPAGE="http://research.operationaldynamics.com/projects/slashtime/"
SRC_URI="http://research.operationaldynamics.com/projects/${PN}/dist/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
COMMON_DEP=">=dev-java/java-gnome-4.0.9:4.0"
DEPEND=">=virtual/jdk-1.5
${COMMON_DEP}"
RDEPEND=">=virtual/jre-1.5
${COMMON_DEP}"
src_compile() {
# Handwritten in perl so not using econf
./configure --prefix=/usr || die
emake || die "emake failed."
}
src_install() {
#this is needed to generate the slashtime jar
emake DESTDIR="${D}" install || die "emake install failed."
#remove incorrect install path
rm -r "${D}"/usr/share/java/
rm "${D}"/usr/bin/slashtime
java-pkg_register-dependency java-gnome-4.0 gtk.jar
java-pkg_dojar tmp/${PN}.jar
java-pkg_dolauncher ${PN} --main slashtime.client.Master \
--pwd /usr
dodoc AUTHORS HACKING PLACES README TODO || die "dodoc failed."
use source && java-pkg_dosrc src/java/slashtime
}
|