jgoodies-looks-2.3.1-r1.ebuild 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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 examples"
  5. inherit java-pkg-2 java-ant-2
  6. MY_PN="looks"
  7. MY_PV="${PV//./_}"
  8. MY_P="${MY_PN}-${MY_PV}"
  9. DESCRIPTION="JGoodies Looks Library"
  10. HOMEPAGE="http://www.jgoodies.com/"
  11. SRC_URI="http://www.jgoodies.com/download/libraries/${MY_PN}/${MY_P}.zip"
  12. LICENSE="BSD"
  13. SLOT="2.0"
  14. KEYWORDS="amd64 x86 ~x86-fbsd"
  15. IUSE=""
  16. DEPEND="
  17. >=virtual/jdk-1.4
  18. app-arch/unzip"
  19. RDEPEND=">=virtual/jre-1.4"
  20. S="${WORKDIR}/${MY_PN}-${PV}"
  21. # bug #150970
  22. EANT_FILTER_COMPILER="jikes"
  23. # jar target fails unless we make descriptors.dir an existing directory
  24. # update: it's where it looks for all.txt file
  25. EANT_EXTRA_ARGS="-Ddescriptors.dir=\"${S}\""
  26. EANT_BUILD_TARGET="jar-all"
  27. java_prepare() {
  28. # remove the bootclasspath brokedness, make building demo optional
  29. epatch "${FILESDIR}/${P}-build.xml.patch"
  30. # unzip the look&feel settings from bundled jar before we delete it
  31. unzip -j looks-${PV}.jar META-INF/services/javax.swing.LookAndFeel \
  32. || die "unzip of javax.swing.LookAndFeel failed"
  33. # and rename it to what build.xml expects
  34. mv javax.swing.LookAndFeel all.txt || die
  35. java-pkg_clean
  36. }
  37. src_install() {
  38. java-pkg_dojar build/looks.jar
  39. dodoc RELEASE-NOTES.txt || die
  40. dohtml README.html || die
  41. use doc && java-pkg_dojavadoc build/docs/api
  42. use source && java-pkg_dosrc src/core/com
  43. use examples && java-pkg_doexamples src/demo
  44. }