commit:     f020b550bf8bf4e51784679da95213ed2a50bc23
Author:     Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
AuthorDate: Wed Mar 30 14:22:08 2016 +0000
Commit:     Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
CommitDate: Wed Mar 30 14:22:08 2016 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=f020b550

sci-biology/artemis-bin: install docs, cleanup ebuild and bring it in sync with 
sci-biology/act-bin and sci-biology/artemis-9999

Package-Manager: portage-2.2.28

 sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild | 27 ++++++++++++++++++----
 1 file changed, 22 insertions(+), 5 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 e0c9fe9..7f5a97b 100644
--- a/sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild
+++ b/sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild
@@ -2,24 +2,26 @@
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
-EAPI=5
+EAPI=6
 
 inherit java-pkg-2
 
 MY_V="16"
 
-DESCRIPTION="DNA sequence viewer, annotation (Artemis) and comparison (ACT) 
tool"
+DESCRIPTION="DNA sequence viewer, annotation (Artemis) without comparison 
(ACT) tool"
 HOMEPAGE="http://www.sanger.ac.uk/resources/software/artemis";
 
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";
+       
ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/artemis_manual_complete.pdf
 -> ${P}.manual.pdf
+       
ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/release_notes.txt
 -> ${P}.release_notes.txt
+       
ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/art_html_build.zip
 -> ${P}.html_build.zip"
 LICENSE="GPL-2"
 SLOT="0"
 KEYWORDS="~amd64"
 IUSE=""
 
-S="${WORKDIR}"/artemis
+S="${WORKDIR}"
 
 DEPEND="
        !sci-biology/artemis
@@ -27,12 +29,24 @@ DEPEND="
 RDEPEND="${DEPEND}
                >=virtual/jre-1.6"
 
+src_unpack(){
+       unzip "${DISTDIR}"/${P}.html_build.zip || die
+}
+
+src_prepare(){
+       default
+       cd art_html_build || die
+       rm -f .DS_Store HTML.index HTML.manifest || die
+}
+
 src_install(){
        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
+       dodoc "${DISTDIR}"/${P}.manual.pdf "${DISTDIR}"/${P}.release_notes.txt
+       insinto /usr/share/doc/"${PN}"/html
+       doins art_html_build/*
 }
 
 # artemis_compiled_v16.0.11.tar.gz contains compiled binaries but also java 
*.class files
@@ -41,4 +55,7 @@ src_install(){
 
 pkg_postinst(){
        einfo "For BAM file support please install sci-biology/BamView"
+       einfo "You may find interesting the additional web resources:"
+       einfo "http://www.webact.org/WebACT";
+       einfo "http://www.hpa-bioinfotools.org.uk/pise/double_act.html";
 }

Reply via email to