You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.0 KiB

# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/clustalw/clustalw-1.83-r2.ebuild,v 1.4 2009/08/18 17:24:32 weaver Exp $
inherit toolchain-funcs
DESCRIPTION="General purpose multiple alignment program for DNA and proteins"
HOMEPAGE="http://www.embl-heidelberg.de/~seqanal/"
SRC_URI="ftp://ftp.ebi.ac.uk/pub/software/unix/clustalw/${PN}${PV}.UNIX.tar.gz"
LICENSE="clustalw"
SLOT="1"
KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
IUSE=""
S="${WORKDIR}"/${PN}${PV}
src_unpack() {
unpack ${A}
cd "${S}"
sed -i -e "s/CC = cc/CC = $(tc-getCC)/" \
-e "s/CFLAGS = -c -O/CFLAGS = -c ${CFLAGS}/" \
-e "s/LFLAGS = -O -lm/LFLAGS = -lm ${CFLAGS}/" makefile || die
sed -i -e "s%clustalw_help%/usr/share/doc/${PF}/clustalw_help%" clustalw.c || die
}
src_compile() {
emake || die
}
src_install() {
dobin clustalw || die
dodoc README clustalv.doc clustalw.doc clustalw.ms
insinto /usr/share/doc/${PF}
doins clustalw_help
}