blob: 94d2a034ef7e0b1494cbfc53c2624aa671d8742b (
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
44
45
46
47
48
49
50
51
52
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
JAVA_PKG_IUSE="doc source"
MY_PN="SuperCSV"
MY_P="${MY_PN}-${PV}"
inherit eutils java-pkg-2 java-pkg-simple
DESCRIPTION="CSV processing library for Java"
HOMEPAGE="http://supercsv.sourceforge.net/"
SRC_URI="mirror://sourceforge/supercsv/v1-branch/v${PV}/${MY_P}.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
COMMON_DEPS="dev-java/spiffy"
DEPEND="${COMMON_DEPS}
app-arch/unzip
>=virtual/jdk-1.5
dev-java/junit:4"
RDEPEND="${COMMON_DEPS}
>=virtual/jre-1.5"
JAVA_SRC_DIR="src"
JAVA_GENTOO_CLASSPATH="spiffy,junit-4"
src_unpack() {
unpack ${A}
unpack ./${MY_P}-source.zip
rm -v *.jar *.zip || die
}
# Not working
#src_test() {
# JAVA_SRC_DIR="test" \
# JAVA_CLASSPATH_EXTRA="${PN}.jar" \
# PN="${PN}-test" \
# java-pkg-simple_src_compile
#
# local tests
# tests=$(find test -name '*.java' | sed -e 's/\//./g;s/^test.//;s/.java$//' || die)
#
# ejunit4 -cp "${PN}.jar:${PN}-test.jar:$(java-pkg_getjars ${JAVA_GENTOO_CLASSPATH})" $tests
#}
|