| 1 |
# Copyright 1999-2012 Gentoo Foundation |
| 2 |
# Distributed under the terms of the GNU General Public License v2 |
| 3 |
# $Header: /var/cvsroot/gentoo-x86/sci-biology/primer3/primer3-2.3.0.ebuild,v 1.3 2012/07/19 12:21:52 jlec Exp $ |
| 4 |
|
| 5 |
EAPI=4 |
| 6 |
|
| 7 |
inherit toolchain-funcs |
| 8 |
|
| 9 |
DESCRIPTION="Primer Design for PCR reactions" |
| 10 |
HOMEPAGE="http://primer3.sourceforge.net/" |
| 11 |
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
| 12 |
|
| 13 |
SLOT="0" |
| 14 |
LICENSE="GPL-2" |
| 15 |
IUSE="" |
| 16 |
KEYWORDS="~amd64 ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~sparc-solaris" |
| 17 |
|
| 18 |
DEPEND="dev-lang/perl" |
| 19 |
RDEPEND="" |
| 20 |
|
| 21 |
src_prepare() { |
| 22 |
if [[ ${CHOST} == *-darwin* ]]; then |
| 23 |
sed -e "s:LIBOPTS ='-static':LIBOPTS =:" -i Makefile || die |
| 24 |
fi |
| 25 |
perl -i -ne 's/\$\(CPP\)/'$(tc-getCXX)'/; print unless /^(CC|CPP|CFLAGS|LDFLAGS)\s*=/' src/Makefile || die |
| 26 |
sed \ |
| 27 |
-e '/oligotm/s:-o $@:$(LDFLAGS) -o $@:g' \ |
| 28 |
-e '/long_seq_tm_test/s:-o $@:$(LDFLAGS) -o $@:g' \ |
| 29 |
-e 's:CFLAGS:CXXFLAGS:g' \ |
| 30 |
-i src/Makefile || die |
| 31 |
} |
| 32 |
|
| 33 |
src_compile() { |
| 34 |
emake -C src |
| 35 |
} |
| 36 |
|
| 37 |
src_test () { |
| 38 |
emake -C test |
| 39 |
} |
| 40 |
|
| 41 |
src_install () { |
| 42 |
dobin src/{long_seq_tm_test,ntdpal,oligotm,primer3_core} |
| 43 |
dodoc src/release_notes.txt example |
| 44 |
insinto /opt/primer3_config |
| 45 |
doins -r src/primer3_config/* primer3*settings.txt |
| 46 |
dohtml primer3_manual.htm |
| 47 |
} |