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/mgblast/
Date: Mon, 24 Mar 2014 11:55:33
Message-Id: 1395662021.2c576304e6b594c5423610448a39bb68e75d47ea.mmokrejs@gentoo
1 commit: 2c576304e6b594c5423610448a39bb68e75d47ea
2 Author: Martin Mokrejš <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
3 AuthorDate: Mon Mar 24 11:53:41 2014 +0000
4 Commit: Martin Mokrejs <mmokrejs <AT> fold <DOT> natur <DOT> cuni <DOT> cz>
5 CommitDate: Mon Mar 24 11:53:41 2014 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=2c576304
7
8 sci-biology/mgblast: initial ebuild but while it needs an old version of ncbi-tools source tree to build ... it is not tested yet
9
10 ---
11 sci-biology/mgblast/ChangeLog | 11 ++++++++
12 sci-biology/mgblast/metadata.xml | 9 +++++++
13 sci-biology/mgblast/mgblast-0.1.ebuild | 46 ++++++++++++++++++++++++++++++++++
14 3 files changed, 66 insertions(+)
15
16 diff --git a/sci-biology/mgblast/ChangeLog b/sci-biology/mgblast/ChangeLog
17 new file mode 100644
18 index 0000000..5b62270
19 --- /dev/null
20 +++ b/sci-biology/mgblast/ChangeLog
21 @@ -0,0 +1,11 @@
22 +# ChangeLog for sci-biology/mgblast
23 +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
24 +# $Header: $
25 +
26 +*mgblast-0.1 (24 Mar 2014)
27 +
28 + 24 Mar 2014; Martin Mokrejs <mmokrejs@×××××××××××××××.cz>
29 + +mgblast-0.1.ebuild, +metadata.xml:
30 + initial ebuild but while it needs an old version of ncbi-tools source tree to
31 + build ... it is not tested yet
32 +
33
34 diff --git a/sci-biology/mgblast/metadata.xml b/sci-biology/mgblast/metadata.xml
35 new file mode 100644
36 index 0000000..07b5255
37 --- /dev/null
38 +++ b/sci-biology/mgblast/metadata.xml
39 @@ -0,0 +1,9 @@
40 +<?xml version="1.0" encoding="UTF-8"?>
41 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
42 +<pkgmetadata>
43 + <herd>sci-biology</herd>
44 + <maintainer>
45 + <email>mmokrejs@×××××××××××××××.cz</email>
46 + <name>Martin Mokrejs</name>
47 + </maintainer>
48 +</pkgmetadata>
49
50 diff --git a/sci-biology/mgblast/mgblast-0.1.ebuild b/sci-biology/mgblast/mgblast-0.1.ebuild
51 new file mode 100644
52 index 0000000..8b7011a
53 --- /dev/null
54 +++ b/sci-biology/mgblast/mgblast-0.1.ebuild
55 @@ -0,0 +1,46 @@
56 +# Copyright 1999-2014 Gentoo Foundation
57 +# Distributed under the terms of the GNU General Public License v2
58 +# $Header: $
59 +
60 +EAPI=3
61 +
62 +DESCRIPTION="Customized version of megablast from TIGR Gene Indices project used by tgicl and gicl utilities"
63 +HOMEPAGE="http://compbio.dfci.harvard.edu/tgi/software/"
64 +SRC_URI="ftp://occams.dfci.harvard.edu/pub/bio/tgi/software/tgicl/mgblast.tar.gz"
65 +
66 +LICENSE="Artistic"
67 +SLOT="0"
68 +KEYWORDS="" # upstream binary is provided by sci-biology/tgicl currently
69 +#KEYWORDS="~amd64 ~x86"
70 +IUSE=""
71 +
72 +DEPEND="sci-biology/ncbi-tools"
73 +RDEPEND="${DEPEND}"
74 +
75 +S=${WORKDIR}
76 +
77 +# mgblast needs old version of ncbi-tools unpacked and compiled during its own compilation
78 +# from newer tools you need to include blfmtutl.h but the next error is no go for me:
79 +# mgblast.c:2205: error: too few arguments to function ‘BXMLBuildOneQueryIteration’
80 +
81 +# Quoting from mgblast/README: the present package was built and tested only with the release 20060507
82 +
83 +src_prepare(){
84 + # mgblast cannot be compiled against newer ncbi-tools but let's try
85 + mv mgblast/makefile mgblast/Makefile 2>/dev/null || true
86 + sed -i 's#/usr/local/projects/tgi/ncbitoolkit/ncbi#/usr#' mgblast/Makefile
87 + sed -i 's#NCBIDIR = /mylocal/src/ncbi#NCBIDIR = /usr#' mgblast/Makefile
88 + sed -i 's#NCBI_INCDIR = .*#NCBI_INCDIR = /usr/include/ncbi#' mgblast/Makefile
89 + sed -i 's#NCBI_LIBDIR = .*#NCBI_LIBDIR = /usr/lib#' mgblast/Makefile # a PATH to NCBI-TOOLKIT (/usr/lib) while NOT /usr/lib/ncbi-tools++ !
90 + sed -i "s#-I-#-iquote#" mgblast/Makefile
91 +}
92 +
93 +src_compile(){
94 + cd ${S}/mgblast || die
95 + emake || die "mgblast really needs an older ncbi-toolkit version so we are out of luck, install the binary provided by upstream instead from mgblast-bin package"
96 +}
97 +
98 +src_install(){
99 + cd ${S}/mgblast || die
100 + dobin mgblast || die
101 +}