[MacPorts] #30540: ipe @7.0.14: Please add an application bundle to Applications/MacPorts/

MacPorts noreply at macports.org
Wed Aug 3 03:29:26 PDT 2011


#30540: ipe @7.0.14: Please add an application bundle to Applications/MacPorts/
------------------------------------+---------------------------------------
  Reporter:  Torsten.Maehne@…       |       Owner:  m.thon@…                   
      Type:  enhancement            |      Status:  reopened                   
  Priority:  Normal                 |   Milestone:                             
 Component:  ports                  |     Version:  2.0.0                      
Resolution:                         |    Keywords:  haspatch                   
      Port:  ipe                    |  
------------------------------------+---------------------------------------
Changes (by Torsten.Maehne@…):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 Thanks for the quick reaction on my bug report. I checked the patch. The
 application launches, but Ipe reported still "There was an error trying to
 run Pdflatex". Therefore, I digged further. Your patch just adds
 /opt/local/bin to the PATH. This is probably fine if TeXlive is installed
 through MacPorts, but I prefer to install MacTeX instead, which offers a
 better integration with the Mac OS X GUI. MacTeX puts all binariies into
 /usr/texbin. Therefore, I added it to the PATH in Contents/MacOS/Ipe
 script. Further, I checked the Contents/Info.plist using the following
 reference documentation:

 http://developer.apple.com/library/mac/#documentation/General/Reference/InfoPlistKeyReference/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009248-SW1

 and especially the documentation about the Launch Services:

 http://developer.apple.com/library/mac/#documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html#//apple_ref/doc/uid/TP30000999-CH202-SW9

 I registered the *.ipe, *.eps, *.pdf extensions to be opened by Ipe and
 provided Icon files for them, which I generated from the file type icons
 that I found in the ipe-7.0.10-win.zip archive
 <http://sourceforge.net/projects/ipe7/files/ipe/>.

 I realized that the Application bundle needs to be touched to update its
 time stamp so that Mac OS X gets aware of the modified Info.plist:

 http://developer.apple.com/library/mac/#documentation/Carbon/Conceptual/LaunchServicesConcepts/LSCConcepts/LSCConcepts.html%23//apple_ref/doc/uid/TP30000999-CH202-BABEJFCD

 Then also the LSEnvironment key works to specify the PATH. Therefore, I
 could replace the wrapper script again by a symbolic link to
 /opt/local/bin/ipe.

 What does not work so far correctly is the opening of the associated file
 type: Ipe is launched, but the selected file not opened. The explanation
 is that Mac OS X does not pass the file name as a command line argument,
 but sends an "odoc" Apple event. Qt4 provides platform-independent support
 for this concept:

 http://doc.qt.nokia.com/qq/qq18-macfeatures.html#newevents

 The required modifications to the source code seem to be quite
 straightforward. However, I'm not familiar enough with Ipe's C++/Lua code
 base to do it myself. The upstream developer Otfried Cheong does not have
 a Mac to do and test it.

 Attached, you can find my current version of the app bundle.

-- 
Ticket URL: <https://trac.macports.org/ticket/30540#comment:6>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list