summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Kislyuk <weaver@gentoo.org>2009-03-07 04:37:27 +0000
committerAndrey Kislyuk <weaver@gentoo.org>2009-03-07 04:37:27 +0000
commitb5eb9a6030e7b41d0699258d0c5bcf59a67d2936 (patch)
treef7d5068dc94350f0586eb55a5a5c52c86b9a324c /sci-biology
parentamd64 stable, bug 259678 (diff)
downloadgentoo-2-b5eb9a6030e7b41d0699258d0c5bcf59a67d2936.tar.gz
gentoo-2-b5eb9a6030e7b41d0699258d0c5bcf59a67d2936.tar.bz2
gentoo-2-b5eb9a6030e7b41d0699258d0c5bcf59a67d2936.zip
New package sci-biology/plink, bug 224017
(Portage version: 2.2_rc20/cvs/Linux 2.6.26-gentoo-r4 x86_64)
Diffstat (limited to 'sci-biology')
-rw-r--r--sci-biology/plink/ChangeLog7
-rw-r--r--sci-biology/plink/files/plink-1.05-gcc43.patch49
-rw-r--r--sci-biology/plink/metadata.xml14
-rw-r--r--sci-biology/plink/plink-1.05.ebuild36
4 files changed, 106 insertions, 0 deletions
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 <weaver@gentoo.org> ChangeLog:
+ New package, ebuild written by Neil Shephard <nshephard@gmail.com> 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 <class T>
+ bool from_string(T& t,
+ const std::string& s,
+@@ -45,7 +45,7 @@
+ std::istringstream iss(s);
+ return !(iss >> f >> t).fail();
+ }
+-
++*/
+ vector<bool> nvec_bool()
+ {
+ vector<bool> 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 <vector>
+ #include <cstdio>
+
++#include <iostream>
++#include <sstream>
++
+ #include "plink.h"
+
+ template<class T>
+@@ -89,7 +92,13 @@
+ template <class T>
+ 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 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>weaver@gentoo.org</email>
+ <name>Andrey Kislyuk</name>
+ </maintainer>
+ <herd>sci-biology</herd>
+ <use>
+ <flag name='webcheck'>
+ add support for online update checking every time the program starts
+ </flag>
+ </use>
+</pkgmetadata>
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
+}