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

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

Quicksilver: blacklist older compilers that don't support new Objective-C features that Quicksilver uses, though blacklisting does not work correctly with the xcode portgroup

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