blob: ee8d32dc4c86b79cf811ebf2ffd3b55d95421cf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2016 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
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 ~x86 ~x86-fbsd"
IUSE=""
DEPEND=">=virtual/jdk-1.4"
RDEPEND=">=virtual/jre-1.4"
S=${WORKDIR}/${PN}
EANT_BUILD_XML="build/build.xml"
EANT_FILTER_COMPILER="jikes"
EANT_BUILD_TARGET="jxl"
EANT_DOC_TARGET="docs"
java_prepare() {
find "${S}" -name "*.jar" -o -name "*.class" -delete || die
}
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/*
}
|