Revision: 75509 http://trac.macports.org/changeset/75509 Author: raphael@macports.org Date: 2011-01-27 10:41:55 -0800 (Thu, 27 Jan 2011) Log Message: ----------- scantailor: create an application bundle; fixes #28177 Modified Paths: -------------- trunk/dports/graphics/scantailor/Portfile Modified: trunk/dports/graphics/scantailor/Portfile =================================================================== --- trunk/dports/graphics/scantailor/Portfile 2011-01-27 18:38:10 UTC (rev 75508) +++ trunk/dports/graphics/scantailor/Portfile 2011-01-27 18:41:55 UTC (rev 75509) @@ -7,11 +7,11 @@ name scantailor version 0.9.9.2 -revision 1 +revision 2 platforms darwin maintainers raphael openmaintainer license GPL-3+ -categories graphics +categories graphics aqua description An interactive post-processing tool for scanned pages homepage http://${name}.sourceforge.net/ long_description Scan Tailor is an interactive post-processing tool for scanned \ @@ -33,9 +33,25 @@ sha1 7bdd390a32355685af53160aa5b9bd3b280a0c1a \ rmd160 39286377d1b328286c8c35543fb97c1a5695bf73 +post-patch { + reinplace "s|@VERSION@|${version}|" ${worksrcpath}/packaging/osx/Info.plist.in +} + configure.args-append ${qt_cmake_defines} -post-destroot { set docdir ${destroot}${prefix}/share/doc/${name} +post-destroot { # create application bundle + set appdir ${destroot}${applications_dir}/ScanTailor.app + xinstall -d ${appdir} + xinstall -d ${appdir}/Contents/MacOS + copy ${worksrcpath}/packaging/osx/Info.plist.in ${appdir}/Contents/Info.plist + move ${destroot}${prefix}/bin/scantailor ${appdir}/Contents/MacOS/ + xinstall -d ${appdir}/Contents/Resources + copy ${worksrcpath}/packaging/osx/ScanTailor.icns ${appdir}/Contents/Resources/ + eval move [glob ${destroot}${prefix}/share/scantailor/translations/scantailor_*.qm] \ + ${appdir}/Contents/Resources/ + + # install additional documentation files + set docdir ${destroot}${prefix}/share/doc/${name} xinstall -d ${docdir} xinstall -m 644 -W ${worksrcpath} \ COPYING \
participants (1)
-
raphael@macports.org