vecmath-objectclub-1.14.ebuild 825 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # Copyright 1999-2012 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=4
  4. inherit java-pkg-2
  5. MY_PN="${PN/-objectclub/1.2}"
  6. DESCRIPTION="Unofficial free implementation of Sun javax.vecmath by Kenji Hiranabe"
  7. HOMEPAGE="http://www.objectclub.jp/download/vecmath_e"
  8. SRC_URI="http://www.objectclub.jp/download/files/vecmath/${MY_PN}-${PV}.tar.gz"
  9. LICENSE="HPND"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
  12. IUSE=""
  13. DEPEND=">=virtual/jdk-1.4"
  14. RDEPEND=">=virtual/jre-1.4"
  15. S="${WORKDIR}/${MY_PN}-${PV}"
  16. src_prepare() {
  17. mkdir classes
  18. }
  19. src_compile() {
  20. find javax/ -name "*.java" > "${T}/src.list"
  21. ejavac -d "${S}/classes" "@${T}/src.list"
  22. cd classes
  23. jar -cf "${S}"/${PN}.jar * || die "failed to create jar"
  24. }
  25. src_install() {
  26. java-pkg_dojar ${PN}.jar
  27. dodoc README
  28. }