# $Id: Portfile 78753 2011-05-21 14:00:08Z ryandesign@macports.org $

PortSystem 1.0
PortGroup python25 1.0

name			py25-logilab-constraint
version			0.4.0
categories		python
platforms		darwin
maintainers		nomaintainer
description		Python module for solving constraint satisfaction problems
long_description	The constraint package is a constraint satisfaction \
				problem solver written in 100% pure Python, using \
				constraint propagation algorithms. So far, facilities \
				are provided to work with finite domains only.
homepage		http://www.logilab.org/projects/constraint/
master_sites	http://ftp.logilab.org/pub/constraint/
distname		constraint-${version}
worksrcdir      logilab-constraint-${version}
checksums       md5     e0f2288b30630a596b994dfc4ea3cd77 \
                sha1    d023717fbdaa1a43042786f6dbd1a893aac338a7 \
                rmd160 4dd688e2c354572493845684ec24be4592deb354

depends_lib     port:py25-logilab-common

post-destroot	{
	xinstall -m 644 -W ${worksrcpath} doc/CONTRIBUTORS README \
		doc/documentation.html doc/documentation.xml ChangeLog \
		${destroot}${prefix}/share/doc/${name}

	xinstall -m 644 -W ${worksrcpath}/examples chess.py conferences.py \
        intervals.py knights.py menza.py menza2.py menza_brute_force.py \
        money.py money2.py queens.py queens2.py queens3.py rooks.py sudoku.py \
        ${destroot}${prefix}/share/doc/${name}/examples

    file delete ${destroot}${prefix}/lib/python2.5/site-packages/logilab/__init__.py
}
