summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kislyuk <weaver@gentoo.org>2009-07-21 08:12:46 +0000
committerAndrey Kislyuk <weaver@gentoo.org>2009-07-21 08:12:46 +0000
commit7223a950bd128288f0a2e3222af89d890e515498 (patch)
treead11282766b3bff1be0c619911c511f455b7ff03 /sci-biology/lagan
parentVersion bump. (diff)
downloadgentoo-2-7223a950bd128288f0a2e3222af89d890e515498.tar.gz
gentoo-2-7223a950bd128288f0a2e3222af89d890e515498.tar.bz2
gentoo-2-7223a950bd128288f0a2e3222af89d890e515498.zip
Fix compilation with glibc-2.10, bug 273988
(Portage version: 2.2_rc30/cvs/Linux x86_64)
Diffstat (limited to 'sci-biology/lagan')
-rw-r--r--sci-biology/lagan/ChangeLog8
-rw-r--r--sci-biology/lagan/lagan-2.0-r1.ebuild (renamed from sci-biology/lagan/lagan-2.0.ebuild)15
2 files changed, 16 insertions, 7 deletions
diff --git a/sci-biology/lagan/ChangeLog b/sci-biology/lagan/ChangeLog
index c48f7c0d4655..7222c8cba060 100644
--- a/sci-biology/lagan/ChangeLog
+++ b/sci-biology/lagan/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-biology/lagan
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/lagan/ChangeLog,v 1.1 2009/02/27 00:23:49 weaver Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/lagan/ChangeLog,v 1.2 2009/07/21 08:12:46 weaver Exp $
+
+*lagan-2.0-r1 (21 Jul 2009)
+
+ 21 Jul 2009; Andrey Kislyuk <weaver@gentoo.org> -lagan-2.0.ebuild,
+ +lagan-2.0-r1.ebuild:
+ Fix compilation with glibc-2.10, bug 273988
*lagan-2.0 (26 Feb 2009)
diff --git a/sci-biology/lagan/lagan-2.0.ebuild b/sci-biology/lagan/lagan-2.0-r1.ebuild
index 79049af85ace..9ce6c90116b8 100644
--- a/sci-biology/lagan/lagan-2.0.ebuild
+++ b/sci-biology/lagan/lagan-2.0-r1.ebuild
@@ -1,14 +1,16 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/lagan/lagan-2.0.ebuild,v 1.1 2009/02/27 00:23:49 weaver Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/lagan/lagan-2.0-r1.ebuild,v 1.1 2009/07/21 08:12:46 weaver Exp $
+
+EAPI="2"
inherit eutils
-MY_PV="20"
+MY_P="lagan20"
DESCRIPTION="LAGAN, Multi-LAGAN, Shuffle-LAGAN, Supermap: Whole-genome multiple alignment of genomic DNA"
HOMEPAGE="http://lagan.stanford.edu/lagan_web/index.shtml"
-SRC_URI="http://lagan.stanford.edu/lagan_web/lagan${MY_PV}.tar.gz"
+SRC_URI="http://lagan.stanford.edu/lagan_web/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
@@ -18,11 +20,12 @@ KEYWORDS="~amd64 ~x86"
DEPEND=""
RDEPEND=""
-S="${WORKDIR}/lagan${MY_PV}"
+S="${WORKDIR}/${MY_P}"
-src_unpack() {
- unpack ${A}
+src_prepare() {
sed -i "/use Getopt::Long;/ i use lib \"/usr/share/${PN}/lib\";" "${S}/supermap.pl" || die
+ # NB: Testing with glibc-2.10 has uncovered a bug in src/utils/Sequence.h where libc getline is erroneously used instead of own getline
+ sed -i 's/getline/my_getline/' "${S}"/src/{anchors.c,glocal/io.cpp} || die
epatch "${FILESDIR}"/${P}-*.patch
}