blob: 73b7b7219977b45561b7d7af0181a3716af77b83 (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jsr223/jsr223-1.0-r1.ebuild,v 1.1 2010/05/02 13:49:08 betelgeuse Exp $
EAPI="2"
JAVA_PKG_IUSE=""
inherit java-pkg-2
DESCRIPTION="Scripting for the Java(TM) Platform"
HOMEPAGE="http://jcp.org/en/jsr/detail?id=223"
# http://download.java.net/openjdk/jdk6/promoted/b19/openjdk-6-src-b19-15_apr_2010.tar.gz
# tar xvf openjdk-6-src-b19-15_apr_2010.tar.gz jdk/src/share/classes/javax/script
# tar cjvf jsr223-openjdk-6-src-b19.tar.bz2 jdk/
SRC_URI="mirror://gentoo/jsr223-openjdk-6-src-b19.tar.bz2"
LICENSE="GPL-2-with-linking-exception"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=virtual/jre-1.5"
DEPEND=">=virtual/jdk-1.5"
S="${WORKDIR}"
src_compile() {
ejavac -d build jdk/src/share/classes/javax/script/*.java
jar -cf script-api.jar -C build javax || die
}
src_install() {
java-pkg_dojar script-api.jar
}
|