You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.1 KiB
49 lines
1.1 KiB
13 years ago
|
# Copyright 1999-2008 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/jexcelapi/jexcelapi-2.6.8.ebuild,v 1.3 2008/10/25 17:12:28 nixnut Exp $
|
||
|
|
||
|
JAVA_PKG_IUSE="doc source"
|
||
|
inherit java-pkg-2 java-ant-2
|
||
|
|
||
|
MY_P="${P//-/_}"
|
||
|
MY_P="${MY_P//./_}"
|
||
|
|
||
|
DESCRIPTION="A Java API to read, write, and modify Excel spreadsheets"
|
||
|
HOMEPAGE="http://jexcelapi.sourceforge.net/"
|
||
|
SRC_URI="mirror://sourceforge/jexcelapi/${MY_P}.tar.gz"
|
||
|
|
||
|
LICENSE="LGPL-2.1"
|
||
|
SLOT="2.5"
|
||
|
KEYWORDS="amd64 ppc x86 ~x86-fbsd"
|
||
|
IUSE=""
|
||
|
|
||
|
DEPEND=">=virtual/jdk-1.4
|
||
|
dev-java/ant-core"
|
||
|
RDEPEND=">=virtual/jre-1.4"
|
||
|
|
||
|
S=${WORKDIR}/${PN}
|
||
|
|
||
|
src_unpack() {
|
||
|
unpack ${A}
|
||
|
|
||
|
cd "${S}"
|
||
|
find -name "*.jar" | xargs rm -v
|
||
|
find -name "*.class" -delete
|
||
|
rm -fr docs
|
||
|
|
||
|
# sun-jdk-1.5/jikes fails
|
||
|
java-pkg_filter-compiler jikes
|
||
|
}
|
||
|
|
||
|
src_compile() {
|
||
|
eant -f build/build.xml jxl $(use_doc docs)
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
java-pkg_newjar jxl.jar ${PN}.jar
|
||
|
|
||
|
java-pkg_dohtml index.html tutorial.html
|
||
|
use doc && java-pkg_dojavadoc docs
|
||
|
use source && java-pkg_dosrc "${S}"/src/*
|
||
|
}
|