gnu-javamail-1.0-r2.ebuild 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. # Copyright 1999-2008 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. inherit java-pkg-2
  4. MY_PN="mail"
  5. MY_P="${MY_PN}-${PV}"
  6. DESCRIPTION="GNU implementation of the Javamail API"
  7. HOMEPAGE="https://www.gnu.org/software/classpathx/javamail/"
  8. SRC_URI="mirror://gnu/classpathx/${MY_P}.tar.gz"
  9. LICENSE="GPL-2-with-linking-exception"
  10. SLOT="1"
  11. KEYWORDS="amd64 x86"
  12. IUSE="doc"
  13. RDEPEND=">=virtual/jre-1.4
  14. =dev-java/gnu-jaf-1*
  15. =dev-java/gnu-classpath-inetlib-1.0*
  16. !<=dev-java/mx4j-3.0.1
  17. !<=dev-java/mx4j-3.0.1-r2"
  18. DEPEND=">=virtual/jdk-1.4
  19. ${RDEPEND}"
  20. S=${WORKDIR}/${MY_P}
  21. # TODO: Re-enable jikes support (see bug #89711)
  22. src_compile() {
  23. local activation=$(dirname $(java-pkg_getjar gnu-jaf-1 activation.jar))
  24. local inetlib=$(dirname $(java-pkg_getjar gnu-classpath-inetlib-1.0 inetlib.jar))
  25. econf \
  26. --with-activation-jar=${activation} \
  27. --with-inetlib-jar=${inetlib} \
  28. --enable-smtp \
  29. --enable-imap \
  30. --enable-pop3 \
  31. --enable-nntp \
  32. --enable-mbox \
  33. --enable-maildir \
  34. || die "failed to configure"
  35. emake JAVACFLAGS="${JAVACFLAGS}" || die "failed to compile"
  36. if use doc; then
  37. emake javadoc || die "failed to generate javadoc"
  38. fi
  39. }
  40. src_install() {
  41. java-pkg_dojar gnumail-providers.jar
  42. java-pkg_newjar gnumail.jar mail.jar
  43. dodoc AUTHORS ChangeLog NEWS README README.*
  44. use doc && java-pkg_dojavadoc docs
  45. }