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.
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=5
|
|
|
|
|
|
|
|
JAVA_PKG_IUSE="source"
|
|
|
|
|
|
|
|
inherit epatch java-pkg-2 java-ant-2 java-osgi
|
|
|
|
|
|
|
|
DESCRIPTION="EL is the JSP 2.0 Expression Language Interpreter from Apache"
|
|
|
|
HOMEPAGE="http://commons.apache.org/el/"
|
|
|
|
SRC_URI="mirror://apache/jakarta/commons/el/source/${P}-src.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="Apache-1.1"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="amd64 ppc64 x86"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
COMMON_DEP="
|
|
|
|
java-virtuals/servlet-api:2.5"
|
|
|
|
RDEPEND="${COMMON_DEP}
|
|
|
|
>=virtual/jre-1.4"
|
|
|
|
DEPEND="${COMMON_DEP}
|
|
|
|
>=virtual/jdk-1.4"
|
|
|
|
|
|
|
|
S=${WORKDIR}/${P}-src
|
|
|
|
|
|
|
|
JAVA_PKG_FILTER_COMPILER="jikes"
|
|
|
|
|
|
|
|
java_prepare() {
|
|
|
|
epatch "${FILESDIR}"/${P}-java-1.7-compiler.patch # BGO 486376
|
|
|
|
# Build.xml is broken, fix it
|
|
|
|
sed -i "s:../LICENSE:./LICENSE.txt:" build.xml || die "sed failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
JAVA_ANT_REWRITE_CLASSPATH="yes"
|
|
|
|
|
|
|
|
EANT_GENTOO_CLASSPATH="servlet-api-2.5"
|
|
|
|
EANT_EXTRA_ARGS="
|
|
|
|
-Dservletapi.build.notrequired=true
|
|
|
|
-Djspapi.build.notrequired=true"
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
java-osgi_dojar-fromfile "dist/${PN}.jar" "${FILESDIR}/${P}-manifest" \
|
|
|
|
"Apache Commons EL"
|
|
|
|
|
|
|
|
dodoc LICENSE.txt RELEASE-NOTES.txt
|
|
|
|
dohtml STATUS.html PROPOSAL.html
|
|
|
|
|
|
|
|
use source && java-pkg_dosrc src/java/org
|
|
|
|
}
|