summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-office/hourglass')
-rw-r--r--app-office/hourglass/ChangeLog7
-rw-r--r--app-office/hourglass/hourglass-0.7.2.ebuild56
2 files changed, 62 insertions, 1 deletions
diff --git a/app-office/hourglass/ChangeLog b/app-office/hourglass/ChangeLog
index 4fbbd945a6bf..15750fd8d6c1 100644
--- a/app-office/hourglass/ChangeLog
+++ b/app-office/hourglass/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-office/hourglass
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-office/hourglass/ChangeLog,v 1.2 2009/01/06 08:28:42 ali_bush Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-office/hourglass/ChangeLog,v 1.3 2009/01/07 05:41:51 ali_bush Exp $
+
+*hourglass-0.7.2 (07 Jan 2009)
+
+ 07 Jan 2009; Alistair Bush <ali_bush@gentoo.org> +hourglass-0.7.2.ebuild:
+ Version Update.
06 Jan 2009; Alistair Bush <ali_bush@gentoo.org> metadata.xml:
Add java herd to metadata.xml
diff --git a/app-office/hourglass/hourglass-0.7.2.ebuild b/app-office/hourglass/hourglass-0.7.2.ebuild
new file mode 100644
index 000000000000..9b13dc509097
--- /dev/null
+++ b/app-office/hourglass/hourglass-0.7.2.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-office/hourglass/hourglass-0.7.2.ebuild,v 1.1 2009/01/07 05:41:51 ali_bush Exp $
+
+JAVA_PKG_IUSE="doc source"
+EAPI="1"
+
+inherit java-pkg-2 java-ant-2 eutils
+
+DESCRIPTION="A PSP (personal software process) time tracking utility written in Java"
+HOMEPAGE="http://hourglass.wiki.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+COMMON_DEPEND="dev-java/log4j
+ dev-java/jcommon:1.0
+ dev-java/jdom:1.0"
+
+DEPEND=">=virtual/jdk-1.5
+ dev-java/ant-core
+ ${COMMON_DEPEND}"
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEPEND}"
+
+S="${WORKDIR}/${P}-src"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ echo "jar.log4j=$(java-pkg_getjar log4j log4j.jar)" > conf/local.properties
+ echo "jar.jcommon=$(java-pkg_getjar jcommon:1.0 jcommon.jar)" >> conf/local.properties
+ echo "jar.jdom=$(java-pkg_getjar jdom:1.0 jdom.jar)" >> conf/local.properties
+ echo "jar.ant=$(java-pkg_getjar --build-only ant-core ant.jar)" >> conf/local.properties
+}
+
+EANT_BUILD_TARGET="dist"
+EANT_DOC_TARGET="javadoc"
+
+src_install() {
+ java-pkg_dojar "dist/${P}/lib/${PN}.jar"
+
+ use doc && java-pkg_dojavadoc build/doc/api
+ use source && java-pkg_dosrc src/*
+
+ java-pkg_dolauncher "${PN}" \
+ --main "net.sourceforge.hourglass.swingui.Main"
+
+ make_desktop_entry "${PN}" "Hourglass" "appointment-new" "Office"
+
+ dodoc README ChangeLog AUTHORS
+}