diff options
author | Serkan Kaba <serkan@gentoo.org> | 2008-07-21 21:33:08 +0000 |
---|---|---|
committer | Serkan Kaba <serkan@gentoo.org> | 2008-07-21 21:33:08 +0000 |
commit | ef4475716d4fe84f6c67d9535cf7267e24b4b489 (patch) | |
tree | 83bf30850b74ded0ae4ff339d4f20587425a4a9f /dev-java/nachocalendar/nachocalendar-0.23.ebuild | |
parent | Version bump (diff) | |
download | historical-ef4475716d4fe84f6c67d9535cf7267e24b4b489.tar.gz historical-ef4475716d4fe84f6c67d9535cf7267e24b4b489.tar.bz2 historical-ef4475716d4fe84f6c67d9535cf7267e24b4b489.zip |
Initial commit, created as dep for l2fprod-common.
Package-Manager: portage-2.2_rc1/cvs/Linux 2.6.24-gentoo-r8 x86_64
Diffstat (limited to 'dev-java/nachocalendar/nachocalendar-0.23.ebuild')
-rw-r--r-- | dev-java/nachocalendar/nachocalendar-0.23.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/dev-java/nachocalendar/nachocalendar-0.23.ebuild b/dev-java/nachocalendar/nachocalendar-0.23.ebuild new file mode 100644 index 000000000000..3434fe8b805b --- /dev/null +++ b/dev-java/nachocalendar/nachocalendar-0.23.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/nachocalendar/nachocalendar-0.23.ebuild,v 1.1 2008/07/21 21:33:08 serkan Exp $ + +JAVA_PKG_IUSE="doc source test" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Flexible Calendar component to the Java Platform" +HOMEPAGE="http://nachocalendar.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${PN}-src-${PV}.tar.bz2" +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" +RDEPEND=">=virtual/jre-1.4" +DEPEND=">=virtual/jdk-1.4 + test? ( dev-java/junit )" + +src_unpack() { + unpack ${A} + cd "${S}" + rm -r doc || die + rm -v lib/* || die +} + +src_install() { + java-pkg_newjar lib/${P}.jar ${PN}.jar + java-pkg_newjar lib/${P}-demo.jar ${PN}-demo.jar + java-pkg_dolauncher nachocalendar-demo --main net.sf.nachocalendar.demo.CalendarDemo + dodoc {CHANGELOG,README,TODO}.txt || die + use doc && java-pkg_dojavadoc doc + use source && java-pkg_dosrc src/java/net +} + +src_test() { + cd src/test || die + ejavac -cp \ + "${S}/lib/${P}.jar:$(java-pkg_getjars --build-only junit)" \ + ./net/sf/nachocalendar/model/DefaultDataModelTest.java + ejavac -cp \ + "${S}/lib/${P}.jar:$(java-pkg_getjars --build-only junit)" \ + ./net/sf/nachocalendar/model/DefaultDateSelectionModelTest.java + ejunit -cp ".:${S}/lib/${P}.jar" \ + net.sf.nachocalendar.model.DefaultDataModelTest \ + net.sf.nachocalendar.model.DefaultDateSelectionModelTest +} |