From b5eb9a6030e7b41d0699258d0c5bcf59a67d2936 Mon Sep 17 00:00:00 2001 From: Andrey Kislyuk Date: Sat, 7 Mar 2009 04:37:27 +0000 Subject: New package sci-biology/plink, bug 224017 (Portage version: 2.2_rc20/cvs/Linux 2.6.26-gentoo-r4 x86_64) --- sci-biology/plink/ChangeLog | 7 ++++ sci-biology/plink/files/plink-1.05-gcc43.patch | 49 ++++++++++++++++++++++++++ sci-biology/plink/metadata.xml | 14 ++++++++ sci-biology/plink/plink-1.05.ebuild | 36 +++++++++++++++++++ 4 files changed, 106 insertions(+) create mode 100644 sci-biology/plink/ChangeLog create mode 100644 sci-biology/plink/files/plink-1.05-gcc43.patch create mode 100644 sci-biology/plink/metadata.xml create mode 100644 sci-biology/plink/plink-1.05.ebuild (limited to 'sci-biology/plink') diff --git a/sci-biology/plink/ChangeLog b/sci-biology/plink/ChangeLog new file mode 100644 index 000000000000..308221f90b68 --- /dev/null +++ b/sci-biology/plink/ChangeLog @@ -0,0 +1,7 @@ +# ChangeLog for sci-biology/plink +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/plink/ChangeLog,v 1.1 2009/03/07 04:37:27 weaver Exp $ + + 06 Mar 2009; Andrey Kislyuk ChangeLog: + New package, ebuild written by Neil Shephard and me + diff --git a/sci-biology/plink/files/plink-1.05-gcc43.patch b/sci-biology/plink/files/plink-1.05-gcc43.patch new file mode 100644 index 000000000000..84f813cc88e4 --- /dev/null +++ b/sci-biology/plink/files/plink-1.05-gcc43.patch @@ -0,0 +1,49 @@ +diff -durr plink-1.05-src-orig/helper.cpp plink-1.05-src/helper.cpp +--- plink-1.05-src-orig/helper.cpp 2008-12-11 20:52:22.000000000 +0000 ++++ plink-1.05-src/helper.cpp 2009-03-06 23:22:06.199103558 +0000 +@@ -36,7 +36,7 @@ + + extern ofstream LOG; + extern Plink * PP; +- ++/* + template + bool from_string(T& t, + const std::string& s, +@@ -45,7 +45,7 @@ + std::istringstream iss(s); + return !(iss >> f >> t).fail(); + } +- ++*/ + vector nvec_bool() + { + vector t(0); +diff -durr plink-1.05-src-orig/helper.h plink-1.05-src/helper.h +--- plink-1.05-src-orig/helper.h 2008-12-11 20:52:24.000000000 +0000 ++++ plink-1.05-src/helper.h 2009-03-06 23:22:06.218353426 +0000 +@@ -18,6 +18,9 @@ + #include + #include + ++#include ++#include ++ + #include "plink.h" + + template +@@ -89,7 +92,13 @@ + template + bool from_string(T& t, + const std::string& s, +- std::ios_base& (*f)(std::ios_base&)); ++ std::ios_base& (*f)(std::ios_base&)) ++{ ++ std::istringstream iss(s); ++ return !(iss >> f >> t).fail(); ++ } ++ ++ + + void error(string); + void shutdown(); diff --git a/sci-biology/plink/metadata.xml b/sci-biology/plink/metadata.xml new file mode 100644 index 000000000000..68fb68e6ac6e --- /dev/null +++ b/sci-biology/plink/metadata.xml @@ -0,0 +1,14 @@ + + + + + weaver@gentoo.org + Andrey Kislyuk + + sci-biology + + + add support for online update checking every time the program starts + + + diff --git a/sci-biology/plink/plink-1.05.ebuild b/sci-biology/plink/plink-1.05.ebuild new file mode 100644 index 000000000000..17d8a31f5237 --- /dev/null +++ b/sci-biology/plink/plink-1.05.ebuild @@ -0,0 +1,36 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-biology/plink/plink-1.05.ebuild,v 1.1 2009/03/07 04:37:27 weaver Exp $ + +EAPI="1" + +inherit eutils + +DESCRIPTION="Whole genome association analysis toolset" +HOMEPAGE="http://pngu.mgh.harvard.edu/~purcell/plink/" +SRC_URI="http://pngu.mgh.harvard.edu/~purcell/plink/dist/${P}-src.zip" + +LICENSE="GPL-2" +SLOT="0" +IUSE="-webcheck" +KEYWORDS="~x86 ~amd64" + +DEPEND="app-arch/unzip" +RDEPEND="" + +S="${WORKDIR}/${P}-src" + +# Package collides with net-misc/putty. Renamed to snplink following Debian. +# Package contains bytecode-only jar gPLINK.jar. Ignored, notified upstream. + +src_unpack() { + unpack ${A} + epatch "${FILESDIR}"/${P}-*.patch + sed -i -e '/CXXFLAGS =/ s/^/#/' -e 's/-static//' "${S}/Makefile" || die + use webcheck || sed -i '/WITH_WEBCHECK =/ s/^/#/' "${S}/Makefile" || die +} + +src_install() { + newbin plink snplink || die + dodoc README.txt +} -- cgit v1.2.3-65-gdbad