antlr-2.7.7-r8.ebuild 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Copyright 1999-2017 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI=6
  4. JAVA_PKG_IUSE="doc source"
  5. inherit java-pkg-2 java-pkg-simple
  6. DESCRIPTION="A parser generator for many languages"
  7. HOMEPAGE="http://www.antlr2.org/"
  8. SRC_URI="http://www.antlr2.org/download/${P}.tar.gz"
  9. LICENSE="public-domain"
  10. SLOT="0"
  11. KEYWORDS="~amd64 ~arm ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
  12. IUSE="examples"
  13. RDEPEND=">=virtual/jre-1.6"
  14. DEPEND=">=virtual/jdk-1.6"
  15. S="${WORKDIR}/${P}"
  16. JAVA_SRC_DIR="${S}/${PN}"
  17. DOCS=( CHANGES.txt README.txt )
  18. src_prepare() {
  19. default
  20. java-pkg_clean
  21. # Delete build files from examples.
  22. find examples \( -name Makefile.in -o -name shiplist \) -delete || die
  23. }
  24. # Avoid configure script.
  25. src_configure() { :; }
  26. src_install() {
  27. java-pkg-simple_src_install
  28. java-pkg_dolauncher antlr --main antlr.Tool
  29. use doc && java-pkg_dohtml -r doc/*
  30. use examples && java-pkg_doexamples examples/java
  31. use source && java-pkg_dosrc antlr
  32. einstalldocs
  33. }