# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="Phred: reads DNA sequencer trace data, calls bases, assigns quality values to the bases, and writes the base calls and quality values to output files. Daev evaluates data set quality by reading the phd files in a directory and writing a report to stdout." HOMEPAGE="http://www.phrap.org/" SRC_URI="phred-${PV}-distrib.tar.gz" LICENSE="phrap" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="" DEPEND="" RDEPEND="" S="${WORKDIR}" RESTRICT="fetch" pkg_nofetch() { einfo "Please visit http://www.phrap.org/phredphrapconsed.html and obtain the file" einfo '"distrib.tar.Z", then rename it to \"phred-${PV}-distrib.tar.gz\" and put it in' einfo "${DISTDIR}" } src_compile() { einfo "Please test whether -DX86_GCC_LINUX works also on amd64 platforms, probably yes" einfo "but how about other targets?" #FIXME: propagate $CFLAGS into the Makefile sed -i 's/#LXFLAGS= -DX86_GCC_LINUX/LXFLAGS= -DX86_GCC_LINUX/' Makefile make daev emake || die "emake failed" } src_install() { newenvd "${FILESDIR}"/phred 21phred|| die "Failed to install env file." insinto /usr/share/phred doins phredpar.dat dobin phred daev mv DAEV.DOC daev.txt mv PHRED.DOC phred.txt for i in {daev,phred}.txt ; do dodoc ${i} done }