summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-08-30 07:32:21 +0000
committerJustin Lecher <jlec@gentoo.org>2012-08-30 07:32:21 +0000
commitb1770575967d819c52ac0ee9002a10fcf34c1c83 (patch)
tree4a9db2c7dc96b31f3c8d639340d3d66880407321 /sci-biology
parentBump to 2.4.3. (diff)
downloadgentoo-2-b1770575967d819c52ac0ee9002a10fcf34c1c83.tar.gz
gentoo-2-b1770575967d819c52ac0ee9002a10fcf34c1c83.tar.bz2
gentoo-2-b1770575967d819c52ac0ee9002a10fcf34c1c83.zip
sci-biology/allpaths: Fix for gcc-4.7
(Portage version: 2.2.0_alpha123/cvs/Linux x86_64)
Diffstat (limited to 'sci-biology')
-rw-r--r--sci-biology/allpaths/ChangeLog8
-rw-r--r--sci-biology/allpaths/allpaths-3.1.ebuild32
-rw-r--r--sci-biology/allpaths/files/allpaths-3.1-gcc4.7.patch114
3 files changed, 137 insertions, 17 deletions
diff --git a/sci-biology/allpaths/ChangeLog b/sci-biology/allpaths/ChangeLog
index 521be3cf8b2a..57be0ddeb00c 100644
--- a/sci-biology/allpaths/ChangeLog
+++ b/sci-biology/allpaths/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for sci-biology/allpaths
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/allpaths/ChangeLog,v 1.6 2010/01/26 20:43:21 weaver Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/allpaths/ChangeLog,v 1.7 2012/08/30 07:32:21 jlec Exp $
+
+ 30 Aug 2012; Justin Lecher <jlec@gentoo.org> allpaths-3.1.ebuild,
+ +files/allpaths-3.1-gcc4.7.patch:
+ Fix for gcc-4.7
*allpaths-3.1 (26 Jan 2010)
diff --git a/sci-biology/allpaths/allpaths-3.1.ebuild b/sci-biology/allpaths/allpaths-3.1.ebuild
index 31ac65d432a1..7b271ade0f05 100644
--- a/sci-biology/allpaths/allpaths-3.1.ebuild
+++ b/sci-biology/allpaths/allpaths-3.1.ebuild
@@ -1,37 +1,39 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/allpaths/allpaths-3.1.ebuild,v 1.1 2010/01/26 20:43:21 weaver Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/allpaths/allpaths-3.1.ebuild,v 1.2 2012/08/30 07:32:21 jlec Exp $
-EAPI="2"
+EAPI=4
inherit base
DESCRIPTION="De novo assembly of whole-genome shotgun microreads"
HOMEPAGE="http://www.broadinstitute.org/science/programs/genome-biology/crd"
-SRC_URI="ftp://ftp.broad.mit.edu/pub/crd/ALLPATHS/Release-3-0/allpaths-${PV}.tgz
+SRC_URI="
+ ftp://ftp.broad.mit.edu/pub/crd/ALLPATHS/Release-3-0/allpaths-${PV}.tgz
ftp://ftp.broad.mit.edu/pub/crd/ALLPATHS/Release-3-0/AllPathsV3_Manual_r1.0.docx"
LICENSE="Whitehead-MIT"
SLOT="3"
IUSE=""
-KEYWORDS="~amd64"
-
-DEPEND=">=sys-devel/gcc-4.3.2"
-RDEPEND=""
+KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/AllPaths"
+PATCHES=( "${FILESDIR}"/${P}-gcc4.7.patch )
+
src_compile() {
base_src_compile
- emake install_scripts || die
+ emake install_scripts
}
src_install() {
- exeinto /usr/share/${P}/bin
+ exeinto /usr/libexec/${P}/
find bin -type f -executable | xargs doexe || die
- echo "PATH=\"/usr/share/${P}/bin\"" > "${S}/99${P}"
- doenvd "${S}/99${P}" || die
- dosym /usr/share/${P}/bin/RunAllPaths3G /usr/bin/RunAllPaths3G || die
- insinto /usr/share/doc/${PF}
- doins "${DISTDIR}/AllPathsV3_Manual_r1.0.docx"
+
+ echo "PATH=\"/usr/libexec/${P}/\"" > "${S}/50${P}"
+ doenvd "${S}/50${P}" || die
+
+ dosym /usr/libexec/${P}/RunAllPaths3G /usr/bin/RunAllPaths3G
+
+ dodoc "${DISTDIR}/AllPathsV3_Manual_r1.0.docx"
}
diff --git a/sci-biology/allpaths/files/allpaths-3.1-gcc4.7.patch b/sci-biology/allpaths/files/allpaths-3.1-gcc4.7.patch
new file mode 100644
index 000000000000..08383f4ff4bc
--- /dev/null
+++ b/sci-biology/allpaths/files/allpaths-3.1-gcc4.7.patch
@@ -0,0 +1,114 @@
+ MakeDepend.cc | 1 +
+ Vec.h | 4 ++--
+ feudal/FeudalControlBlock.cc | 1 +
+ feudal/FeudalFileReader.h | 1 +
+ feudal/MasterVec.h | 6 +++---
+ feudal/SerfVec.h | 4 ++--
+ 6 files changed, 10 insertions(+), 7 deletions(-)
+
+diff --git a/MakeDepend.cc b/MakeDepend.cc
+index 93032e8..619e6f7 100644
+--- a/MakeDepend.cc
++++ b/MakeDepend.cc
+@@ -25,6 +25,7 @@
+ #include <iterator>
+ #include <iostream>
+ #include <ctype.h>
++#include <unistd.h>
+
+ using namespace std;
+
+diff --git a/Vec.h b/Vec.h
+index f26f3f4..57eeff9 100644
+--- a/Vec.h
++++ b/Vec.h
+@@ -259,7 +259,7 @@ template <class T> class vec : public vector<T> {
+
+ template <class U>
+ void append( const vec<U>& y )
+- { insert( this->end( ), y.begin( ), y.end( ) ); }
++ { this->insert( this->end( ), y.begin( ), y.end( ) ); }
+
+ void append( const vec<T>& y, size_type i, size_type j ) {
+ if ( j == y.size( ) ) insert( this->end( ), y.begin( ) + i, y.end( ) );
+@@ -402,7 +402,7 @@ template <class T> class vec : public vector<T> {
+
+ /// EraseValue: erase all entries having the given value.
+ void EraseValue( const T& x ) {
+- erase(remove(this->begin(), this->end(), x), this->end());
++ this->erase(remove(this->begin(), this->end(), x), this->end());
+ }
+
+ /// print values to ostream, separated by sep.
+diff --git a/feudal/FeudalControlBlock.cc b/feudal/FeudalControlBlock.cc
+index bc64ecd..a709320 100644
+--- a/feudal/FeudalControlBlock.cc
++++ b/feudal/FeudalControlBlock.cc
+@@ -24,6 +24,7 @@
+ #include <string.h>
+ #include <errno.h>
+ #include <iostream>
++#include <unistd.h>
+
+ using std::cout;
+ using std::endl;
+diff --git a/feudal/FeudalFileReader.h b/feudal/FeudalFileReader.h
+index b71bf6d..073a1a1 100644
+--- a/feudal/FeudalFileReader.h
++++ b/feudal/FeudalFileReader.h
+@@ -13,6 +13,7 @@
+ #include <string>
+ #include <cassert>
+ #include <sstream>
++#include <unistd.h>
+ #include "feudal/BinaryStream.h"
+
+ /**
+diff --git a/feudal/MasterVec.h b/feudal/MasterVec.h
+index e6477d9..45a8640 100644
+--- a/feudal/MasterVec.h
++++ b/feudal/MasterVec.h
+@@ -60,7 +60,7 @@ public:
+ /// This function is deprecated: Use reserve() instead.
+ /// The pool size argument is ignored, anyway.
+ MasterVec& Reserve( unsigned long raw_mem_size_ignored, size_type capacity )
+- { reserve(capacity); return *this; }
++ { this->reserve(capacity); return *this; }
+
+ /// This function is deprecated: Use clear().shrink_to_fit().
+ MasterVec& destroy() { BaseT::clear(); BaseT::shrink_to_fit(); return *this; }
+@@ -73,7 +73,7 @@ public:
+ MasterVec& push_back_reserve( T const& val,
+ size_type growthIncr = 0,
+ float growthFact = 1.3f )
+- { push_back(val,growthFact,growthIncr); return *this; }
++ { this->push_back(val,growthFact,growthIncr); return *this; }
+
+ /// This function is deprecated: Use append().
+ MasterVec& Append( MasterVec const& that )
+@@ -99,7 +99,7 @@ public:
+ { if ( !append ) BaseT::clear();
+ FeudalFileReader rdr(fileName.c_str(),T::fixedDataLen());
+ size_type siz = rdr.getNElements();
+- reserve(BaseT::size()+siz);
++ this->reserve(BaseT::size()+siz);
+ for ( size_type iii = 0; iii < siz; ++iii )
+ appendFromReader(rdr,iii);
+ return *this; }
+diff --git a/feudal/SerfVec.h b/feudal/SerfVec.h
+index e91847c..d5f053d 100644
+--- a/feudal/SerfVec.h
++++ b/feudal/SerfVec.h
+@@ -79,10 +79,10 @@ public:
+ /// Deprecated: Use assign().
+ SerfVec& SetToSubOf( SerfVec const& that, size_type pos, size_type len )
+ { if ( this != &that )
+- { assign(that.begin(pos),that.begin(pos+len)); }
++ { this->assign(that.begin(pos),that.begin(pos+len)); }
+ else
+ { assert(that.size()>=pos+len);
+- erase(BaseT::begin(),BaseT::begin(pos));
++ this->erase(BaseT::begin(),BaseT::begin(pos));
+ BaseT::resize(len); }
+ return *this; }
+