/[gentoo-x86]/dev-java/tomcat-servlet-api/tomcat-servlet-api-7.0.25.ebuild
Gentoo

Contents of /dev-java/tomcat-servlet-api/tomcat-servlet-api-7.0.25.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sun Mar 25 20:10:52 2012 UTC (2 years, 8 months ago) by fordfrog
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
dev-java/tomcat-servlet-api: removed obsolete versions

(Portage version: 2.1.10.51/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-java/tomcat-servlet-api/tomcat-servlet-api-7.0.25.ebuild,v 1.2 2012/02/23 12:20:33 ago Exp $
4
5 EAPI="2"
6 JAVA_PKG_IUSE="source"
7
8 inherit eutils java-pkg-2 java-ant-2
9
10 MY_A="apache-${P}-src"
11 MY_P="${MY_A/-servlet-api/}"
12 DESCRIPTION="Tomcat's Servlet API 3.0/JSP API 2.2 implementation"
13 HOMEPAGE="http://tomcat.apache.org/"
14 SRC_URI="mirror://apache/tomcat/tomcat-7/v${PV}/src/${MY_P}.tar.gz"
15
16 LICENSE="Apache-2.0"
17 SLOT="3.0"
18 KEYWORDS="amd64 ~ppc ~ppc64 ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
19 IUSE=""
20
21 DEPEND=">=virtual/jdk-1.6"
22 RDEPEND=">=virtual/jre-1.6"
23
24 S="${WORKDIR}/${MY_P}/"
25
26 java_prepare() {
27 cp "${FILESDIR}/${SLOT}-build.xml" build.xml || die "Could not replace build.xml"
28 rm -fR */*/build.xml
29 einfo "Removing bundled jars and classes"
30 find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -delete
31 }
32
33 src_install() {
34 java-pkg_dojar "${S}"/output/build/lib/*.jar
35 use source && java-pkg_dosrc java/javax/servlet/
36 }

  ViewVC Help
Powered by ViewVC 1.1.20