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.
48 lines
1.5 KiB
48 lines
1.5 KiB
# Copyright 1999-2011 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-java/commons-el/commons-el-1.0-r2.ebuild,v 1.7 2011/12/19 12:49:28 sera Exp $
|
|
|
|
JAVA_PKG_IUSE="source"
|
|
|
|
inherit 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 ppc ppc64 x86 ~x86-fbsd"
|
|
IUSE=""
|
|
COMMON_DEP="~dev-java/servletapi-2.4"
|
|
RDEPEND=">=virtual/jre-1.4
|
|
${COMMON_DEP}"
|
|
DEPEND=">=virtual/jdk-1.4
|
|
${COMMON_DEP}"
|
|
JAVA_PKG_FILTER_COMPILER="jikes"
|
|
|
|
S=${WORKDIR}/${P}-src
|
|
|
|
src_unpack() {
|
|
unpack ${A}
|
|
cd "${S}"
|
|
mv "build.properties" "build.properties.old"
|
|
|
|
echo "servlet-api.jar=$(java-pkg_getjar servletapi-2.4 servlet-api.jar)" >> build.properties
|
|
echo "jsp-api.jar=$(java-pkg_getjar servletapi-2.4 jsp-api.jar)" >> build.properties
|
|
echo "servletapi.build.notrequired = true" >> build.properties
|
|
echo "jspapi.build.notrequired = true" >> build.properties
|
|
|
|
# Build.xml is broken, fix it
|
|
sed -i "s:../LICENSE:./LICENSE.txt:" build.xml || die "sed failed"
|
|
}
|
|
|
|
src_install() {
|
|
java-osgi_dojar-fromfile "dist/${PN}.jar" "${FILESDIR}/${P}-manifest" \
|
|
"Apache Commons EL" || die "Unable to install"
|
|
|
|
dodoc LICENSE.txt RELEASE-NOTES.txt || die
|
|
dohtml STATUS.html PROPOSAL.html || die
|
|
|
|
use source && java-pkg_dosrc src/java/org
|
|
}
|