# $Id: Portfile 153760 2016-10-10 09:59:38Z raimue@macports.org $ PortSystem 1.0 PortGroup github 1.0 PortGroup xcode 1.0 PortGroup xcodeversion 1.0 github.setup julienXX terminal-notifier 1.7.1 categories aqua platforms darwin license MIT maintainers raimue openmaintainer description A command line tool to send Mac OS X user notifications long_description \ ${name} is able to send notifications to the Mac OS X \ Notification Center, which is available in Mac OS X \ 10.8 Mountain Lion or later. minimum_xcodeversions {12 5.0} pre-fetch { if {${os.platform} eq "darwin" && ${os.major} < 12} { ui_error "${name} only works with Mac OS X 10.8 Mountain Lion or later." return -code error "incompatible Mac OS X version" } } checksums rmd160 10948da263fda91f6f4b9771c17be577a821bcbf \ sha256 bfb1da5da7e78c3082e7340fb5ec741cd9b71d0d43e36ca3fa27d6379fae7875 post-extract { # This icon is a copy from Apple and is protected by copyright. Delete this # here to avoid distributing copyright protected files in archives. delete ${worksrcpath}/Terminal.icns } patchfiles patch-pbxproj.diff post-destroot { # The terminal-notifier.app is not meant to be called directly, however, it # has to be an application bundle in order to be able to work with the # notification center. We hide the bundle in libexec and install a symlink # in bin. move ${destroot}${applications_dir}/${name}.app ${destroot}${prefix}/libexec/ xinstall -m 755 ${filespath}/${name} ${destroot}${prefix}/bin/ reinplace "s:@PREFIX@:${prefix}:g" ${destroot}${prefix}/bin/${name} }