jacl-1.4.1-r1.ebuild 975 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. # Copyright 1999-2016 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=5
  4. JAVA_PKG_IUSE="doc source"
  5. inherit java-pkg-2 java-pkg-simple
  6. MY_P="${P//-}"
  7. DESCRIPTION="Jacl is an implementation of Tcl written in Java"
  8. HOMEPAGE="http://tcljava.sourceforge.net"
  9. SRC_URI="mirror://sourceforge/tcljava/${MY_P}.tar.gz -> ${P}.tar.gz"
  10. LICENSE="BSD"
  11. SLOT="0"
  12. KEYWORDS="amd64 ppc64 x86"
  13. IUSE="doc"
  14. CDEPEND=">=dev-lang/tcl-8.4.5:*"
  15. RDEPEND="
  16. ${CDEPEND}
  17. >=virtual/jre-1.6"
  18. DEPEND="
  19. ${CRDEPEND}
  20. >=virtual/jdk-1.6"
  21. S="${WORKDIR}/${MY_P}"
  22. JAVA_SRC_DIR="src"
  23. java_prepare() {
  24. java-pkg_clean
  25. }
  26. src_configure() {
  27. :
  28. }
  29. src_compile() {
  30. rm -rf src/{Test.java,empty,tests,janino} || die
  31. java-pkg-simple_src_compile
  32. mv src/jacl/tcl src/ || die
  33. java-pkg_addres "${PN}.jar" src/ -name "*.tcl"
  34. }
  35. src_install() {
  36. java-pkg-simple_src_install
  37. java-pkg_dolauncher jaclsh --main tcl.lang.Shell
  38. dodoc README ChangeLog known_issues.txt || die
  39. }