blob: dc658fdeb9d0afc1712baa30da5b2ca7756b9c53 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jmi-interface/jmi-interface-1.0.ebuild,v 1.2 2005/05/27 15:46:04 luckyduck Exp $
inherit java-pkg
DESCRIPTION="Java Metadata Interface Sample Class Interface"
HOMEPAGE="http://java.sun.com/products/jmi/"
SRC_URI="mirror://gentoo/jmi-${PV/./_}-fr-interfaces.zip"
LICENSE="sun-bcla-jmi"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc"
IUSE="doc jikes source"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
jikes? (dev-java/jikes)
source? (app-arch/zip)"
RDEPEND=">=virtual/jre-1.4"
S=${WORKDIR}
src_unpack() {
cp ${FILESDIR}/${P}-build.xml ${S}/build.xml
mkdir ${S}/src
unzip -q -d ${S}/src ${DISTDIR}/${A}
}
src_compile() {
local antflags="jar"
use doc && antflags="${antflags} javadoc"
use jikes && antflags="${antflags} -Dbuild.compiler=jikes"
ant ${antflags} || die "Failed to compile"
}
src_install() {
use doc && java-pkg_dohtml -r doc/*
use source && java-pkg_dosrc src/*
dojar dist/*.jar
}
|