Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-biology/wise/, sci-biology/wise/files/
Date: Sun, 22 Aug 2021 19:38:06
Message-Id: 1629661045.6a6b5309daa23e0dbb6318512e68e81ffa668c81.soap@gentoo
1 commit: 6a6b5309daa23e0dbb6318512e68e81ffa668c81
2 Author: Jakov Smolic <jakov.smolic <AT> sartura <DOT> hr>
3 AuthorDate: Sun Aug 22 19:37:25 2021 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 22 19:37:25 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a6b5309
7
8 sci-biology/wise: Port to EAPI 8
9
10 Signed-off-by: Jakov Smolic <jakov.smolic <AT> sartura.hr>
11 Signed-off-by: David Seifert <soap <AT> gentoo.org>
12
13 sci-biology/wise/files/wise-api.tex.patch | 38 +++++++++++++++
14 sci-biology/wise/wise-2.4.0_alpha-r1.ebuild | 71 ++++++++++++++++++++++++++++
15 sci-biology/wise/wise-2.4.0_alpha.ebuild | 73 -----------------------------
16 3 files changed, 109 insertions(+), 73 deletions(-)
17
18 diff --git a/sci-biology/wise/files/wise-api.tex.patch b/sci-biology/wise/files/wise-api.tex.patch
19 new file mode 100644
20 index 00000000000..d6d56888dfb
21 --- /dev/null
22 +++ b/sci-biology/wise/files/wise-api.tex.patch
23 @@ -0,0 +1,38 @@
24 +--- a/api.tex.old
25 ++++ b/api.tex
26 +@@ -204,7 +204,7 @@
27 + \item Build two Sequence objects, from a file or strings (\ref{object_Sequence})
28 + \item Optionally convert the Sequence objects into Protein objects (\ref{object_Protein}). This ensures you have proteins
29 + \item Read in the comparison matrix using CompMat (\ref{object_CompMat})
30 +-\item Use one of the algorithm calls in sw_wrap module (\ref{module_sw_wrap})
31 ++\item Use one of the algorithm calls in sw\_wrap module (\ref{module_sw_wrap})
32 + \item Show the alignment using a call in the seqaligndisaply module (\ref{module_seqaligndisplay})
33 + \end{itemize}
34 +
35 +@@ -213,7 +213,7 @@
36 + \item Read in a sequence object and convert it to a protein object (\ref{object_Protein},\ref{object_Sequence})
37 + \item Make a protein database from the single protein object (\ref{object_ProteinDB})
38 + \item Make a protein database from a single fasta file (\ref{object_ProteinDB})
39 +-\item Using one of the calls to the sw_wrap module, make a Hscore object (\ref{module_sw_wrap})
40 ++\item Using one of the calls to the sw\_wrap module, make a Hscore object (\ref{module_sw_wrap})
41 + \item Show the Hscore object using a show function (\ref{object_Hscore})
42 + \item Retrieve individual protein objects from the database by taking out the
43 + DataEntry objects (\ref{object_DataEntry}) and passing them into the ProteinDB object (\ref{object_ProteinDB}), giving you a protein object
44 +@@ -232,7 +232,7 @@
45 + \item Read in a codon table (\ref{object_CodonTable})
46 + \item Make a random DNA model (\ref{object_RandomModelDNA})
47 + \item Make an algorithm type (\ref{module_gwrap})
48 +-\item Build an entire parameter set for genewise using Wise2::GeneParameter21_wrap (\ref{module_gwrap})
49 ++\item Build an entire parameter set for genewise using Wise2::GeneParameter21\_wrap (\ref{module_gwrap})
50 + \item Run the actual algorithm (\ref{module_gwrap})
51 + \item show the alignment using genedisplay (\ref{module_gwrap})
52 + \end{itemize}
53 +@@ -5055,7 +5055,7 @@
54 + Member functions of RandomModel
55 +
56 + \section{sequence\_codon}
57 +-\label{module_sequence\_codon}
58 ++\label{module_sequence_codon}
59 + This module only contains factory methods
60 +
61 + \subsection{sequence\_codon factory methods}
62
63 diff --git a/sci-biology/wise/wise-2.4.0_alpha-r1.ebuild b/sci-biology/wise/wise-2.4.0_alpha-r1.ebuild
64 new file mode 100644
65 index 00000000000..a033ffd011b
66 --- /dev/null
67 +++ b/sci-biology/wise/wise-2.4.0_alpha-r1.ebuild
68 @@ -0,0 +1,71 @@
69 +# Copyright 1999-2021 Gentoo Authors
70 +# Distributed under the terms of the GNU General Public License v2
71 +
72 +EAPI=8
73 +
74 +inherit toolchain-funcs
75 +
76 +MY_PV="${PV/_}"
77 +MY_P="${PN}${MY_PV}"
78 +DESCRIPTION="Intelligent algorithms for DNA searches"
79 +HOMEPAGE="http://www.ebi.ac.uk/Wise2/"
80 +SRC_URI="
81 + ftp://ftp.ebi.ac.uk/pub/software/${PN}2/${MY_P}.tar.gz
82 + https://dev.gentoo.org/~mgorny/dist/${P}-patchset.tar.bz2
83 +"
84 +S="${WORKDIR}"/${MY_P}
85 +
86 +LICENSE="BSD"
87 +SLOT="0"
88 +KEYWORDS="~amd64 ~x86"
89 +IUSE="doc"
90 +
91 +RDEPEND="~sci-biology/hmmer-2.3.2"
92 +DEPEND="${RDEPEND}"
93 +BDEPEND="
94 + app-shells/tcsh
95 + dev-lang/perl
96 + virtual/latex-base
97 +"
98 +
99 +PATCHES=(
100 + "${WORKDIR}"/${P}-patchset/${P}-glibc-2.10.patch
101 + "${WORKDIR}"/${P}-patchset/${P}-cflags.patch
102 +)
103 +
104 +src_prepare() {
105 + default
106 + cd docs || die
107 + cat ../src/models/*.tex ../src/dynlibsrc/*.tex | perl gettex.pl > temp.tex || die
108 + cat wise2api.tex temp.tex apiend.tex > api.tex || die
109 + eapply "${FILESDIR}"/${PN}-api.tex.patch
110 +}
111 +
112 +src_compile() {
113 + tc-export CC
114 + emake -C src all
115 +
116 + if use doc; then
117 + cd docs || die
118 + for i in api appendix dynamite wise2 wise3arch; do
119 + latex ${i} || die
120 + latex ${i} || die
121 + dvips ${i}.dvi -o || die
122 + done
123 + fi
124 +}
125 +
126 +src_test() {
127 + cd src || die
128 + WISECONFIGDIR="${S}/wisecfg" emake test
129 +}
130 +
131 +src_install() {
132 + dobin src/bin/* src/dynlibsrc/testgendb
133 +
134 + insinto /usr/share/${PN}
135 + doins -r wisecfg
136 +
137 + use doc && dodoc docs/*.ps
138 + newenvd "${WORKDIR}"/${P}-patchset/${PN}-env 24wise
139 +}
140
141 diff --git a/sci-biology/wise/wise-2.4.0_alpha.ebuild b/sci-biology/wise/wise-2.4.0_alpha.ebuild
142 deleted file mode 100644
143 index c37a8972e84..00000000000
144 --- a/sci-biology/wise/wise-2.4.0_alpha.ebuild
145 +++ /dev/null
146 @@ -1,73 +0,0 @@
147 -# Copyright 1999-2021 Gentoo Authors
148 -# Distributed under the terms of the GNU General Public License v2
149 -
150 -EAPI=5
151 -
152 -inherit epatch toolchain-funcs versionator
153 -
154 -DESCRIPTION="Intelligent algorithms for DNA searches"
155 -HOMEPAGE="http://www.ebi.ac.uk/Wise2/"
156 -SRC_URI="ftp://ftp.ebi.ac.uk/pub/software/${PN}2/${PN}$(delete_version_separator 3).tar.gz
157 - https://dev.gentoo.org/~mgorny/dist/${P}-patchset.tar.bz2"
158 -
159 -LICENSE="BSD"
160 -SLOT="0"
161 -KEYWORDS="~amd64 ~x86"
162 -IUSE="doc static-libs"
163 -
164 -RDEPEND="~sci-biology/hmmer-2.3.2"
165 -DEPEND="
166 - ${RDEPEND}
167 - app-shells/tcsh
168 - dev-lang/perl
169 - virtual/latex-base"
170 -
171 -S="${WORKDIR}"/${PN}$(delete_version_separator 3)
172 -
173 -src_prepare() {
174 - epatch \
175 - "${WORKDIR}"/${P}-patchset/${P}-glibc-2.10.patch \
176 - "${WORKDIR}"/${P}-patchset/${P}-cflags.patch
177 - cd "${S}"/docs || die
178 - cat "${S}"/src/models/*.tex "${S}"/src/dynlibsrc/*.tex | perl gettex.pl > temp.tex || die
179 - cat wise2api.tex temp.tex apiend.tex > api.tex || die
180 - epatch "${WORKDIR}"/${P}-patchset/${PN}-api.tex.patch
181 -}
182 -
183 -src_compile() {
184 - emake \
185 - -C src \
186 - CC="$(tc-getCC)" \
187 - all
188 - if use doc; then
189 - cd "${S}"/docs || die
190 - for i in api appendix dynamite wise2 wise3arch; do
191 - latex ${i} || die
192 - latex ${i} || die
193 - dvips ${i}.dvi -o || die
194 - done
195 - fi
196 -}
197 -
198 -src_test() {
199 - cd "${S}"/src || die
200 - WISECONFIGDIR="${S}/wisecfg" emake test
201 -}
202 -
203 -src_install() {
204 - dobin "${S}"/src/bin/* "${S}"/src/dynlibsrc/testgendb
205 - use static-libs && \
206 - dolib.a \
207 - "${S}"/src/base/libwisebase.a \
208 - "${S}"/src/dynlibsrc/libdyna.a \
209 - "${S}"/src/models/libmodel.a
210 -
211 - insinto /usr/share/${PN}
212 - doins -r "${S}"/wisecfg
213 -
214 - if use doc; then
215 - insinto /usr/share/doc/${PF}
216 - doins "${S}"/docs/*.ps
217 - fi
218 - newenvd "${WORKDIR}"/${P}-patchset/${PN}-env 24wise || die "Failed to install env file"
219 -}