summaryrefslogtreecommitdiff
blob: ba969567f6931e46204ceb48d7d75aedaa1763db (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/cldc-api/cldc-api-1.1.ebuild,v 1.4 2008/08/25 16:58:06 nixnut Exp $

inherit java-pkg-2

DESCRIPTION="Java ME Connected Limited Device Configuration API"
HOMEPAGE="http://java.sun.com/javame/reference/apis.jsp"
SRC_URI="mirror://gentoo/${P}.tar.bz2"

# mkdir cldc-api-1.1 && cd cldc-api-1.1
# you need a login on dev.java.net - use --username username if different from your local login
# svn export https://phoneme.dev.java.net/svn/phoneme/components/cldc/trunk/src/javaapi/cldc1.1
# svn export https://phoneme.dev.java.net/svn/phoneme/components/cldc/trunk/src/javaapi/share
# cd ..
# tar -cjf cldc-api-1.1.tar.bz2 cldc-api-1.1
# move tarball to distdir, scp to d.g.o...

LICENSE="GPL-2"
KEYWORDS="~amd64 ppc ~ppc64 ~x86"
SLOT="1.1"
IUSE=""

RDEPEND=">=virtual/jre-1.4"
DEPEND=">=virtual/jdk-1.4"

src_compile() {
	mkdir classes
	ejavac -d classes `find . -name '*.java'` || die "ejavac failed"
	jar -cf ${PN}.jar -C classes . || die "jar failed"
}

src_install() {
	java-pkg_dojar ${PN}.jar
}