Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
Package-Manager: portage-2.2.8-r1
  • Loading branch information
junghans committed Sep 16, 2014
1 parent cbad1a4 commit aada253
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion sci-biology/mgblast/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
# $Header: $

16 Sep 2014; Christoph Junghans <ottxor@gentoo.org> mgblast-0.1.ebuild:
clean up

*mgblast-0.1 (24 Mar 2014)

24 Mar 2014; Martin Mokrejs <mmokrejs@fold.natur.cuni.cz>
+mgblast-0.1.ebuild, +metadata.xml:
initial ebuild but while it needs an old version of ncbi-tools source tree to
build ... it is not tested yet

20 changes: 10 additions & 10 deletions sci-biology/mgblast/mgblast-0.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3
EAPI=5

DESCRIPTION="Customized version of megablast from TIGR Gene Indices project used by tgicl and gicl utilities"
HOMEPAGE="http://compbio.dfci.harvard.edu/tgi/software/"
Expand All @@ -17,7 +17,7 @@ IUSE=""
DEPEND="sci-biology/ncbi-tools"
RDEPEND="${DEPEND}"

S=${WORKDIR}
S="${WORKDIR}"

# mgblast needs old version of ncbi-tools unpacked and compiled during its own compilation
# from newer tools you need to include blfmtutl.h but the next error is no go for me:
Expand All @@ -28,19 +28,19 @@ S=${WORKDIR}
src_prepare(){
# mgblast cannot be compiled against newer ncbi-tools but let's try
mv mgblast/makefile mgblast/Makefile 2>/dev/null || true
sed -i 's#/usr/local/projects/tgi/ncbitoolkit/ncbi#/usr#' mgblast/Makefile
sed -i 's#NCBIDIR = /mylocal/src/ncbi#NCBIDIR = /usr#' mgblast/Makefile
sed -i 's#NCBI_INCDIR = .*#NCBI_INCDIR = /usr/include/ncbi#' mgblast/Makefile
sed -i 's#NCBI_LIBDIR = .*#NCBI_LIBDIR = /usr/lib#' mgblast/Makefile # a PATH to NCBI-TOOLKIT (/usr/lib) while NOT /usr/lib/ncbi-tools++ !
sed -i "s#-I-#-iquote#" mgblast/Makefile
sed -i 's#/usr/local/projects/tgi/ncbitoolkit/ncbi#/usr#' mgblast/Makefile || die
sed -i 's#NCBIDIR = /mylocal/src/ncbi#NCBIDIR = /usr#' mgblast/Makefile || die
sed -i 's#NCBI_INCDIR = .*#NCBI_INCDIR = /usr/include/ncbi#' mgblast/Makefile || die
sed -i 's#NCBI_LIBDIR = .*#NCBI_LIBDIR = /usr/lib#' mgblast/Makefile || die # a PATH to NCBI-TOOLKIT (/usr/lib) while NOT /usr/lib/ncbi-tools++ !
sed -i "s#-I-#-iquote#" mgblast/Makefile || die
}

src_compile(){
cd ${S}/mgblast || die
cd "${S}"/mgblast || die
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"
}

src_install(){
cd ${S}/mgblast || die
dobin mgblast || die
cd "${S}"/mgblast || die
dobin mgblast
}

0 comments on commit aada253

Please sign in to comment.