Ticket #456: Portfile.2

File Portfile.2, 1.1 KB (added by ryanwilcox@…, 21 years ago)

Porfile with darwin variant

Line 
1# $Id: $
2
3PortSystem 1.0
4
5name                            pyxml
6version                         0.8.2
7categories                      devel, textproc
8maintainers                     ryanwilcox@mac.com
9description                     XML Tools for Python
10long_description        A package of all the tools required for writing basic XML applications in Python
11platforms                       darwin
12homepage                        http://pyxml.sourceforge.net/
13master_sites            http://unc.dl.sourceforge.net/sourceforge/pyxml/
14distname                        PyXML-0.8.2
15checksums                       md5 089949423213bfee633e016da54cb90c
16
17depends_build           bin:python:python
18depends_lib                     lib:libexpat.0:expat
19
20configure                       {}
21
22variant                         darwin {
23                                                patchfiles                      patch-setup.py.diff  #patch files are darwin specific
24                                        }
25                                       
26build                           {}
27build.args                      --prefix=${destroot}${prefix}
28build.cmd                       ${prefix}/bin/python setup.py build --with-libexpat=${prefix}
29
30install.args            --prefix=${destroot}${prefix}
31install.destroot        {}
32install.cmd                     ${prefix}/bin/python setup.py
33
34post-install {
35        # remind user to define/add installed path to python path
36        # copied from the twisted port file
37        ui_msg "\nBe sure the install path is included in your python path:"
38        ui_msg "setenv PYTHONPATH \$PYTHONPATH:${prefix}/lib/python2.2/site-packages\n"
39}