Opened 21 years ago

Closed 21 years ago

Last modified 19 years ago

#456 closed defect (fixed)

[NEW PORT] PyXML

Reported by: ryanwilcox@… Owned by: jpm@…
Priority: Normal Milestone:
Component: ports Version: 1.0
Keywords: Cc: jpm@…
Port:

Description

Attached are the port and patch files for PyXML, XML tools for Python

Attachments (5)

Portfile (1.0 KB) - added by ryanwilcox@… 21 years ago.
The port file
patch-setup.py.diff (734 bytes) - added by ryanwilcox@… 21 years ago.
Patch file for setup.py
Portfile.2 (1.1 KB) - added by ryanwilcox@… 21 years ago.
Porfile with darwin variant
Portfile.3 (1.6 KB) - added by jpm@… 21 years ago.
repaired portfile…
PortFile (1.5 KB) - added by ryanwilcox@… 21 years ago.
Portfile with no specified python

Download all attachments as: .zip

Change History (13)

Changed 21 years ago by ryanwilcox@…

Attachment: Portfile added

The port file

Changed 21 years ago by ryanwilcox@…

Attachment: patch-setup.py.diff added

Patch file for setup.py

comment:1 Changed 21 years ago by jpm@…

if the given patchfiles are only applicable to darwin/macosx you might want to place them in a variant block instead of global. this will allow the port to work on other platforms without being molested by darwin/macosx specific changes

variant darwin {

patchfiles spider.monkey

}

Changed 21 years ago by ryanwilcox@…

Attachment: Portfile.2 added

Porfile with darwin variant

comment:2 Changed 21 years ago by ryanwilcox@…

attachments.isobsolete: 01

comment:3 Changed 21 years ago by ryanwilcox@…

Cc: jpm@… added

comment:4 Changed 21 years ago by jpm@…

Owner: changed from kevin@… to jpm@…

the portfile as attached didn't parse correctly -- attaching my copy with more master_sites and fixed darwin variant comment.

obviously this doesn't afford us a whole lot as it still fails to build...

DEBUG: Executing com.apple.patch (pyxml) ---> Applying /opt/local/var/db/dports/distfiles/patch-setup.py.diff DEBUG: Assembled command: 'cd /Users/jpm/sandbox/darwinports/dports/devel/pyxml/work/ PyXML-0.8.2 && patch -p0' patch unexpectedly ends in middle of line patch: Only garbage was found in the patch input. Error: Target com.apple.patch returned: shell command "cd /Users/jpm/sandbox/darwinports/ dports/devel/pyxml/work/PyXML-0.8.2 && patch -p0 < "/opt/local/var/db/dports/distfiles/ patch-setup.py.diff"" returned error 2 Command output: patch unexpectedly ends in middle of line patch: Only garbage was found in the patch input.

Changed 21 years ago by jpm@…

Attachment: Portfile.3 added

repaired portfile...

comment:5 Changed 21 years ago by jpm@…

attachments.isobsolete: 01

comment:6 Changed 21 years ago by jpm@…

my bad, the patchfile was hosed as saved by safari...

looks like you are trying to use the python bin from /opt/local/bin but this can be installed by the system elsewhere -- you should probably let the sys decide which python bin to use and not hard code it. install fails with:

DEBUG: Executing com.apple.install (pyxml) DEBUG: Assembled command: 'cd /Users/jpm/sandbox/darwinports/dports/devel/pyxml/work/ PyXML-0.8.2 && /opt/local/bin/python setup.py install --prefix=/Users/jpm/sandbox/ darwinports/dports/devel/pyxml/work/destroot/opt/local ' sh: /opt/local/bin/python: No such file or directory Error: Target com.apple.install returned: shell command "cd /Users/jpm/sandbox/darwinports/ dports/devel/pyxml/work/PyXML-0.8.2 && /opt/local/bin/python setup.py install --prefix=/ Users/jpm/sandbox/darwinports/dports/devel/pyxml/work/destroot/opt/local " returned error 127 Command output: sh: /opt/local/bin/python: No such file or directory

Changed 21 years ago by ryanwilcox@…

Attachment: PortFile added

Portfile with no specified python

comment:7 Changed 21 years ago by ryanwilcox@…

attachments.isobsolete: 01

comment:8 Changed 21 years ago by jpm@…

Resolution: fixed
Status: newclosed

i think you just want to list python, rather than specify any path to the binary -- this will allow the system to resolve the dependency which could be satisified from a number of location...

made that change and checking in. thank you for the port -- keep 'em coming :0)

Note: See TracTickets for help on using tickets.