From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 1129E1391DB for ; Mon, 24 Mar 2014 01:22:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A72ABE0B00; Mon, 24 Mar 2014 01:22:04 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1F036E0B00 for ; Mon, 24 Mar 2014 01:22:03 +0000 (UTC) Received: from spoonbill.gentoo.org (spoonbill.gentoo.org [81.93.255.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CBCAC33F900 for ; Mon, 24 Mar 2014 01:22:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by spoonbill.gentoo.org (Postfix) with ESMTP id 85A84188EF for ; Mon, 24 Mar 2014 01:22:01 +0000 (UTC) From: "Martin Mokrejs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Martin Mokrejs" Message-ID: <1395624053.27b9edadf33754b1305771c3b657ed21c05b1267.mmokrejs@gentoo> Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/pileup/ X-VCS-Repository: proj/sci X-VCS-Files: sci-biology/pileup/ChangeLog sci-biology/pileup/metadata.xml sci-biology/pileup/pileup-0.6.ebuild X-VCS-Directories: sci-biology/pileup/ X-VCS-Committer: mmokrejs X-VCS-Committer-Name: Martin Mokrejs X-VCS-Revision: 27b9edadf33754b1305771c3b657ed21c05b1267 X-VCS-Branch: master Date: Mon, 24 Mar 2014 01:22:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: dad71556-1f51-4fc2-a4e2-6a483f317a10 X-Archives-Hash: 8df5715f85fee9285e2dd1d0e25e0791 commit: 27b9edadf33754b1305771c3b657ed21c05b1267 Author: Martin Mokrejš fold natur cuni cz> AuthorDate: Mon Mar 24 01:20:53 2014 +0000 Commit: Martin Mokrejs fold natur cuni cz> CommitDate: Mon Mar 24 01:20:53 2014 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=27b9edad sci-biology/pileup: new package; a pileup pipeline used along SSAHA2 --- sci-biology/pileup/ChangeLog | 10 ++++++ sci-biology/pileup/metadata.xml | 9 +++++ sci-biology/pileup/pileup-0.6.ebuild | 66 ++++++++++++++++++++++++++++++++++++ 3 files changed, 85 insertions(+) diff --git a/sci-biology/pileup/ChangeLog b/sci-biology/pileup/ChangeLog new file mode 100644 index 0000000..ea30368 --- /dev/null +++ b/sci-biology/pileup/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for sci-biology/pileup +# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*pileup-0.6 (24 Mar 2014) + + 24 Mar 2014; Martin Mokrejs +pileup-0.6.ebuild, + +metadata.xml: + new package; a pileup pipeline used along SSAHA2 + diff --git a/sci-biology/pileup/metadata.xml b/sci-biology/pileup/metadata.xml new file mode 100644 index 0000000..07b5255 --- /dev/null +++ b/sci-biology/pileup/metadata.xml @@ -0,0 +1,9 @@ + + + + sci-biology + + mmokrejs@fold.natur.cuni.cz + Martin Mokrejs + + diff --git a/sci-biology/pileup/pileup-0.6.ebuild b/sci-biology/pileup/pileup-0.6.ebuild new file mode 100644 index 0000000..e78d5de --- /dev/null +++ b/sci-biology/pileup/pileup-0.6.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI=3 + +DESCRIPTION="Pipeline to align reads into the format also understood by samtools, maq, pipeline maybe using ssaha2?" +HOMEPAGE="http://www.sanger.ac.uk/resources/software/ssaha2/" +SRC_URI="ftp://ftp.sanger.ac.uk/pub4/resources/software/ssaha2/pileup.tgz" + +# http://samtools.sourceforge.net/pileup.shtml +# +LICENSE="" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND}" + +S="${WORKDIR}"/pileup_v"${PV}" + +src_prepare(){ + sed -i "s/^CC= gcc/#CC= gcc/" ssaha_pileup/ssaha_pileup/makefile || die "sed failed to fix makefile" + sed -i "s/^CFLAGS= -O2/#CFLAGS= -O2/" ssaha_pileup/ssaha_pileup/makefile || die "sed failed to fix makefile" + + for d in get_seqreads ssaha_split; do + sed -i "s/^CC = cc/#CC = cc/" ssaha_pileup/other_codes/$d/Makefile || die "sed failed to fix Makefile" + sed -i "s/^CFLAGS = -O4/#CFLAGS = -O4/" ssaha_pileup/other_codes/$d/Makefile || die "sed failed to fix Makefile" + done + + for d in search_read ssaha_parseSNP; do + sed -i "s/^CC = gcc/#CC = gcc/" ssaha_pileup/other_codes/$d/Makefile || die "sed failed to fix Makefile" + sed -i "s/^CFLAGS = -Wall -O4/#CFLAGS = -Wall -O4/" ssaha_pileup/other_codes/$d/Makefile || die "sed failed to fix Makefile" + done +} + +src_compile(){ + cd ssaha_pileup/ssaha_pileup || die "Cannot cd to "${S}"ssaha_pileup/ssaha_pileup" + emake || die "emake failed" + + for d in get_seqreads ssaha_split ssaha_parseSNP search_read; do + cd "${S}"/ssaha_pileup/other_codes/$d || die "Cannot cd to "${S}"ssaha_pileup/other_codes/"$d + make clean + emake || die "emake failed" + done +} + +src_install(){ + cd ssaha_pileup/ssaha_pileup || die "Cannot cd to "${S}"ssaha_pileup/ssaha_pileup" + dobin ssaha_pileup ssaha_solexa ssaha_pairs ssaha_clean ssaha_mates ssaha_cigar ssaha_indel view_pileup ssaha_reads ssaha_merge ssaha_check-cigar || die "dobin failed" + + cd "${S}" || die + for f in ssaha_pileup/other_codes/get_seqreads/get_seqreads \ + ssaha_pileup/other_codes/ssaha_split/ssaha_split \ + ssaha_pileup/other_codes/ssaha_parseSNP/ssaha_parseSNP \ + ssaha_pileup/other_codes/search_read/search_read; do + dobin $f || die "dobin failed" + done + + # TODO: + # pileup_v0.6/ssaha_pileup/tag.pl + + # Finally, a tcsh shell script has to be created with full paths to ssaha2 binaries + # convert the awk line from install.csh to a proper shellscript based on pileup.csh_src +}