Diff tomcat-servlet-api-7.0.96 with a tomcat-servlet-api-8.0.53

/usr/portage/dev-java/tomcat-servlet-api/tomcat-servlet-api-8.0.53.ebuild 2019-02-10 17:39:00.000000000 +0300
1 1
# Copyright 1999-2019 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI="6"
4
EAPI="5"
5 5
JAVA_PKG_IUSE="source"
6 6

  
7 7
inherit eutils java-pkg-2 java-ant-2
8 8

  
9 9
MY_A="apache-${P}-src"
10 10
MY_P="${MY_A/-servlet-api/}"
11
DESCRIPTION="Tomcat's Servlet API 3.0/JSP API 2.2 implementation"
11
DESCRIPTION="Tomcat's Servlet API 3.1/JSP API 2.3/EL API 3.0 implementation"
12 12
HOMEPAGE="https://tomcat.apache.org/"
13
SRC_URI="mirror://apache/tomcat/tomcat-7/v${PV}/src/${MY_P}.tar.gz"
13
SRC_URI="mirror://apache/tomcat/tomcat-8/v${PV}/src/${MY_P}.tar.gz"
14 14

  
15 15
LICENSE="Apache-2.0"
16
SLOT="3.0"
17
KEYWORDS="amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
16
SLOT="3.1"
17
KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux ~x64-solaris ~x86-solaris"
18 18
IUSE=""
19 19

  
20
DEPEND=">=virtual/jdk-1.6"
21
RDEPEND=">=virtual/jre-1.6"
20
DEPEND=">=virtual/jdk-1.7"
21
RDEPEND=">=virtual/jre-1.7"
22 22

  
23 23
S="${WORKDIR}/${MY_P}/"
24 24

  
25
src_prepare() {
26
	default
27

  
25
java_prepare() {
28 26
	cp "${FILESDIR}/${SLOT}-build.xml" build.xml || die "Could not replace build.xml"
29
	rm -fR */*/build.xml ||die
30
	java-pkg_clean
31

  
32
	java-pkg-2_src_prepare
27
	rm -fR */*/build.xml
28
	einfo "Removing bundled jars and classes"
29
	find "${S}" '(' -name '*.class' -o -name '*.jar' ')' -exec rm -frv {} +
33 30
}
34 31

  
35 32
src_install() {
Thank you!