# $Id: Portfile 67700 2010-05-16 10:21:12Z ryandesign@macports.org $

PortSystem          1.0
name                perlprimer
version             1.1.19
categories          science perl
maintainers         nomaintainer
description         Perl-based primer designer
long_description \
   PerlPrimer is a free, open-source GUI application written in Perl that \
   designs primers for standard PCR, bisulphite PCR, real-time PCR (QPCR) \
   and sequencing. It aims to automate and simplify the process of primer \
   design.

platforms           darwin

homepage            http://perlprimer.sourceforge.net/
master_sites        sourceforge
use_bzip2           yes

depends_lib         port:p5-tk port:p5-libwww-perl

checksums           md5     3a6ac09f03886411b89df7acc4198870 \
                    sha1    8ae28291eb5c9b1b1f89327ac1cdf950636516cf \
                    rmd160  d872273728023cd4d46d39c995a8a1cc1e7a099e

use_configure       no
if {[info exists supported_archs]} {
    supported_archs noarch
}

build               {}

destroot {
   xinstall -m 755 -W ${worksrcpath} perlprimer.pl ${destroot}${prefix}/bin
   ln -s perlprimer.pl ${destroot}${prefix}/bin/perlprimer
   reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|g" \
      ${destroot}${prefix}/bin/perlprimer.pl
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   xinstall -m 644 -W ${worksrcpath} Changelog ReadMe ReadMe.txt gcg.603 \
      todo tutorial.html ${destroot}${prefix}/share/doc/${name}
}

