diff options
Diffstat (limited to 'app-misc/slashtime/slashtime-0.5.13-r1.ebuild')
-rw-r--r-- | app-misc/slashtime/slashtime-0.5.13-r1.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/app-misc/slashtime/slashtime-0.5.13-r1.ebuild b/app-misc/slashtime/slashtime-0.5.13-r1.ebuild new file mode 100644 index 000000000000..ddd6d9c5a7b2 --- /dev/null +++ b/app-misc/slashtime/slashtime-0.5.13-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +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" + +COMMON_DEP="dev-java/java-gnome:4.1" + +DEPEND=">=virtual/jdk-1.5 + ${COMMON_DEP}" + +RDEPEND=">=virtual/jre-1.5 + ${COMMON_DEP}" + +src_configure() { + # Handwritten in perl so not using econf + ./configure prefix=/usr jardir=/usr/share/${PN}/lib || die +} + +src_compile() { + emake +} + +src_install() { + # This is needed to generate the slashtime jar. + emake -j1 DESTDIR="${D}" install + + java-pkg_register-dependency java-gnome-4.1 gtk.jar + java-pkg_regjar /usr/share/${PN}/lib/${PN}.jar + + # Replace slashtime launcher with our own. + rm "${D}"/usr/bin/slashtime || die + java-pkg_dolauncher ${PN} --main slashtime.client.Master --pwd /usr + + dodoc AUTHORS HACKING PLACES README TODO + + use source && java-pkg_dosrc src/java/slashtime +} |