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/twinscan/
Date: Sat, 02 May 2015 13:03:44
Message-Id: 1430571770.6af4aac14e752bcd1bb065b0e09ded7c58ad088a.mmokrejs@gentoo
1 commit: 6af4aac14e752bcd1bb065b0e09ded7c58ad088a
2 Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Sat May 2 13:02:50 2015 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Sat May 2 13:02:50 2015 +0000
6 URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=6af4aac1
7
8 sci-biology/twinscan: lots of tweaks to install process, install perl modules, more perl scripts, noted optional external dependencies
9
10 Package-Manager: portage-2.2.18
11
12 sci-biology/twinscan/ChangeLog | 10 ++++-
13 sci-biology/twinscan/twinscan-4.1.2-r1.ebuild | 62 +++++++++++++++++++++++++++
14 sci-biology/twinscan/twinscan-4.1.2.ebuild | 49 ---------------------
15 3 files changed, 70 insertions(+), 51 deletions(-)
16
17 diff --git a/sci-biology/twinscan/ChangeLog b/sci-biology/twinscan/ChangeLog
18 index fedf86e..a377384 100644
19 --- a/sci-biology/twinscan/ChangeLog
20 +++ b/sci-biology/twinscan/ChangeLog
21 @@ -1,7 +1,14 @@
22 # ChangeLog for sci-biology/twinscan
23 -# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
24 +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
25 # $Header: $
26
27 +*twinscan-4.1.2-r1 (02 May 2015)
28 +
29 + 02 May 2015; Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
30 + +twinscan-4.1.2-r1.ebuild, -twinscan-4.1.2.ebuild:
31 + sci-biology/twinscan: lots of tweaks to install process, install perl modules,
32 + more perl scripts, noted optional external dependencies
33 +
34 16 Jun 2013; Justin Lecher <jlec@g.o> twinscan-4.1.2.ebuild,
35 metadata.xml:
36 Bump to EAPI=5 and fix license
37 @@ -15,4 +22,3 @@
38
39 17 Apr 2009; Andrey Kislyuk <weaver@g.o> ChangeLog:
40 New package, bug 154939, ebuild written by me
41 -
42
43 diff --git a/sci-biology/twinscan/twinscan-4.1.2-r1.ebuild b/sci-biology/twinscan/twinscan-4.1.2-r1.ebuild
44 new file mode 100644
45 index 0000000..11500ca
46 --- /dev/null
47 +++ b/sci-biology/twinscan/twinscan-4.1.2-r1.ebuild
48 @@ -0,0 +1,62 @@
49 +# Copyright 1999-2015 Gentoo Foundation
50 +# Distributed under the terms of the GNU General Public License v2
51 +# $Header: $
52 +
53 +EAPI=5
54 +
55 +PERL_EXPORT_PHASE_FUNCTIONS=no
56 +inherit perl-module eutils toolchain-funcs
57 +
58 +DESCRIPTION="iscan (aka twinscan and N-SCAN) and wrapper around Pairagon: A gene structure prediction pipeline"
59 +HOMEPAGE="http://mblab.wustl.edu/software/twinscan"
60 +SRC_URI="http://mblab.wustl.edu/software/download/iscan-${PV}.tar_.gz -> ${P}.tar.gz"
61 +
62 +LICENSE="all-rights-reserved"
63 +SLOT="0"
64 +IUSE=""
65 +KEYWORDS="~amd64 ~x86"
66 +
67 +DEPEND="dev-libs/glib:2"
68 +RDEPEND="${DEPEND}"
69 +
70 +S="${WORKDIR}/N-SCAN"
71 +
72 +src_prepare() {
73 + sed "1 a use lib '/usr/share/${PN}/lib/perl5';" -i "${S}"/bin/*.pl || die
74 + sed '/my $blast_param/ s/#//' -i "${S}/bin/runTwinscan2.pl" || die
75 + tc-export CC AR RANLIB
76 +
77 + sed \
78 + -e 's:ar :$(AR) :g' \
79 + -e 's:ranlib :$(RANLIB) :g' \
80 + -e 's: -o : $(LDFLAGS) -o :g' \
81 + -i Makefile || die
82 +
83 + sed \
84 + -e "/^GLIB_CFLAGS/s:=.*:=$($(tc-getPKG_CONFIG) --cflags glib-2.0) -DHAS_GLIB:g" \
85 + -e "/^GLIB_LFLAGS/s:=.*:=$($(tc-getPKG_CONFIG) --libs glib-2.0)-DHAS_GLIB:g" \
86 + -i Makefile.include || die
87 +}
88 +
89 +src_install() {
90 + dobin bin/iscan bin/zoe2gtf bin/*.pl src/*.pl
91 + dolib lib/libzoe.a
92 + insinto /usr/share/${PN}
93 + doins -r parameters
94 + insinto /usr/share/${PN}/src
95 + doins src/*.zhmm
96 + perl_set_version
97 + insinto ${VENDOR_LIB}/${PN}
98 + doins lib/perl5/*.pm
99 + echo "TWINSCAN=/usr" > "${S}"/99${PN}
100 + doenvd "${S}"/99${PN}
101 + rm -rf examples/tmp
102 + dodoc examples/* README* src/doc/*.txt
103 +}
104 +
105 +pkg_postinst(){
106 + einfo "Pairagon acts on output from either: sci-biology/gmap sci-biology/blat."
107 + einfo "It also works on blastn output from WU-BLAST (not provided in Gentoo)."
108 + einfo "It also calls blastz (seems superseded by LASTZ) and genscan++ (not provided in Gentoo)."
109 + einfo "For some reason we have pslCDnaFilter provided only by sci-biology/ucsc-genome-browser"
110 +}
111
112 diff --git a/sci-biology/twinscan/twinscan-4.1.2.ebuild b/sci-biology/twinscan/twinscan-4.1.2.ebuild
113 deleted file mode 100644
114 index 4667c0e..0000000
115 --- a/sci-biology/twinscan/twinscan-4.1.2.ebuild
116 +++ /dev/null
117 @@ -1,49 +0,0 @@
118 -# Copyright 1999-2014 Gentoo Foundation
119 -# Distributed under the terms of the GNU General Public License v2
120 -# $Header: $
121 -
122 -EAPI=5
123 -
124 -inherit toolchain-funcs
125 -
126 -DESCRIPTION="TwinScan, N-SCAN, and Pairagon: A gene structure prediction pipeline"
127 -HOMEPAGE="http://mblab.wustl.edu/software/twinscan"
128 -SRC_URI="http://mblab.wustl.edu/software/download/iscan-${PV}.tar_.gz -> ${P}.tar.gz"
129 -
130 -LICENSE="all-rights-reserved"
131 -SLOT="0"
132 -IUSE=""
133 -KEYWORDS="~amd64 ~x86"
134 -
135 -DEPEND="dev-libs/glib:2"
136 -RDEPEND="${DEPEND}"
137 -
138 -S="${WORKDIR}/N-SCAN"
139 -
140 -src_prepare() {
141 - sed -i "1 a use lib '/usr/share/${PN}/lib/perl5';" "${S}"/bin/*.pl || die
142 - sed -i '/my $blast_param/ s/#//' "${S}/bin/runTwinscan2.pl" || die
143 - tc-export CC AR RANLIB
144 -
145 - sed \
146 - -e 's:ar :$(AR) :g' \
147 - -e 's:ranlib :$(RANLIB) :g' \
148 - -e 's: -o : $(LDFLAGS) -o :g' \
149 - -i Makefile || die
150 -
151 - sed \
152 - -e "/^GLIB_CFLAGS/s:=.*:=$($(tc-getPKG_CONFIG) --cflags glib-2.0) -DHAS_GLIB:g" \
153 - -e "/^GLIB_LFLAGS/s:=.*:=$($(tc-getPKG_CONFIG) --libs glib-2.0)-DHAS_GLIB:g" \
154 - -i Makefile.include || die
155 -}
156 -
157 -src_install() {
158 - dobin "${S}/bin/iscan" "${S}"/bin/*.pl || die
159 - insinto /usr/share/${PN}
160 - doins -r "${S}/parameters" || die
161 - doins -r "${S}/lib" || die
162 - echo "TWINSCAN=/usr" > "${S}"/99${PN}
163 - doenvd "${S}"/99${PN} || die
164 - rm -rf examples/tmp
165 - dodoc examples/* README*
166 -}