jmol-acme-1.0.ebuild 873 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # Copyright 1999-2011 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit java-pkg-2 java-ant-2
  5. MY_P="Acme"
  6. # It proved difficult to recompile the whole Acme package, so we'll only take what we need.
  7. DESCRIPTION="Portions of the Acme collection required for jMol"
  8. HOMEPAGE="http://www.acme.com/"
  9. SRC_URI="http://www.acme.com/resources/classes/${MY_P}.tar.gz"
  10. LICENSE="BSD-2"
  11. SLOT="0"
  12. KEYWORDS="~amd64 ~x86"
  13. IUSE=""
  14. DEPEND=">=virtual/jdk-1.4"
  15. RDEPEND=">=virtual/jre-1.4"
  16. S=${WORKDIR}/${MY_P}
  17. src_prepare() {
  18. mkdir -p classes
  19. find . -name \*.class -delete
  20. java-pkg_filter-compiler jikes
  21. }
  22. src_compile() {
  23. cp "${FILESDIR}/src.list" "${T}" || die
  24. ejavac -sourcepath "" -d "${S}/classes" "@${T}/src.list"
  25. jar cf "${PN}.jar" -C classes . || die "failed to create jar"
  26. }
  27. src_install() {
  28. java-pkg_dojar ${PN}.jar
  29. }