Ticket #456: PortFile

File PortFile, 1.5 KB (added by ryanwilcox@…, 21 years ago)

Portfile with no specified python

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 \
14                                        http://unc.dl.sourceforge.net/sourceforge/${name}/ \
15                                        http://telia.dl.sourceforge.net/sourceforge/${name}/ \
16                                        http://easynews.dl.sourceforge.net/sourceforge/${name}/ \
17                                        http://umn.dl.sourceforge.net/sourceforge/${name}/ \
18                                        http://twtelecom.dl.sourceforge.net/sourceforge/${name}/ \
19                                        http://belnet.dl.sourceforge.net/sourceforge/${name}/ \
20                                        http://switch.dl.sourceforge.net/sourceforge/${name}/ \
21                                        http://cesnet.dl.sourceforge.net/sourceforge/${name}/
22distname                        PyXML-0.8.2
23checksums                       md5 089949423213bfee633e016da54cb90c
24
25depends_build           bin:python:python
26depends_lib                     lib:libexpat.0:expat
27
28configure                       {}
29
30variant                         darwin {
31                                                #patch files are darwin specific
32                                                patchfiles                      patch-setup.py.diff 
33                                        }
34                                       
35build                           {}
36build.args                      --prefix=${destroot}${prefix}
37build.cmd                       python setup.py build --with-libexpat=${prefix}
38
39install.args            --prefix=${destroot}${prefix}
40install.destroot        {}
41install.cmd                     ${prefix}/bin/python setup.py
42
43post-install {
44        # remind user to define/add installed path to python path
45        # copied from the twisted port file
46        ui_msg "\nBe sure the install path is included in your python path:"
47        ui_msg "setenv PYTHONPATH \$PYTHONPATH:${prefix}/lib/python2.2/site-packages\n"
48}