summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-04-03 22:26:28 +0000
committerJustin Lecher <jlec@gentoo.org>2010-04-03 22:26:28 +0000
commit65f2cd6a6d930008b4566dbc86ea2a0cc2a4caea (patch)
tree1e01181ef46f6c15307d3eb2e4785cab30ac7ea9 /sci-biology/glimmer/glimmer-3.02-r2.ebuild
parentjobserver fix, #304117 (diff)
downloadgentoo-2-65f2cd6a6d930008b4566dbc86ea2a0cc2a4caea.tar.gz
gentoo-2-65f2cd6a6d930008b4566dbc86ea2a0cc2a4caea.tar.bz2
gentoo-2-65f2cd6a6d930008b4566dbc86ea2a0cc2a4caea.zip
jobserver fix, #299482, Thanks Myckel Habets
LDFLAGS/CFLAGS etc repected (Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'sci-biology/glimmer/glimmer-3.02-r2.ebuild')
-rw-r--r--sci-biology/glimmer/glimmer-3.02-r2.ebuild51
1 files changed, 51 insertions, 0 deletions
diff --git a/sci-biology/glimmer/glimmer-3.02-r2.ebuild b/sci-biology/glimmer/glimmer-3.02-r2.ebuild
new file mode 100644
index 000000000000..36f088001e06
--- /dev/null
+++ b/sci-biology/glimmer/glimmer-3.02-r2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/glimmer/glimmer-3.02-r2.ebuild,v 1.1 2010/04/03 22:26:28 jlec Exp $
+
+EAPI="2"
+
+inherit eutils
+
+MY_PV=${PV//./}
+
+DESCRIPTION="An HMM-based microbial gene finding system from TIGR"
+HOMEPAGE="http://www.cbcb.umd.edu/software/glimmer/"
+SRC_URI="http://www.cbcb.umd.edu/software/${PN}/${PN}${MY_PV}.tar.gz"
+
+LICENSE="Artistic"
+SLOT="0"
+IUSE=""
+KEYWORDS="~amd64 ~x86"
+
+DEPEND=""
+RDEPEND="app-shells/tcsh
+ !app-crypt/pkcrack
+ !media-libs/libextractor"
+
+S="${WORKDIR}/${PN}${PV}"
+
+src_prepare() {
+ sed -i -e 's|\(set awkpath =\).*|\1 /usr/share/'${PN}'/scripts|' \
+ -e 's|\(set glimmerpath =\).*|\1 /usr/bin|' scripts/* || die "failed to rewrite paths"
+ # Fix Makefile to die on failure
+ sed -i 's/$(MAKE) $(TGT)/$(MAKE) $(TGT) || exit 1/' src/c_make.gen || die
+ # GCC 4.3 include fix
+ sed -i 's/include <string>/include <string.h>/' src/Common/delcher.hh || die
+ epatch "${FILESDIR}/${P}-glibc210.patch"
+ epatch "${FILESDIR}/${P}-jobserver-fix.patch"
+ epatch "${FILESDIR}/${P}-ldflags.patch"
+}
+
+src_compile() {
+ emake -C src || die
+}
+
+src_install() {
+ rm bin/test
+ dobin bin/* || die
+
+ insinto /usr/share/${PN}/scripts
+ doins scripts/* || die
+
+ dodoc glim302notes.pdf
+}