# $Id: Portfile 114325 2013-12-05 09:20:31Z ryandesign@macports.org $ PortSystem 1.0 PortGroup github 1.0 PortGroup xcode 1.0 github.setup alloy terminal-notifier 1.5.1 v 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. 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 328b19859ea7a70cab401c13796f7f80ea46f6ad \ sha256 7ebc3c9483f7697e2bb57c2eceafd1fa9d20f0b735434a2876716f95987270e0 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} }