1 | *** Portfile.ORIG 2011-01-27 20:00:15.000000000 +0100 |
---|
2 | --- Portfile 2011-02-01 13:14:41.000000000 +0100 |
---|
3 | *************** |
---|
4 | *** 7,13 **** |
---|
5 | |
---|
6 | name scantailor |
---|
7 | version 0.9.9.2 |
---|
8 | ! revision 2 |
---|
9 | platforms darwin |
---|
10 | maintainers raphael openmaintainer |
---|
11 | license GPL-3+ |
---|
12 | --- 7,13 ---- |
---|
13 | |
---|
14 | name scantailor |
---|
15 | version 0.9.9.2 |
---|
16 | ! revision 3 |
---|
17 | platforms darwin |
---|
18 | maintainers raphael openmaintainer |
---|
19 | license GPL-3+ |
---|
20 | *************** |
---|
21 | *** 41,55 **** |
---|
22 | |
---|
23 | post-destroot { # create application bundle |
---|
24 | set appdir ${destroot}${applications_dir}/ScanTailor.app |
---|
25 | xinstall -d ${appdir} |
---|
26 | xinstall -d ${appdir}/Contents/MacOS |
---|
27 | copy ${worksrcpath}/packaging/osx/Info.plist.in ${appdir}/Contents/Info.plist |
---|
28 | ! move ${destroot}${prefix}/bin/scantailor ${appdir}/Contents/MacOS/ |
---|
29 | xinstall -d ${appdir}/Contents/Resources |
---|
30 | copy ${worksrcpath}/packaging/osx/ScanTailor.icns ${appdir}/Contents/Resources/ |
---|
31 | eval move [glob ${destroot}${prefix}/share/scantailor/translations/scantailor_*.qm] \ |
---|
32 | ${appdir}/Contents/Resources/ |
---|
33 | |
---|
34 | # install additional documentation files |
---|
35 | set docdir ${destroot}${prefix}/share/doc/${name} |
---|
36 | xinstall -d ${docdir} |
---|
37 | --- 41,59 ---- |
---|
38 | |
---|
39 | post-destroot { # create application bundle |
---|
40 | set appdir ${destroot}${applications_dir}/ScanTailor.app |
---|
41 | + file delete ${appdir} |
---|
42 | xinstall -d ${appdir} |
---|
43 | xinstall -d ${appdir}/Contents/MacOS |
---|
44 | copy ${worksrcpath}/packaging/osx/Info.plist.in ${appdir}/Contents/Info.plist |
---|
45 | ! move ${destroot}${prefix}/bin/scantailor ${appdir}/Contents/MacOS/ScanTailor |
---|
46 | xinstall -d ${appdir}/Contents/Resources |
---|
47 | copy ${worksrcpath}/packaging/osx/ScanTailor.icns ${appdir}/Contents/Resources/ |
---|
48 | eval move [glob ${destroot}${prefix}/share/scantailor/translations/scantailor_*.qm] \ |
---|
49 | ${appdir}/Contents/Resources/ |
---|
50 | |
---|
51 | + # add Frameworks to make app self-contained |
---|
52 | + system "${qt_bins_dir}/macdeployqt \"${name}.app\" -no-strip" |
---|
53 | + |
---|
54 | # install additional documentation files |
---|
55 | set docdir ${destroot}${prefix}/share/doc/${name} |
---|
56 | xinstall -d ${docdir} |
---|