/[gentoo-x86]/app-office/hourglass/hourglass-0.7.2.ebuild
Gentoo

Contents of /app-office/hourglass/hourglass-0.7.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Fri Apr 13 17:52:05 2012 UTC (2 years, 8 months ago) by ulm
Branch: MAIN
Changes since 1.3: +3 -3 lines
Move EAPI assignment to top of ebuild, bug 411875.

(Portage version: 2.1.10.56/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-office/hourglass/hourglass-0.7.2.ebuild,v 1.3 2009/06/11 13:51:14 fauli Exp $
4
5 EAPI="1"
6 JAVA_PKG_IUSE="doc source"
7
8 inherit java-pkg-2 java-ant-2 eutils
9
10 DESCRIPTION="A PSP (personal software process) time tracking utility written in Java"
11 HOMEPAGE="http://hourglass.wiki.sourceforge.net/"
12 SRC_URI="mirror://sourceforge/${PN}/${P}-src.tar.gz"
13
14 LICENSE="GPL-2"
15 SLOT="0"
16 KEYWORDS="amd64 x86"
17 IUSE=""
18
19 COMMON_DEPEND="dev-java/log4j
20 dev-java/jcommon:1.0
21 dev-java/jdom:1.0"
22
23 DEPEND=">=virtual/jdk-1.5
24 dev-java/ant-core
25 ${COMMON_DEPEND}"
26 RDEPEND=">=virtual/jre-1.5
27 ${COMMON_DEPEND}"
28
29 S="${WORKDIR}/${P}-src"
30
31 src_unpack() {
32 unpack ${A}
33 cd "${S}"
34
35 echo "jar.log4j=$(java-pkg_getjar log4j log4j.jar)" > conf/local.properties
36 echo "jar.jcommon=$(java-pkg_getjar jcommon:1.0 jcommon.jar)" >> conf/local.properties
37 echo "jar.jdom=$(java-pkg_getjar jdom:1.0 jdom.jar)" >> conf/local.properties
38 echo "jar.ant=$(java-pkg_getjar --build-only ant-core ant.jar)" >> conf/local.properties
39 }
40
41 EANT_BUILD_TARGET="dist"
42 EANT_DOC_TARGET="javadoc"
43
44 src_install() {
45 java-pkg_dojar "dist/${P}/lib/${PN}.jar"
46
47 use doc && java-pkg_dojavadoc build/doc/api
48 use source && java-pkg_dosrc src/*
49
50 java-pkg_dolauncher "${PN}" \
51 --main "net.sourceforge.hourglass.swingui.Main"
52
53 make_desktop_entry "${PN}" "Hourglass" "appointment-new" "Office"
54
55 dodoc README ChangeLog AUTHORS
56 }

  ViewVC Help
Powered by ViewVC 1.1.20