Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #11502 (closed enhancement: fixed)

Opened 21 months ago

Last modified 20 months ago

UPDATE: py-appscript to version 0.17.0

Reported by: ehainry@… Owned by: macports-tickets@…
Priority: Low Milestone: Port Updates
Component: ports Version:
Keywords: Cc: arsptr@…
Port:

Description

This update does a few things:

  • update to latest version
  • remove the obsolete dependencies on py-aem, py-carbonxae, py-osaterminology which are now included in appscript.
  • update homepage
  • install additional tools (osascangui and osadict) and examples.

Notes:

To upgrade py-appscript, the py-aem, py-carbonxae, py-osaterminology ports must be deinstalled (they are deprecated, provided by this port, and prevent it from building ok).

I added a silly patch without which it did not build on my machine.

Attachments

appscript.diff (1.7 KB) - added by ehainry@… 21 months ago.
diff for py-appscript Portfile
patch-_AEModule.c (332 bytes) - added by ehainry@… 21 months ago.
Silly patch for py-appscript to compile
appscript.2.diff (1.5 KB) - added by arsptr@… 20 months ago.
Alternative Portfile diff with fix for Examples/examples directory problem

Change History

Changed 21 months ago by ehainry@…

diff for py-appscript Portfile

Changed 21 months ago by ehainry@…

Silly patch for py-appscript to compile

Changed 21 months ago by pipping@…

  • milestone set to Available Ports

Changed 21 months ago by pipping@…

  • milestone changed from Available Ports to Port Updates

Changed 20 months ago by arsptr@…

Alternative Portfile diff with fix for Examples/examples directory problem

Changed 20 months ago by arsptr@…

Some problems with this:

  • I got it to build without the _AEmodule.c patch - are you sure it is necessary?
  • Portfile needs to reference the patch file anyway
  • Problem installing examples, case conflict with the directory installed by the python24 portgroup:
--->  Building py-appscript with target build
--->  Staging py-appscript into destroot
Error: Target com.apple.destroot returned: error copying "/opt/local/var/db/dports/build/_Users_alastair_hack_build_macports_dports_python_py-appscript/work/appscript-0.17.0/Examples" to "/opt/local/var/db/dports/build/_Users_alastair_hack_build_macports_dports_python_py-appscript/work/destroot/opt/local/share/doc/py-appscript/Examples": file already exists
Error: Status 1 encountered during processing.

Alternative Portfile diff submitted above which fixes the Examples/examples problem - please let me know if this works for you.

Changed 20 months ago by jann@…

  • status changed from new to closed
  • resolution set to fixed

Committed the second patch in r23850

Changed 20 months ago by ehainry@…

I must have dreamed about this patch... ;)

However, for the Examples, it now makes a share/doc/examples/Examples directory quite redondant. The xinstall (create a directory, which probably destructed some work of the Portgroup) then file copy were doing fine (even more since my (and your) filesystem is case insensitive)... However, it does not anymore (probably an update in Python2.4 portgroup).

I would be in favor of something along the way of

file copy ${worksrcpath}/Examples/* ${destroot}${prefix}/share/doc/py-appscript/examples

which unfortunately does not work.

Note: See TracTickets for help on using tickets.