1 | # $Id: Portfile,v 1.1 2003/08/14 03:59:57 rshaw Exp $ |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | name py21-pyxml |
---|
5 | version 0.8.2 |
---|
6 | categories devel textproc |
---|
7 | maintainers robert@or.homeip.net |
---|
8 | description XML Tools for Python 2.1 |
---|
9 | long_description A package of all the tools required for writing \ |
---|
10 | basic XML applications in Python 2.1 |
---|
11 | platforms darwin |
---|
12 | homepage http://pyxml.sourceforge.net/ |
---|
13 | master_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}/ |
---|
22 | distname PyXML-0.8.2 |
---|
23 | checksums md5 089949423213bfee633e016da54cb90c |
---|
24 | |
---|
25 | depends_build bin:python2.1:python21 |
---|
26 | depends_lib lib:libexpat.0:expat |
---|
27 | |
---|
28 | configure {} |
---|
29 | |
---|
30 | variant darwin { |
---|
31 | #patch files are darwin specific |
---|
32 | patchfiles patch-setup.py.diff |
---|
33 | } |
---|
34 | |
---|
35 | build {} |
---|
36 | build.args --prefix=${destroot}${prefix} |
---|
37 | build.cmd python2.1 setup.py build --with-libexpat=${prefix} |
---|
38 | |
---|
39 | destroot.args --prefix=${destroot}${prefix} |
---|
40 | destroot.destdir {} |
---|
41 | destroot.cmd python2.1 setup.py |
---|
42 | |
---|
43 | post-destroot { |
---|
44 | # rename bin scripts so not to conflict with default Python 2.2 |
---|
45 | # installation version of PyXML |
---|
46 | file rename -force ${destroot}${prefix}/bin/xmlproc_parse \ |
---|
47 | ${destroot}${prefix}/bin/xmlproc_parse2.1 |
---|
48 | file rename -force ${destroot}${prefix}/bin/xmlproc_val \ |
---|
49 | ${destroot}${prefix}/bin/xmlproc_val2.1 |
---|
50 | # remind user to define/add installed path to python path |
---|
51 | # copied from the twisted port file |
---|
52 | ui_msg "\nBe sure the install path is included in your python path:" |
---|
53 | ui_msg "setenv PYTHONPATH \$PYTHONPATH:${prefix}/lib/python2.1/site-packages\n" |
---|
54 | } |
---|
55 | # vim: ts=4 sw=4 |
---|