source: trunk/dports/aqua/gimp-app/Portfile

Last change on this file was 115930, checked in by devans@…, 4 years ago

gimp-app: rename app bundle resource that provides link to gimp executable from 'script' to 'GIMP', fixes app naming in gimp2 quartz OS X native menu (#42113).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 115930 2014-01-14 18:51:47Z ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup  xcode 1.0
6
7name            gimp-app
8version         2.8.2
9revision        2
10license         GPL-2+
11maintainers     nomaintainer
12description     GIMP.app application bundle
13long_description ${description}
14
15categories      aqua graphics
16homepage        http://gimp-app.sourceforge.net
17
18depends_run     path:bin/gimp:gimp2
19
20master_sites    ${homepage}
21
22distfiles       GIMPskel.zip
23use_zip         yes
24
25checksums       sha1    e923c2b145814db35a747ef947ba1ce7da32edbc \
26                rmd160  c61d0e566d87c772b98cf7d8d8338994c4ce23d9
27
28worksrcdir      GIMPskel/ScriptExecCocoa
29
30set gimpapp     ${workpath}/GIMPskel/GIMP.app
31
32post-extract {
33    delete ${gimpapp}/Contents/Resources/script
34    delete ${gimpapp}/Contents/Resources/bin
35    delete ${gimpapp}/Contents/Resources/share
36}
37
38patchfiles      patch-ScriptExec.xcodeproj-project.pbxproj.diff \
39                patch-ScriptExecController.m.diff
40
41pre-build {
42    # clean up old precompiled headers just in case
43    system "cd ${worksrcpath} && ${xcodebuildcmd} clean"
44}
45
46post-destroot {
47    xinstall -m 755 \
48        ${destroot}${applications_dir}/ScriptExec.app/Contents/MacOS/ScriptExec \
49        ${gimpapp}/Contents/MacOS/GIMP
50
51    ln -s ${prefix}/bin/gimp ${gimpapp}/Contents/Resources/GIMP
52    ln -s ${prefix}/bin ${gimpapp}/Contents/Resources
53    ln -s ${prefix}/lib ${gimpapp}/Contents/Resources
54    ln -s ${prefix}/share ${gimpapp}/Contents/Resources
55    ln -s ${prefix}/etc ${gimpapp}/Contents/Resources
56
57    xinstall -d ${destroot}${applications_dir}
58    copy ${gimpapp} ${destroot}${applications_dir}
59
60    delete ${destroot}${applications_dir}/ScriptExec.app
61}
62
63livecheck.type none
Note: See TracBrowser for help on using the repository browser.