summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-biology')
-rw-r--r--sci-biology/consed/ChangeLog10
-rw-r--r--sci-biology/consed/consed-19-r1.ebuild5
-rw-r--r--sci-biology/consed/consed-19-r2.ebuild71
3 files changed, 81 insertions, 5 deletions
diff --git a/sci-biology/consed/ChangeLog b/sci-biology/consed/ChangeLog
index 26f4f2b2ad8a..89c1839cd206 100644
--- a/sci-biology/consed/ChangeLog
+++ b/sci-biology/consed/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sci-biology/consed
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/consed/ChangeLog,v 1.2 2009/03/15 16:58:21 weaver Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/consed/ChangeLog,v 1.3 2010/05/22 08:53:37 jlec Exp $
+
+*consed-19-r2 (22 May 2010)
+
+ 22 May 2010; Justin Lecher <jlec@gentoo.org> consed-19-r1.ebuild,
+ +consed-19-r2.ebuild:
+ removed PHRED_PARAMETER_FILE env, #253451, some QA
*consed-19-r1 (15 Mar 2009)
diff --git a/sci-biology/consed/consed-19-r1.ebuild b/sci-biology/consed/consed-19-r1.ebuild
index 168e97a9fe72..cb85bd73368d 100644
--- a/sci-biology/consed/consed-19-r1.ebuild
+++ b/sci-biology/consed/consed-19-r1.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/consed/consed-19-r1.ebuild,v 1.1 2009/03/15 16:58:21 weaver Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/consed/consed-19-r1.ebuild,v 1.2 2010/05/22 08:53:37 jlec Exp $
inherit toolchain-funcs
@@ -59,7 +59,6 @@ src_install() {
align454reads align454reads_answer solexa_example \
solexa_example_answer selectRegions selectRegionsAnswer || die
echo 'CONSED_HOME=/usr' > "${S}/99consed"
- echo 'PHRED_PARAMETER_FILE=/usr/share/phred/phredpar.dat' >> "${S}/99consed"
doenvd "${S}/99consed" || die
dodoc README.txt *_announcement.txt
}
diff --git a/sci-biology/consed/consed-19-r2.ebuild b/sci-biology/consed/consed-19-r2.ebuild
new file mode 100644
index 000000000000..32b281e0cf99
--- /dev/null
+++ b/sci-biology/consed/consed-19-r2.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/consed/consed-19-r2.ebuild,v 1.1 2010/05/22 08:53:37 jlec Exp $
+
+EAPI=3
+
+inherit toolchain-funcs
+
+DESCRIPTION="A genome sequence finishing program"
+HOMEPAGE="http://bozeman.mbt.washington.edu/consed/consed.html"
+SRC_URI="${P}-sources.tar.gz
+ ${P}-linux.tar.gz"
+
+LICENSE="phrap"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="x11-libs/openmotif"
+RDEPEND="${DEPEND}
+ >=sci-biology/phred-000925
+ >=sci-biology/phrap-1.080721"
+
+S="${WORKDIR}"
+
+RESTRICT="fetch"
+
+pkg_nofetch() {
+ einfo "Please visit ${HOMEPAGE} and obtain the file"
+ einfo "\"sources.tar.gz\", then rename it to \"${P}-sources.tar.gz\""
+ einfo "and place it in ${DISTDIR},"
+ einfo "obtain the file"
+ einfo "\"consed_linux.tar.gz\", then rename it to \"${P}-linux.tar.gz\""
+ einfo "and place it in ${DISTDIR}"
+}
+
+src_prepare() {
+ sed -i '/#include/ s/<new.h>/<new>/' "${S}/main.cpp" || die
+ sed -i \
+ -e '/CLIBS=/ s/$/ -lXm -lXt -lSM -lICE -lXext -lXmu -lXp -lm/' \
+ -e 's/ARCHIVES=/ARCHIVES=\n_ARCHIVES=/' \
+ -e 's/CFLGS=/CFLGS= ${CFLAGS} /' "${S}/makefile" || die
+ sed -i -e 's/CFLAGS=/CFLAGS += /' "${S}"/misc/*/Makefile || die
+ sed -i 's!\($szPhredParameterFile =\).*!\1 $ENV{PHRED_PARAMETER_FILE} || "${EPREFIX}/usr/share/phred/phredpar.dat";!' "${S}/scripts/"* || die
+}
+
+src_compile() {
+ emake || die
+ emake -C misc/mktrace || die
+ emake -C misc/phd2fasta || die
+ (cd misc/454; $(tc-getCC) ${CFLAGS} sff2scf.c -o sff2scf) || die
+}
+
+src_install() {
+ dobin consed misc/{mktrace/mktrace,phd2fasta/phd2fasta,454/sff2scf} || die
+ dobin scripts/* contributions/* || die
+ insinto /usr/lib/screenLibs
+ doins misc/*.{fa*,seq} || die
+ insinto /usr/share/${PN}/examples
+ doins -r standard polyphred autofinish assembly_view 454_newbler \
+ align454reads align454reads_answer solexa_example \
+ solexa_example_answer selectRegions selectRegionsAnswer || die
+ echo 'CONSED_HOME=${EPREFIX}/usr' > "${S}/99consed"
+ doenvd "${S}/99consed" || die
+ dodoc README.txt *_announcement.txt || die
+}
+
+pkg_postinst() {
+ einfo "Package documentation is available at"
+ einfo "http://www.phrap.org/consed/distributions/README.${PV}.0.txt"
+}