source: trunk/dports/devel/GitX/Portfile @ 71533

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

In the interest that all portfiles exemplify correct portfile writing techniques, remove slash before ${prefix} which is not needed because ${prefix} already begins with a slash

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 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 71533 2010-09-15 20:26:12Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           xcode 1.0
6
7name                GitX
8version             0.7.1
9maintainers         mnick
10
11categories          devel
12description         GitX is a git GUI specifically for Mac OS X
13long_description    GitX is a gitk like clone written specifically for OS X Leopard and higher. \
14                    This means that it has a native interface and tries to integrate with the \
15                    operating system as good as possible. Examples of this are drag and drop \
16                    support and QuickLook support.
17
18platforms           darwin
19license             GPL
20homepage            http://gitx.frim.nl/
21
22fetch.type          git
23git.url             git://github.com/pieter/gitx.git
24git.branch          v${version}
25
26depends_lib-append  port:git-core
27
28xcode.target        GitX
29xcode.configuration Release
30
31pre-fetch {
32    if {${os.major} < 9} {
33        return -code error "This version of ${name} is only for Mac OS X 10.5 or later."
34    }
35}
36
37configure {
38    if {[variant_isset universal]} {
39        set arch_flags ${configure.universal_cflags}
40    } else {
41        set arch_flags ${configure.cc_archflags}
42    }
43    reinplace "s|make CFLAGS=\\\\\"-arch .*\\\\\"|make CFLAGS=\\\\\"${arch_flags}\\\\\"|g" \
44        ${worksrcpath}/GitX.xcodeproj/project.pbxproj
45}
46
47post-destroot {
48    file mkdir  ${destroot}${prefix}/bin
49    file rename ${destroot}/${applications_dir}/gitx ${destroot}${prefix}/bin/gitx
50}
51
52livecheck.url       http://gitx.frim.nl/release_history.html
53livecheck.regex     <h1>v(.*)</h1>
Note: See TracBrowser for help on using the repository browser.