blob: 10f80337fad49bfbd09774d9998976c707090a0d (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=4
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="An Apache-hosted set of externally-defined standards interfaces, namely DOM, SAX, and JAXP"
HOMEPAGE="http://xml.apache.org/commons/"
SRC_URI="https://dev.gentoo.org/~sera/distfiles/${P}.tar.bz2"
# upstream source tar.gz is missing build.xml and other stuff, so we get it like this
# svn export
# http://svn.apache.org/repos/asf/xerces/xml-commons/tags/xml-commons-external-1_4_01/java/external xml-commons-external-1.4.01
# tar cjf xml-commons-external-1.4.01.tar.bz2 xml-commons-external-1.4.01
LICENSE="Apache-2.0"
SLOT="1.4"
KEYWORDS="amd64 ~arm ppc ppc64 x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE="doc source"
DEPEND=">=virtual/jdk-1.3"
RDEPEND=">=virtual/jre-1.3"
src_install() {
java-pkg_dojar build/xml-apis.jar build/xml-apis-ext.jar
dodoc NOTICE README.*
if use doc; then
java-pkg_dojavadoc build/docs/javadoc
java-pkg_dohtml -r build/docs/dom
fi
use source && java-pkg_dosrc src/javax src/org
}
|