source: trunk/dports/devel/GitX/Portfile

Last change on this file was 120912, checked in by ciserlohn@…, 3 years ago

git, git-core: update to version 2.0.0; rename to git (closes #37279) and update all dependent ports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- coding: utf-8; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 120912 2014-06-11 13:10:52Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           xcode 1.0
7
8github.setup        pieter gitx 0.7.1 v
9name                GitX
10revision            3
11maintainers         cal openmaintainer
12
13categories          devel
14description         GitX is a git GUI specifically for Mac OS X
15long_description    GitX is a gitk like clone written specifically for OS X Leopard and higher. \
16                    This means that it has a native interface and tries to integrate with the \
17                    operating system as good as possible. Examples of this are drag and drop \
18                    support and QuickLook support.
19
20platforms           darwin
21license             GPL
22homepage            http://gitx.frim.nl/
23
24fetch.type          git
25
26depends_lib-append  port:git
27installs_libs       no
28
29xcode.target        GitX
30xcode.configuration Release
31
32patchfiles          10-disable-finder-integration.patch \
33                    20-remove-enable-terminal-usage.patch \
34                    21-remove-install-cli-tool.patch \
35                    30-remove-sparkle.patch \
36                    31-remove-sparkle-from-xcodebuild.patch \
37                    40-git-submodules-via-https.patch \
38                    50-use-libstc++.patch
39                    # GitX uses __gnu_cxx::stdio_filebuf, which isn't available in libc++
40
41variant finder_integration description {Enable Finder integration, opening .git folders with GitX} {
42    patchfiles-delete   10-disable-finder-integration.patch
43}
44
45default_variants +finder_integration
46
47pre-fetch {
48    if {${os.major} < 9} {
49        return -code error "This version of ${name} is only for Mac OS X 10.5 or later."
50    }
51}
52
53post-patch {
54    file delete -force ${worksrcpath}/Sparkle.framework
55    reinplace "s|make CFLAGS=\\\\\"-arch .*\\\\\"|make CFLAGS=\\\\\"[get_canonical_archflags]\\\\\"|g" \
56        ${worksrcpath}/GitX.xcodeproj/project.pbxproj
57}
58
59post-destroot {
60    move ${destroot}${applications_dir}/gitx ${destroot}${prefix}/bin
61}
Note: See TracBrowser for help on using the repository browser.