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

Last change on this file since 100107 was 97186, checked in by raimue@…, 7 years ago

aqua/terminal-notifier:
New port

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