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/ognl/ognl-2.6.9-r2.ebuild

43 lines
1012 B

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/ognl/ognl-2.6.9-r2.ebuild,v 1.3 2014/01/02 15:07:45 tomwij Exp $
EAPI="4"
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Object-Graph Navigation Language; an expression language for getting/setting properties of objects"
HOMEPAGE="http://www.ognl.org/"
SRC_URI="http://www.ognl.org/${PV}/${P}-dist.zip
https://ognl.dev.java.net/source/browse/*checkout*/ognl/osbuild.xml"
LICENSE="Apache-1.1"
SLOT="2.6"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND=">=virtual/jre-1.4"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip"
S="${WORKDIR}"
src_unpack() {
default
cp "${DISTDIR}/osbuild.xml" "${S}/" || die
}
java_prepare() {
find -name '*.jar' -exec rm -v {} + || die
}
EANT_DOC_TARGET="javadocs"
src_install() {
java-pkg_newjar build/${P}.jar ${PN}.jar
use doc && java-pkg_dohtml -r dist/docs/api
use source && java-pkg_dosrc src/java/*
}