trident-1.3.ebuild 998 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. # Copyright 1999-2014 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. JAVA_PKG_IUSE="source"
  5. inherit java-pkg-2 java-ant-2
  6. DESCRIPTION="Java animation library"
  7. HOMEPAGE="https://kenai.com/projects/trident/pages/Home"
  8. SRC_URI="https://kenai.com/projects/trident/downloads/download/version%20${PV}%20-%20stable/${PN}-all.zip -> ${P}.zip"
  9. LICENSE="BSD"
  10. SLOT="0"
  11. KEYWORDS="amd64 x86"
  12. IUSE=""
  13. RESTRICT="test"
  14. CDEPEND="dev-java/swt:3.7"
  15. DEPEND=">=virtual/jdk-1.6
  16. app-arch/unzip
  17. ${CDEPEND}"
  18. RDEPEND=">=virtual/jre-1.6
  19. ${CDEPEND}"
  20. S="${WORKDIR}"
  21. JAVA_ANT_REWRITE_CLASSPATH="true"
  22. EANT_BUILD_TARGET="timestamp init clean compile.module.trident jar"
  23. EANT_GENTOO_CLASSPATH="swt-3.7"
  24. EANT_EXTRA_ARGS="-Djdk.home=${JAVA_HOME}"
  25. java_prepare() {
  26. mkdir build/classes -p || die
  27. rm -r src/org/pushingpixels/trident/android/ || die
  28. epatch "${FILESDIR}"/${PV}-*.patch
  29. }
  30. src_install() {
  31. java-pkg_dojar drop/${PN}.jar
  32. use source && java-pkg_dosrc src/*
  33. }