You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/cldc-api/cldc-api-1.1.ebuild

36 lines
1.1 KiB

# 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.6 2008/09/10 18:22:12 ranger 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
}