blob: e8d2a9832e8696041b065dcdbeb307d3ca7cfbbd (
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
53
54
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jdynamite/jdynamite-1.2.ebuild,v 1.7 2008/06/19 19:54:04 nelchael Exp $
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
MY_PV="${PV/./_}"
DESCRIPTION="Dynamic Template in Java"
HOMEPAGE="http://jdynamite.sourceforge.net/doc/jdynamite.html"
SRC_URI="mirror://sourceforge/${PN}/${PN}${MY_PV}.tar.gz"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
DEPEND=">=virtual/jdk-1.2
>=dev-java/gnu-regexp-1.0.8"
S="${WORKDIR}/${PN}${PV}"
src_unpack() {
unpack "${A}"
# Yuck! Already compiled!
cd "${S}"
rm -fr lib/*
rm -fr cb
rm -fr src/gnu
cp "${FILESDIR}/${PV}-build.xml" "${S}/build.xml"
mkdir "${S}/build" || die "mkdir failed"
}
src_compile() {
EANT_GENTOO_CLASSPATH="gnu-regexp-1" \
java-pkg-2_src_compile
}
src_install() {
java-pkg_dojar "${PN}.jar"
if use doc; then
java-pkg_dohtml -r doc/*
fi
use source && java-pkg_dosrc "${S}/src/cb"
}
|