source: trunk/dports/python/py-constraint/Portfile @ 5325

Last change on this file since 5325 was 5325, checked in by mww, 17 years ago

prefer xinstall over file copy/mkdir

  • Property svn:eol-style set to native
File size: 1.3 KB
Line 
1# $Id: Portfile,v 1.3 2004/02/08 13:24:55 mww Exp $
2
3PortSystem 1.0
4
5name            py-constraint
6version         0.2.3
7categories      python
8platforms       darwin
9maintainers     mww@opendarwin.org
10description     python module for solving constraint satisfaction problems
11long_description        The constraint package is a constraint satisfaction \
12                        problem solver written in 100% pure Python, using \
13                        constraint propagation algorithms. So far, facilities \
14                        are provided to work with finite domains only.
15homepage        http://www.logilab.org/projects/constraint/
16master_sites    ftp://ftp.logilab.org/pub/constraint/
17distname        constraint-${version}
18checksums       md5 17fd01667356cf4d9298c46ed6f88a4f
19
20depends_lib     bin:python:python
21
22use_configure   no
23
24build.cmd       python setup.py
25build.target    build
26
27destroot.cmd    python setup.py
28destroot.destdir        --prefix=${destroot}${prefix}
29
30post-destroot   {
31        xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
32        xinstall -m 644 -W ${worksrcpath} doc/CONTRIBUTORS README \
33                doc/documentation.html doc/documentation.xml COPYING \
34                ChangeLog ${destroot}${prefix}/share/doc/${name}
35        xinstall -m 644 -W ${worksrcpath}/examples conferences.py menza.py \
36                menza2.py menza_brute_force.py money.py money2.py queens.perf \
37                queens.png queens.py \
38                ${destroot}${prefix}/share/doc/${name}/examples
39}
Note: See TracBrowser for help on using the repository browser.