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/jaxp/jaxp-1.4-r1.ebuild

41 lines
1.0 KiB

# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/jaxp/jaxp-1.4-r1.ebuild,v 1.6 2012/10/19 08:24:29 ottxor Exp $
EAPI=4
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="The Java API for XML Processing (JAXP)"
HOMEPAGE="https://jaxp.dev.java.net/"
SRC_URI="mirror://gentoo/${P}.tar.bz2"
LICENSE="CDDL"
SLOT="0"
KEYWORDS="amd64 ppc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""
DEPEND=">=virtual/jdk-1.4"
RDEPEND=">=virtual/jre-1.4"
src_prepare() {
cp -i "${FILESDIR}/build.xml-${PV}" "${S}/build.xml" || die "cp failed"
}
EANT_DOC_TARGET=""
src_install() {
java-pkg_dojar jaxp-ri.jar
use source && java-pkg_dosrc jaxp-1_4-api/src/{javax,org}
dohtml \
docs/JAXP-Compatibility.html \
docs/ReleaseNotes.html
use doc && java-pkg_dojavadoc docs/api
cd "${ED}/usr/share/${PN}/lib/"
ln -s jaxp-ri.jar jaxp.jar || die
java-pkg_regjar /usr/share/${PN}/lib/jaxp.jar
}