1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name pyxml |
---|
6 | version 0.8.2 |
---|
7 | categories devel, textproc |
---|
8 | maintainers ryanwilcox@mac.com |
---|
9 | description XML Tools for Python |
---|
10 | long_description A package of all the tools required for writing basic XML applications in Python |
---|
11 | platforms darwin |
---|
12 | homepage http://pyxml.sourceforge.net/ |
---|
13 | master_sites http://unc.dl.sourceforge.net/sourceforge/pyxml/ |
---|
14 | distname PyXML-0.8.2 |
---|
15 | checksums md5 089949423213bfee633e016da54cb90c |
---|
16 | |
---|
17 | depends_build bin:python:python |
---|
18 | depends_lib lib:libexpat.0:expat |
---|
19 | |
---|
20 | configure {} |
---|
21 | |
---|
22 | variant darwin { |
---|
23 | patchfiles patch-setup.py.diff #patch files are darwin specific |
---|
24 | } |
---|
25 | |
---|
26 | build {} |
---|
27 | build.args --prefix=${destroot}${prefix} |
---|
28 | build.cmd ${prefix}/bin/python setup.py build --with-libexpat=${prefix} |
---|
29 | |
---|
30 | install.args --prefix=${destroot}${prefix} |
---|
31 | install.destroot {} |
---|
32 | install.cmd ${prefix}/bin/python setup.py |
---|
33 | |
---|
34 | post-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 | } |
---|