# $Id: Portfile 52502 2009-06-17 21:51:29Z and.damore@macports.org $

PortSystem          1.0

name                alliance
version             5.0
categories          science
maintainers         and.damore openmaintainer
description         Alliance, CAD and libraries for VLSI design
long_description    Alliance is a complete set of free CAD tools and portable libraries for \
                    VLSI design. It includes a VHDL compiler and simulator, logic synthesis \
                    tools, and automatic place and route tools. A complete set of portable \
                    CMOS libraries is provided
platforms           darwin
homepage            http://www-asim.lip6.fr/recherche/alliance/

distname            ${name}-${version}-20070718
worksrcdir          ${name}-${version}
master_sites        http://www-asim.lip6.fr/pub/alliance/distribution/${version}

checksums           md5     917f4493c09f6f5c49d5a606a5e9bbd8 \
                    sha1    e975e3b58a91de96b98f0ff2360798ae5eece6be \
                    rmd160  dc1911517d58bbbdde86a0def21e1447a24f9dea

depends_lib         port:xpm \
                    port:openmotif
                    
use_parallel_build  no
configure.args-append --mandir=${prefix}/share/man
configure.env-append  YACC='/usr/bin/yacc'
destroot.env-append YACC='/usr/bin/yacc'

post-destroot {
    file mkdir  ${destroot}${prefix}/share/alliance
    file rename ${destroot}${prefix}/doc        ${destroot}${prefix}/share/alliance
    file rename ${destroot}${prefix}/examples   ${destroot}${prefix}/share/alliance
    file rename ${destroot}${prefix}/tutorials  ${destroot}${prefix}/share/alliance
    file rename ${destroot}${prefix}/cells      ${destroot}${prefix}/share/alliance
}