# -*- 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 # $Id$ PortSystem 1.0 PortGroup xcode 1.0 name gimp-app version 2.8.2 revision 2 license GPL-2+ maintainers nomaintainer description GIMP.app application bundle long_description ${description} categories aqua graphics homepage http://gimp-app.sourceforge.net depends_run path:bin/gimp:gimp2 master_sites ${homepage} distfiles GIMPskel.zip use_zip yes checksums sha1 e923c2b145814db35a747ef947ba1ce7da32edbc \ rmd160 c61d0e566d87c772b98cf7d8d8338994c4ce23d9 worksrcdir GIMPskel/ScriptExecCocoa set gimpapp ${workpath}/GIMPskel/GIMP.app post-extract { delete ${gimpapp}/Contents/Resources/script delete ${gimpapp}/Contents/Resources/bin delete ${gimpapp}/Contents/Resources/share } patchfiles patch-ScriptExec.xcodeproj-project.pbxproj.diff \ patch-ScriptExecController.m.diff pre-build { # clean up old precompiled headers just in case system "cd ${worksrcpath} && ${xcodebuildcmd} clean" } post-destroot { xinstall -m 755 \ ${destroot}${applications_dir}/ScriptExec.app/Contents/MacOS/ScriptExec \ ${gimpapp}/Contents/MacOS/GIMP ln -s ${prefix}/bin/gimp ${gimpapp}/Contents/Resources/GIMP ln -s ${prefix}/bin ${gimpapp}/Contents/Resources ln -s ${prefix}/lib ${gimpapp}/Contents/Resources ln -s ${prefix}/share ${gimpapp}/Contents/Resources ln -s ${prefix}/etc ${gimpapp}/Contents/Resources xinstall -d ${destroot}${applications_dir} copy ${gimpapp} ${destroot}${applications_dir} delete ${destroot}${applications_dir}/ScriptExec.app } livecheck.type none