spring-instrument-3.2.4.ebuild 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  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"
  13. DEPEND=">=virtual/jdk-1.7
  14. test? (
  15. dev-java/ant-junit4:0
  16. dev-java/hamcrest-core:1.3
  17. dev-java/hamcrest-library:1.3
  18. dev-java/junit:4
  19. dev-java/mockito:0
  20. dev-java/spring-core:${SLOT}
  21. dev-java/xmlunit:1
  22. )"
  23. RDEPEND=">=virtual/jre-1.7"
  24. S="${WORKDIR}/spring-framework-${PV}.RELEASE/"
  25. EANT_BUILD_XML=${S}/${PN}/build.xml
  26. JAVA_ANT_REWRITE_CLASSPATH="true"
  27. EANT_GENTOO_CLASSPATH=""
  28. EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH}
  29. hamcrest-library-1.3
  30. hamcrest-core-1.3
  31. junit-4
  32. mockito
  33. spring-core-${SLOT}
  34. xmlunit-1"
  35. java_prepare() {
  36. find . -name '*.jar' -print -delete || die
  37. cp "${FILESDIR}"/${P}-build.xml "${EANT_BUILD_XML}" || die
  38. }
  39. src_test() {
  40. java-pkg-2_src_test
  41. }
  42. src_install() {
  43. java-pkg_dojar "${S}"/${PN}/dist/${PN}.jar
  44. use source && java-pkg_dosrc "${S}"/${PN}/src/main/java/org/
  45. use doc && java-pkg_dojavadoc "${S}"/${PN}/dist/apidocs/
  46. }