spring-expression-3.2.4.ebuild 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. # Copyright 1999-2013 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. JAVA_PKG_IUSE="doc source test"
  5. inherit java-pkg-2 java-ant-2
  6. DESCRIPTION="A comprehensive programming and configuration model for modern Java-based enterprise applications"
  7. HOMEPAGE="http://www.springsource.org/spring-framework"
  8. SRC_URI="https://github.com/SpringSource/spring-framework/archive/v${PV}.RELEASE.tar.gz -> spring-framework-${PV}.tar.gz
  9. https://dev.gentoo.org/~ercpe/distfiles/dev-java/spring-framework/spring-framework-${PV}-buildscripts.tar.bz2"
  10. LICENSE="Apache-2.0"
  11. SLOT="3.2"
  12. KEYWORDS="~amd64 ~x86"
  13. IUSE=""
  14. CDEPEND="dev-java/spring-core:${SLOT}"
  15. DEPEND=">=virtual/jdk-1.7
  16. test? (
  17. dev-java/hamcrest-core:1.3
  18. dev-java/hamcrest-library:1.3
  19. dev-java/junit:4
  20. dev-java/mockito:0
  21. dev-java/ant-junit4:0
  22. dev-java/xmlunit:1
  23. )
  24. ${CDEPEND}"
  25. RDEPEND=">=virtual/jre-1.7
  26. ${CDEPEND}"
  27. S="${WORKDIR}/spring-framework-${PV}.RELEASE/"
  28. EANT_BUILD_XML=${S}/${PN}/build.xml
  29. JAVA_ANT_REWRITE_CLASSPATH="true"
  30. EANT_GENTOO_CLASSPATH="spring-core-${SLOT}"
  31. EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}
  32. hamcrest-library-1.3
  33. hamcrest-core-1.3
  34. junit-4
  35. mockito
  36. xmlunit-1"
  37. src_install() {
  38. java-pkg_dojar "${S}"/${PN}/dist/${PN}.jar
  39. use source && java-pkg_dosrc "${S}"/${PN}/src/main/java/org/
  40. use doc && java-pkg_dojavadoc "${S}"/${PN}/dist/apidocs/
  41. }
  42. src_test() {
  43. java-pkg-2_src_test
  44. }