summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2010-02-06 20:00:26 +0000
committerJustin Lecher <jlec@gentoo.org>2010-02-06 20:00:26 +0000
commitfe5d632c39746b7b396434277896dd0e58e15567 (patch)
treed6a5a66cb71d568e17d5e66da022b8fb21a19764 /sci-biology/fasta
parentdarn. whitespace. (diff)
downloadgentoo-2-fe5d632c39746b7b396434277896dd0e58e15567.tar.gz
gentoo-2-fe5d632c39746b7b396434277896dd0e58e15567.tar.bz2
gentoo-2-fe5d632c39746b7b396434277896dd0e58e15567.zip
Initial import, thanks to Jose Maria Fernandez Gonzalez
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'sci-biology/fasta')
-rw-r--r--sci-biology/fasta/ChangeLog9
-rw-r--r--sci-biology/fasta/fasta-35.4.10.ebuild60
-rw-r--r--sci-biology/fasta/files/35.4.10-ldflags.patch26
-rw-r--r--sci-biology/fasta/metadata.xml15
4 files changed, 110 insertions, 0 deletions
diff --git a/sci-biology/fasta/ChangeLog b/sci-biology/fasta/ChangeLog
new file mode 100644
index 000000000000..d4a9b4db6903
--- /dev/null
+++ b/sci-biology/fasta/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for sci-biology/fasta
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/fasta/ChangeLog,v 1.1 2010/02/06 20:00:24 jlec Exp $
+
+*fasta-35.4.10 (06 Feb 2010)
+
+ 06 Feb 2010; Justin Lecher (jlec) <jlec@gentoo.org>
+ +files/35.4.10-ldflags.patch, +fasta-35.4.10.ebuild, +metadata.xml:
+ Initial import, thanks to Jose Maria Fernandez Gonzalez
diff --git a/sci-biology/fasta/fasta-35.4.10.ebuild b/sci-biology/fasta/fasta-35.4.10.ebuild
new file mode 100644
index 000000000000..697352dd93a6
--- /dev/null
+++ b/sci-biology/fasta/fasta-35.4.10.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/fasta/fasta-35.4.10.ebuild,v 1.1 2010/02/06 20:00:24 jlec Exp $
+
+EAPI="2"
+
+inherit eutils flag-o-matic toolchain-funcs
+
+DESCRIPTION="FASTA is a DNA and Protein sequence alignment software package"
+HOMEPAGE="http://fasta.bioch.virginia.edu/fasta_www2/fasta_down.shtml"
+SRC_URI="http://faculty.virginia.edu/wrpearson/${PN}/${PN}3/${P}.tar.gz"
+
+LICENSE="fasta"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="debug icc sse2"
+
+DEPEND="
+ icc? ( dev-lang/icc )
+ test? ( app-shells/tcsh )"
+RDEPEND=""
+
+src_prepare() {
+ CC_ALT=
+ CFLAGS_ALT=
+ ALT=
+
+ use debug && append-flags -DDEBUG
+
+ if use icc ; then
+ CC_ALT=icc
+ ALT="${ALT}_icc"
+ else
+ CC_ALT=$(tc-getCC)
+ use x86 && ALT="32"
+ use amd64 && ALT="64"
+ fi
+
+ if use sse2 ; then
+ ALT="${ALT}_sse2"
+ append-flags -msse2
+ use icc || append-flags -ffast-math
+ fi
+
+ export CC_ALT="${CC_ALT}"
+ export ALT="${ALT}"
+
+ epatch "${FILESDIR}"/${PV}-ldflags.patch
+}
+
+src_compile() {
+ cd src
+ emake -f ../make/Makefile.linux${ALT} CC="${CC_ALT} ${CFLAGS}" HFLAGS="${LDFLAGS} -o" all || die
+}
+
+src_install() {
+ dobin bin/* || die
+ doman doc/{prss3.1,fasta35.1,pvcomp.1,fasts3.1,fastf3.1,ps_lav.1,map_db.1} || die
+ dodoc FASTA_LIST README doc/{README.versions,readme*,fasta*,changes*} || die
+}
diff --git a/sci-biology/fasta/files/35.4.10-ldflags.patch b/sci-biology/fasta/files/35.4.10-ldflags.patch
new file mode 100644
index 000000000000..c3b7a9b56904
--- /dev/null
+++ b/sci-biology/fasta/files/35.4.10-ldflags.patch
@@ -0,0 +1,26 @@
+diff --git a/make/Makefile.pcom b/make/Makefile.pcom
+index a808667..405be95 100644
+--- a/make/Makefile.pcom
++++ b/make/Makefile.pcom
+@@ -274,16 +274,16 @@ print_pssm : print_pssm.c getseq.c karlin.c apam.c
+ $(CC) -o print_pssm $(CFLAGS) print_pssm.c getseq.c karlin.c apam.c $(LIB_M)
+
+ map_db : map_db.c uascii.h ncbl2_head.h
+- $(CC) $(CFLAGS) -o $(BIN)/map_db map_db.c
++ $(CC) $(CFLAGS) $(HFLAGS) $(BIN)/map_db map_db.c
+
+ list_db : list_db.c
+- $(CC) $(CFLAGS) -o $(BIN)/list_db list_db.c
++ $(CC) $(CFLAGS) $(HFLAGS) $(BIN)/list_db list_db.c
+
+ lav2ps : lav2plt.o lavplt_ps.o
+- $(CC) -DUNIX -o $(BIN)/lav2ps lav2plt.o lavplt_ps.o -lm
++ $(CC) -DUNIX $(HFLAGS) $(BIN)/lav2ps lav2plt.o lavplt_ps.o -lm
+
+ lav2svg : lav2plt.o lavplt_svg.o
+- $(CC) -DUNIX -o $(BIN)/lav2svg lav2plt.o lavplt_svg.o -lm
++ $(CC) -DUNIX $(HFLAGS) $(BIN)/lav2svg lav2plt.o lavplt_svg.o -lm
+
+ res_stats : res_stats.o scale_se.o
+- $(CC) -DUNIX -o $(BIN)/res_stats res_stats.o scale_se.o -lm
++ $(CC) -DUNIX $(HFLAGS) $(BIN)/res_stats res_stats.o scale_se.o -lm
diff --git a/sci-biology/fasta/metadata.xml b/sci-biology/fasta/metadata.xml
new file mode 100644
index 000000000000..7bf7a49aa862
--- /dev/null
+++ b/sci-biology/fasta/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-biology</herd>
+ <maintainer>
+ <email>je_fro@gentoo.org</email>
+ <name>Jeff Gardner</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+ <use>
+ <flag name='icc'>Use intel compiler instead of gcc</flag>
+ </use>
+</pkgmetadata>
+