summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam L. Thomson Jr <wlt@o-sinc.com>2015-09-17 19:46:11 -0400
committerJames Le Cuirot <chewi@gentoo.org>2015-09-29 22:19:28 +0100
commit0b5df6c8cee467fcfcf405504d74559b81e23980 (patch)
treec197b8f7d7a34b90bd5aefae731d1be826e74833 /app-office/hourglass
parentapp-admin/ec2-api-tools: Updated dev-java/jdom slot from 1.0 -> 0 for v1 (diff)
downloadgentoo-0b5df6c8cee467fcfcf405504d74559b81e23980.tar.gz
gentoo-0b5df6c8cee467fcfcf405504d74559b81e23980.tar.bz2
gentoo-0b5df6c8cee467fcfcf405504d74559b81e23980.zip
app-office/hourglass: Updated dev-java/jdom slot from 1.0 -> 0 for v1
Diffstat (limited to 'app-office/hourglass')
-rw-r--r--app-office/hourglass/hourglass-0.7.2-r1.ebuild53
1 files changed, 53 insertions, 0 deletions
diff --git a/app-office/hourglass/hourglass-0.7.2-r1.ebuild b/app-office/hourglass/hourglass-0.7.2-r1.ebuild
new file mode 100644
index 000000000000..eae8b3b97c4b
--- /dev/null
+++ b/app-office/hourglass/hourglass-0.7.2-r1.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+JAVA_PKG_IUSE="doc source"
+
+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 ~x86"
+IUSE=""
+
+COMMON_DEPEND="dev-java/log4j
+ dev-java/jcommon:1.0
+ dev-java/jdom:0"
+
+DEPEND=">=virtual/jdk-1.5
+ dev-java/ant-core
+ ${COMMON_DEPEND}"
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEPEND}"
+
+S="${WORKDIR}/${P}-src"
+
+java_prepare() {
+ 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 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
+}