summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2007-06-12 11:38:23 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2007-06-12 11:38:23 +0000
commit15fa3b2a074f29c72e9387c5733775a01869c7ae (patch)
tree2e21fae8046175a0e56181ce66b0af4adc77fe43 /dev-java/charva/charva-1.0.1-r1.ebuild
parentChanged SRC_URI to use mirror://berlios. (diff)
downloadhistorical-15fa3b2a074f29c72e9387c5733775a01869c7ae.tar.gz
historical-15fa3b2a074f29c72e9387c5733775a01869c7ae.tar.bz2
historical-15fa3b2a074f29c72e9387c5733775a01869c7ae.zip
Use java-pkg_dojavadoc and add source and examples use flags.
Package-Manager: portage-2.1.2.9
Diffstat (limited to 'dev-java/charva/charva-1.0.1-r1.ebuild')
-rw-r--r--dev-java/charva/charva-1.0.1-r1.ebuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/dev-java/charva/charva-1.0.1-r1.ebuild b/dev-java/charva/charva-1.0.1-r1.ebuild
index 3c21797c0838..8b5a5e3effe9 100644
--- a/dev-java/charva/charva-1.0.1-r1.ebuild
+++ b/dev-java/charva/charva-1.0.1-r1.ebuild
@@ -1,13 +1,14 @@
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/charva/charva-1.0.1-r1.ebuild,v 1.1 2006/07/06 03:39:54 nichoj Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/charva/charva-1.0.1-r1.ebuild,v 1.2 2007/06/12 11:38:23 betelgeuse Exp $
+
+JAVA_PKG_IUSE="doc examples source"
inherit java-pkg-2
DESCRIPTION="A Java Windowing Toolkit for Text Terminals"
SRC_URI="http://www.pitman.co.za/projects/charva/download/${P}.tar.gz"
HOMEPAGE="http://www.pitman.co.za/projects/charva/"
-IUSE="doc"
RDEPEND=">=virtual/jre-1.3
sys-libs/ncurses"
DEPEND=">=virtual/jdk-1.3
@@ -18,7 +19,7 @@ KEYWORDS="~x86 ~ppc ~amd64"
src_unpack() {
unpack ${A}
- rm ${S}/c/src/libTerminal.so
+ rm -v "${S}/c/src/libTerminal.so"
sed -e "s,javac,javac $(java-pkg_javac-args)," -i ${S}/java/src/Makefile || die
}
@@ -26,15 +27,16 @@ src_compile() {
cd c/src
make -f Makefile.linux || die
- cd ${S}/java/src
+ cd "${S}/java/src"
make || die
}
src_install() {
- cd ${S}
java-pkg_dojar java/lib/${PN}.jar
- use doc && java-pkg_dohtml -r java/doc
- dodoc README
+ dodoc README || die
+ use doc && java-pkg_dojavadoc java/doc
+ use examples && java-pkg_doexamples java/src/example
+ use source && java-pkg_dosrc java/src/{charva,charvax}
cd c/src/
java-pkg_doso *.so