Gentoo Archives: gentoo-commits

From: Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/artemis-bin/
Date: Wed, 30 Mar 2016 14:26:38
Message-Id: 1459347728.f020b550bf8bf4e51784679da95213ed2a50bc23.mmokrejs@gentoo
1 commit: f020b550bf8bf4e51784679da95213ed2a50bc23
2 Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Wed Mar 30 14:22:08 2016 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Wed Mar 30 14:22:08 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=f020b550
7
8 sci-biology/artemis-bin: install docs, cleanup ebuild and bring it in sync with sci-biology/act-bin and sci-biology/artemis-9999
9
10 Package-Manager: portage-2.2.28
11
12 sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild | 27 ++++++++++++++++++----
13 1 file changed, 22 insertions(+), 5 deletions(-)
14
15 diff --git a/sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild b/sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild
16 index e0c9fe9..7f5a97b 100644
17 --- a/sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild
18 +++ b/sci-biology/artemis-bin/artemis-bin-16.0.11.ebuild
19 @@ -2,24 +2,26 @@
20 # Distributed under the terms of the GNU General Public License v2
21 # $Id$
22
23 -EAPI=5
24 +EAPI=6
25
26 inherit java-pkg-2
27
28 MY_V="16"
29
30 -DESCRIPTION="DNA sequence viewer, annotation (Artemis) and comparison (ACT) tool"
31 +DESCRIPTION="DNA sequence viewer, annotation (Artemis) without comparison (ACT) tool"
32 HOMEPAGE="http://www.sanger.ac.uk/resources/software/artemis"
33 SRC_URI="ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/v"${PV}"/artemis_compiled_v"${PV}".tar.gz
34 ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/v"${PV}"/artemis_v"${PV}".jar
35 ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/v"${PV}"/sartemis_v"${PV}".jar
36 - ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/artemis.pdf"
37 + ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/artemis_manual_complete.pdf -> ${P}.manual.pdf
38 + ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/release_notes.txt -> ${P}.release_notes.txt
39 + ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v"${MY_V}"/art_html_build.zip -> ${P}.html_build.zip"
40 LICENSE="GPL-2"
41 SLOT="0"
42 KEYWORDS="~amd64"
43 IUSE=""
44
45 -S="${WORKDIR}"/artemis
46 +S="${WORKDIR}"
47
48 DEPEND="
49 !sci-biology/artemis
50 @@ -27,12 +29,24 @@ DEPEND="
51 RDEPEND="${DEPEND}
52 >=virtual/jre-1.6"
53
54 +src_unpack(){
55 + unzip "${DISTDIR}"/${P}.html_build.zip || die
56 +}
57 +
58 +src_prepare(){
59 + default
60 + cd art_html_build || die
61 + rm -f .DS_Store HTML.index HTML.manifest || die
62 +}
63 +
64 src_install(){
65 cp -p "${DISTDIR}"/artemis_v"${PV}".jar artemis.jar || die
66 java-pkg_dojar artemis.jar
67 cp -p "${DISTDIR}"/sartemis_v"${PV}".jar sartemis.jar || die
68 java-pkg_dojar sartemis.jar
69 - dodoc "${DISTDIR}"/artemis.pdf README
70 + dodoc "${DISTDIR}"/${P}.manual.pdf "${DISTDIR}"/${P}.release_notes.txt
71 + insinto /usr/share/doc/"${PN}"/html
72 + doins art_html_build/*
73 }
74
75 # artemis_compiled_v16.0.11.tar.gz contains compiled binaries but also java *.class files
76 @@ -41,4 +55,7 @@ src_install(){
77
78 pkg_postinst(){
79 einfo "For BAM file support please install sci-biology/BamView"
80 + einfo "You may find interesting the additional web resources:"
81 + einfo "http://www.webact.org/WebACT"
82 + einfo "http://www.hpa-bioinfotools.org.uk/pise/double_act.html"
83 }