tvbrowser-3.4.1.0-r1.ebuild 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. # Copyright 1999-2015 Gentoo Foundation
  2. # Distributed under the terms of the GNU General Public License v2
  3. EAPI="5"
  4. JAVA_PKG_IUSE="doc source test"
  5. inherit java-pkg-2 java-ant-2
  6. DESCRIPTION="Themeable and easy to use TV Guide - written in Java"
  7. HOMEPAGE="http://www.tvbrowser.org/"
  8. SRC_URI="mirror://sourceforge/${PN}/${P/-/_}_src.zip"
  9. SLOT="0"
  10. KEYWORDS="~amd64 ~x86"
  11. LICENSE="GPL-3"
  12. IUSE=""
  13. COMMON_DEP="dev-java/bsh:0
  14. dev-java/commons-codec:0
  15. dev-java/commons-lang:3.1
  16. dev-java/commons-net:0
  17. dev-java/jakarta-oro:2.0
  18. dev-java/jgoodies-common:1.8
  19. dev-java/jgoodies-forms:1.8
  20. dev-java/jgoodies-looks:2.6
  21. dev-java/l2fprod-common:0
  22. dev-java/htmlparser-org:0
  23. dev-java/log4j:0
  24. dev-java/skinlf:0
  25. dev-java/xalan:0
  26. dev-java/opencsv:0
  27. dev-java/texhyphj:0
  28. dev-java/trident:0
  29. x11-libs/libXt
  30. x11-libs/libSM
  31. x11-libs/libICE
  32. x11-libs/libXext
  33. x11-libs/libXtst
  34. x11-libs/libX11
  35. x11-libs/libXau
  36. x11-libs/libXdmcp"
  37. DEPEND="${COMMON_DEP}
  38. app-arch/unzip
  39. >=virtual/jdk-1.6"
  40. RDEPEND="${COMMON_DEP}
  41. >=virtual/jre-1.6"
  42. java_prepare() {
  43. epatch "${FILESDIR}"/${PV}-*.patch
  44. rm -v lib/{bsh-,commons,jgoodies,l2fprod-common-tasks,skinlf,stax,htmlparser,opencsv,trident,texhyphj,jRegistryKey}*.jar
  45. find deployment -name '*.jar' -delete || die
  46. find . -name '*.class' -delete || die
  47. }
  48. JAVA_ANT_REWRITE_CLASSPATH="true"
  49. EANT_GENTOO_CLASSPATH="bsh
  50. commons-codec
  51. commons-lang-3.1
  52. jgoodies-common-1.8
  53. jgoodies-forms-1.8
  54. jgoodies-looks-2.6
  55. l2fprod-common
  56. skinlf
  57. htmlparser-org
  58. opencsv
  59. texhyphj"
  60. EANT_BUILD_TARGET="runtime-linux"
  61. EANT_DOC_TARGET="public-doc"
  62. src_install() {
  63. java-pkg_dojar runtime/${PN}_linux/${PN}.jar
  64. java-pkg_dojar lib/substance-6.1.jar
  65. java-pkg_register-dependency trident,opencsv
  66. insinto /usr/share/${PN}
  67. doins -r runtime/${PN}_linux/{imgs,icons,plugins,infothemes}
  68. doins runtime/${PN}_linux/linux.properties
  69. insinto /usr/share/${PN}/themepacks
  70. doins themepacks/themepack.zip
  71. java-pkg_dolauncher "tvbrowser" \
  72. --main tvbrowser.TVBrowser \
  73. --pwd /usr/share/${PN} \
  74. --java_args " -Dpropertiesfile=/usr/share/${PN}/linux.properties"
  75. make_desktop_entry ${PN} "TV-Browser" \
  76. /usr/share/tvbrowser/imgs/tvbrowser128.png "AudioVideo;TV;Video"
  77. use source && java-pkg_dosrc src/*
  78. use doc && java-pkg_dojavadoc doc
  79. }