blob: 89ea06f5a73377cb7160cecc446e4d434e540507 (
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
|
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
inherit java-pkg-2
MY_PV="${PV/_beta/.b}"
MY_P="${PN}-${MY_PV}"
DESCRIPTION="An application for highlighting the differences between two XML documents"
HOMEPAGE="http://nwalsh.com/java/diffmk/"
SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~ppc ~x86"
IUSE=""
RDEPEND="=virtual/jre-1.4*
dev-java/xml-commons-resolver"
DEPEND="=virtual/jdk-1.4*
${RDEPEND}"
S="${WORKDIR}/${MY_P}"
src_compile() {
ebegin "Building"
cd src/
ejavac \
-classpath $(java-pkg_getjars xml-commons-resolver) \
$(find -name *.java)
eend $?
ebegin "Creating JAR"
jar \
cf \
-m manifest \
../bin/diffmk.jar \
$(find -name *.class) \
|| die "jar failed"
eend $?
}
src_install() {
java-pkg_dojar bin/diffmk.jar
java-pkg_dohtml docs/diffmk.html src/overview.html
java-pkg_dojavadoc docs/javadoc/
java-pkg_dolauncher
dodoc README
}
|