/
Portfile
56 lines (46 loc) · 1.69 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# $Id$
PortSystem 1.0
PortGroup xcode 1.0
name gimp-app
version 2.4.0-rc1
maintainers yves
description Gimp.app application bundle
long_description ${description}
categories aqua graphics
homepage http://gimp-app.sourceforge.net/
depends_run bin:gimp:gimp2
master_sites sourceforge
distfiles ScriptExec.tar.gz \
gimp.app.skel.tar.gz
checksums ScriptExec.tar.gz md5 fc444a1e18cf2664f29af6ca6ca335ef \
gimp.app.skel.tar.gz md5 66ad4912a3c71056c479c8eeef11fd43
worksrcdir ScriptExec
patch {
cd ${workpath}/Gimp.app/Contents
delete Info.plist PkgInfo
xinstall -m 644 ${filespath}/Info.plist ${filespath}/PkgInfo .
reinplace "s|__VERSION__|${version}|g" Info.plist
reinplace "s|`dirname \\\\\"\$0\\\\\"`|${prefix}|g" \
Resources/openDoc Resources/script
}
destroot {
xinstall -m 755 \
${worksrcpath}/build/Deployment/ScriptExec.app/Contents/MacOS/ScriptExec \
${workpath}/Gimp.app/Contents/MacOS/Gimp
cd ${workpath}/Gimp.app/Contents/Resources
xinstall -m 755 bin/getdisplay.sh ${destroot}${prefix}/bin
delete Gimp.icns bin etc lib share
xinstall -m 644 ${filespath}/Gimp.icns .
xinstall -m 644 ${filespath}/xcf.icns .
xinstall -d ${destroot}/Applications/MacPorts
copy ${workpath}/Gimp.app ${destroot}/Applications/MacPorts
}
post-install {
ui_msg "
If you are having problems viewing the help files when using Gimp.app,
1- Make sure you have the user manual installed (port gimp-user-manual)
2- Add the following line to ~/.gimp-2.4/gimprc :
(help-locales \"LANG\")
where LANG is your two-letters locale (fr, en, jp, ...)
"
}