source: trunk/dports/aqua/Quicksilver/Portfile

Last change on this file was 142587, checked in by ryandesign@…, 2 years ago

Quicksilver: use expansion operator instead of eval; adjust an error message

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
1# -*- 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
2# $Id: Portfile 142587 2015-11-16 14:13:14Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               compiler_blacklist_versions 1.0
6PortGroup               github 1.0
7PortGroup               xcode 1.0
8PortGroup               xcodeversion 1.0
9
10github.setup            quicksilver Quicksilver 1.3.1 v
11platforms               darwin
12maintainers             ryandesign openmaintainer
13categories              aqua sysutils
14license                 Apache-2
15supported_archs         x86_64
16
17description             OS X launcher utility app
18
19long_description        Quicksilver is a launcher utility app for OS X which \
20                        lets you access applications, documents, contacts, \
21                        music and more\; browse your Macs filesystem using \
22                        keywords and fuzzy matching\; manage content through \
23                        drag and drop, or grabbing selected content \
24                        directly\; and interact with installed applications \
25                        through plugins.
26
27homepage                http://qsapp.com/
28
29# Fetch from git instead of distfile because it needs submodules
30fetch.type              git
31
32post-fetch {
33    system -W ${worksrcpath} "git submodule update --init"
34}
35
36set config_root         ${prefix}/share/QS
37
38post-extract {
39    file mkdir ${workpath}${config_root}
40}
41
42post-patch {
43    reinplace -E "s|/tmp/QS|${workpath}${config_root}|" ${build.dir}/Configuration/Common.xcconfig
44}
45
46# Quicksilver uses new Objective-C features which require the MacOSX10.8 SDK when compiling on 10.7.
47minimum_xcodeversions {11 4.4}
48platform darwin 11 {
49    configure.sdkroot ${developer_dir}/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk
50}
51
52# Blacklist compilers that don't support new Objective-C features.
53# Blacklisting does not work because xcode portgroup doesn't recognize MacPorts compilers.
54# https://trac.macports.org/ticket/40762
55compiler.blacklist      *gcc* {clang < 421}
56
57build.dir               ${worksrcpath}/${name}
58
59xcode.project           ${name}.xcodeproj
60xcode.target            {Quicksilver Distribution}
61xcode.configuration     Release
62
63post-build {
64    # set Info.plist to be world-writable, so that regular users can
65    # set preferences that require writing to Info.plist
66    file attributes ${build.dir}/build/${xcode.configuration}/${name}.app/Contents/Info.plist -permissions a+rw
67}
68
69destroot {
70    move ${workpath}${config_root} ${destroot}${config_root}
71    move {*}[glob ${build.dir}/build/${xcode.configuration}/*.app] ${destroot}${applications_dir}
72}
73
74if {${os.major} < 11} {
75    pre-fetch {
76        ui_error "${name} @${version} requires OS X 10.7 or greater."
77        ui_error "You can download an older version of ${name} for your OS from ${homepage}download.php"
78        return -code error "incompatible OS X version"
79    }
80}
81
82livecheck.type          regex
83livecheck.version       ${version}
84livecheck.url           http://github.qsapp.com/
85livecheck.regex         {>Quicksilver ([0-9.]+)}
Note: See TracBrowser for help on using the repository browser.