commit:     9e3dc1d39ddeb3791dd2f71f9eb6087bf0ba61c4
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Tue Jun  9 10:22:32 2015 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Tue Jun  9 10:22:32 2015 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=9e3dc1d3

sci-biology/artemis-bin: ebuild cleanup

Package-Manager: portage-2.2.18

 sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild | 29 ++++++++++++++++------
 1 file changed, 21 insertions(+), 8 deletions(-)

diff --git a/sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild 
b/sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild
index d089c7f..3c04159 100644
--- a/sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild
+++ b/sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild
@@ -10,22 +10,35 @@ MY_V="16"
 
 DESCRIPTION="DNA sequence viewer, annotation (Artemis) and comparison (ACT) 
tool"
 HOMEPAGE="http://www.sanger.ac.uk/resources/software/artemis";
-SRC_URI="ftp://ftp.sanger.ac.uk/pub4/resources/software/artemis/v"${MY_V}"/v"${PV}"/artemis_compiled_v"${PV}".tar.gz
+SRC_URI="ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/v"${PV}"/artemis_compiled_v"${PV}".tar.gz
+       
ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/v"${PV}"/artemis_v"${PV}".jar
+       
ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/v"${PV}"/sartemis_v"${PV}".jar
        ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/artemis.pdf";
-
 LICENSE="GPL-2"
 SLOT="0"
-KEYWORDS=""
+KEYWORDS="~amd64"
 IUSE=""
 
-DEPEND="sci-biology/samtools
-               sci-biology/BamView"
+S="${WORKDIR}"/artemis
+
+DEPEND="
+       !sci-biology/artemis
+       sci-biology/samtools"
 RDEPEND="${DEPEND}
                >=virtual/jre-1.6"
 
 src_install(){
-       dodoc artemis.pdf
+       cp -p "${DISTDIR}"/artemis_v"${PV}".jar artemis.jar || die
+       java-pkg_dojar artemis.jar
+       cp -p "${DISTDIR}"/sartemis_v"${PV}".jar sartemis.jar || die
+       java-pkg_dojar sartemis.jar
+       dodoc "${DISTDIR}"/artemis.pdf README
 }
 
-# do not know what is the diffeerence between artemis_compiled_v16.0.6.tar.gz, 
artemis_v16.0.6.jar and sartemis_v16.0.6.jar
-#   ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v16/v16.0.6/
+# artemis_compiled_v16.0.11.tar.gz contains compiled binaries but also java 
*.class files
+# artemis_v16.0.11.jar and sartemis_v16.0.11.jar
+#   ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v16/v16.0.11/
+
+pkg_postinst(){
+       einfo "For BAM file support please install sci-biology/BamView"
+}

Reply via email to