source: trunk/dports/aqua/Quicksilver/Portfile @ 112149

Last change on this file since 112149 was 112149, checked in by ryandesign@…, 6 years ago

Quicksilver: update to 1.1.2

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