# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 87099 2011-11-10 18:53:54Z snc@macports.org $

PortSystem          1.0

name                clustalx
version             2.1
categories          science
maintainers         snc openmaintainer
license             LGPL-3 GPL-3
description         An interface for the ClustalW multiple sequence alignment\
                    program.
long_description    ${name} provides an integrated environment for performing\
                    multiple sequence and profile alignments and analysing the\
                    results. The sequence alignment is displayed in a window on\
                    the screen. A versatile coloring scheme has been\
                    incorporated allowing you to highlight conserved features\
                    in the alignment. The pull-down menus at the top of the\
                    window allow you to select all the options required for\
                    traditional multiple sequence and profile alignment.
homepage            http://www.clustal.org/clustal2/

platforms           darwin
depends_build       port:qt4-mac

master_sites        http://www.clustal.org/download/current/ \
                    ftp://ftp.ebi.ac.uk/pub/software/clustalw2/${version}/

checksums           rmd160  bda9d9c6e5ab8dc5d0ff5cb304987eba692d7717 \
                    sha256  82e67ec0545d5c10d44ff5753db46e3eec40deb52e80362ee866a22477521537

configure.cmd       ${prefix}/bin/qmake
configure.pre_args  PREFIX=${prefix}

destroot {
    xinstall -d ${destroot}${applications_dir}/${name}.app/Contents/MacOS
    xinstall -d ${destroot}${applications_dir}/${name}.app/Contents/Resources
    eval xinstall -m 755 [glob ${worksrcpath}/${name}.app/Contents/MacOS/*] \
        ${destroot}${applications_dir}/${name}.app/Contents/MacOS/
    eval xinstall -m 755 [glob ${worksrcpath}/${name}.app/Contents/Resources/*] \
        ${destroot}${applications_dir}/${name}.app/Contents/Resources/
    xinstall -m 644 -W ${worksrcpath} \
        colprot.xml coldna.xml colprint.xml clustalx.hlp \
        ${destroot}${applications_dir}/${name}.app/Contents/MacOS/
}

universal_variant   no

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.regex     "currently (\\d+(\\.\\d+)+)"
