blob: aadbcad020b538080f0b89fc515a15fbad40df0a (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2 eutils
DESCRIPTION="Java API for XML Registries"
HOMEPAGE="https://glassfish.dev.java.net/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="CDDL"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
CDEPEND="
dev-java/jaxb:2
dev-java/jsr67:0
dev-java/jsr93:0
dev-java/jsr173:0"
DEPEND="
${CDEPEND}
>=virtual/jdk-1.6"
RDEPEND="
${CDEPEND}
>=virtual/jre-1.6"
S="${WORKDIR}/${PN}-ri"
JAVA_ANT_REWRITE_CLASSPATH="yes"
EANT_BUILD_TARGET="compile"
EANT_DOC_TARGET="javadoc-build"
EANT_GENTOO_CLASSPATH="
jaxb-2
jsr67
jsr173
jsr93
"
java_prepare() {
mkdir "${S}"/lib || die
java-pkg_jar-from --into lib jaxb-2
java-pkg_jar-from --into lib jsr67 jsr67.jar saaj-api.jar
java-pkg_jar-from --into lib jsr173 jsr173.jar jsr173_1.0_api.jar
java-pkg_jar-from --into lib jsr93
epatch "${FILESDIR}/${P}-javadoc.patch"
if use doc; then
java-ant_xml-rewrite \
-f "${S}"/build.xml \
-c -e javadoc \
-a failonerror \
-v "false"
fi
}
src_install() {
java-pkg_dojar lib/${PN}-impl.jar
use doc && java-pkg_dojavadoc javadoc
use source && java-pkg_dosrc src/java/*
}
|