1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 JAVA_PKG_IUSE="doc source test"
9 inherit java-pkg-2 java-ant-2
11 DESCRIPTION="A comprehensive programming and configuration model for modern Java-based enterprise applications"
12 HOMEPAGE="http://www.springsource.org/spring-framework"
13 SRC_URI="https://github.com/SpringSource/spring-framework/archive/v${PV}.RELEASE.tar.gz -> spring-framework-${PV}.tar.gz
14 https://dev.gentoo.org/~ercpe/distfiles/dev-java/spring-framework/spring-framework-${PV}-buildscripts.tar.bz2"
18 KEYWORDS="~amd64 ~x86"
22 CDEPEND="dev-java/spring-core:${SLOT}"
24 DEPEND=">=virtual/jdk-1.7
26 dev-java/hamcrest-core:1.3
27 dev-java/hamcrest-library:1.3
35 RDEPEND=">=virtual/jre-1.7
38 S="${WORKDIR}/spring-framework-${PV}.RELEASE/"
40 EANT_BUILD_XML=${S}/${PN}/build.xml
41 JAVA_ANT_REWRITE_CLASSPATH="true"
43 EANT_GENTOO_CLASSPATH="spring-core-${SLOT}"
45 EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}
53 java-pkg_dojar "${S}"/${PN}/dist/${PN}.jar
55 use source && java-pkg_dosrc "${S}"/${PN}/src/main/java/org/
56 use doc && java-pkg_dojavadoc "${S}"/${PN}/dist/apidocs/