source: trunk/dports/aqua/terminal-notifier/Portfile

Last change on this file was 153760, checked in by raimue@…, 13 months ago

terminal-notifier: update to version 1.7.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 153760 2016-10-10 09:59:38Z ryandesign@macports.org $
2
3PortSystem 1.0
4PortGroup       github 1.0
5PortGroup       xcode 1.0
6PortGroup       xcodeversion 1.0
7
8github.setup    julienXX terminal-notifier 1.7.1
9categories      aqua
10platforms       darwin
11license         MIT
12maintainers     raimue openmaintainer
13
14description     A command line tool to send Mac OS X user notifications
15long_description \
16                ${name} is able to send notifications to the Mac OS X \
17                Notification Center, which is available in Mac OS X \
18                10.8 Mountain Lion or later.
19
20minimum_xcodeversions {12 5.0}
21
22pre-fetch {
23    if {${os.platform} eq "darwin" && ${os.major} < 12} {
24        ui_error "${name} only works with Mac OS X 10.8 Mountain Lion or later."
25        return -code error "incompatible Mac OS X version"
26    }
27}
28
29checksums       rmd160  10948da263fda91f6f4b9771c17be577a821bcbf \
30                sha256  bfb1da5da7e78c3082e7340fb5ec741cd9b71d0d43e36ca3fa27d6379fae7875
31
32post-extract {
33    # This icon is a copy from Apple and is protected by copyright. Delete this
34    # here to avoid distributing copyright protected files in archives.
35    delete ${worksrcpath}/Terminal.icns
36}
37
38patchfiles      patch-pbxproj.diff
39
40post-destroot {
41    # The terminal-notifier.app is not meant to be called directly, however, it
42    # has to be an application bundle in order to be able to work with the
43    # notification center. We hide the bundle in libexec and install a symlink
44    # in bin.
45
46    move ${destroot}${applications_dir}/${name}.app ${destroot}${prefix}/libexec/
47    xinstall -m 755 ${filespath}/${name} ${destroot}${prefix}/bin/
48    reinplace "s:@PREFIX@:${prefix}:g" ${destroot}${prefix}/bin/${name}
49}
Note: See TracBrowser for help on using the repository browser.