source: trunk/dports/devel/git-extras/Portfile

Last change on this file was 133702, checked in by ryandesign@…, 3 years ago

git-extras: update to 2.2.0 (#46977)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 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 133702 2015-03-09 06:42:34Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               github 1.0
6
7github.setup            tj git-extras 2.2.0
8maintainers             nomaintainer
9platforms               darwin
10categories              devel
11supported_archs         noarch
12
13description             Git utilities
14long_description        \
15    ${description} -- repo summary, repl, changelog population, author \
16    commit percentages and more
17license                 MIT
18
19checksums               rmd160  5147eb7fd8470a30dd04861944e7c3a1daeaeddb \
20                        sha256  1cfeaa9f2644a37541f8c4e8f175222c70b36fe9672fc7f9c9ef248c0071e4bb
21
22patchfiles              patch-bin-git-extras.diff \
23                        patch-Makefile.diff
24
25use_configure           no
26
27build {}
28
29destroot.destdir        PREFIX=${destroot}${prefix}
30post-destroot {
31    set docdir ${destroot}${prefix}/share/doc/${subport}
32    xinstall -d ${docdir}
33    eval xinstall -m 644 [glob ${worksrcpath}/man/*.html] ${docdir}
34}
35
36pre-activate {
37    # git-extras @1.7.0_0 installed a file to /opt/local/etc/bash_completion.d/
38    # remove it if found
39    set filepath ${prefix}/etc/bash_completion.d/git-extras
40    if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
41        if {[catch {delete ${filepath}}]} {
42            ui_warn "Cannot delete ${filepath}; please remove it manually"
43        }
44    }
45}
Note: See TracBrowser for help on using the repository browser.