picard-1.103.ebuild 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. # Copyright 1999-2013 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. WANT_ANT_TASKS="ant-apache-bcel dev-java/testng:0 ant-junit4"
  6. inherit java-pkg-2 java-ant-2
  7. DESCRIPTION="Java-based command-line utilities that manipulate SAM files"
  8. HOMEPAGE="http://picard.sourceforge.net/"
  9. SRC_URI="https://dev.gentoo.org/~ercpe/distfiles/${CATEGORY}/${PN}/${P}.tar.bz2"
  10. LICENSE="Apache-2.0"
  11. SLOT="0"
  12. IUSE=""
  13. KEYWORDS="~amd64 ~x86"
  14. CDEPEND="dev-java/snappy:1.0
  15. dev-java/cofoja:0
  16. dev-java/commons-jexl:2
  17. dev-java/ant-core:0"
  18. DEPEND=">=virtual/jdk-1.6
  19. dev-java/ant-apache-bcel:0
  20. test? (
  21. dev-java/testng:0
  22. dev-lang/R
  23. )
  24. ${CDEPEND}"
  25. RDEPEND=">=virtual/jre-1.6
  26. ${CDEPEND}"
  27. EANT_BUILD_TARGET="all"
  28. EANT_TEST_TARGET="test"
  29. EANT_NEEDS_TOOLS="true"
  30. JAVA_ANT_REWRITE_CLASSPATH="true"
  31. EANT_GENTOO_CLASSPATH="snappy-1.0,cofoja,commons-jexl-2,ant-core"
  32. EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},testng"
  33. java_prepare() {
  34. mkdir "${S}"/lib || die
  35. epatch "${FILESDIR}"/${PV}-gentoo.patch
  36. mv "${S}"/src/java/net/sf/samtools/SAMTestUtil.java "${S}"/src/tests/java/net/sf/samtools || die
  37. }
  38. src_install() {
  39. cd dist || die
  40. for i in *-${PV}.jar; do
  41. java-pkg_newjar $i ${i/-${PV}/}
  42. rm $i || die
  43. done
  44. java-pkg_dojar *.jar
  45. for i in *.jar; do
  46. java-pkg_dolauncher ${i/.jar/} --jar $i;
  47. done
  48. use source && java-pkg_dosrc "${S}"/src/java/*
  49. use doc && java-pkg_dojavadoc "${S}"/javadoc
  50. }
  51. src_test() {
  52. java-pkg-2_src_test
  53. }