source: trunk/dports/devel/stgit/Portfile @ 136557

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

stgit: use system -W instead of cd

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 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 136557 2015-05-21 19:50:03Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                stgit
8version             0.15
9revision            4
10categories          devel python
11license             GPL-2
12platforms           darwin
13maintainers         nomaintainer
14supported_archs     noarch
15
16description         Push/pop utility on top of GIT
17long_description    StGIT is a Python application providing similar \
18                    functionality to Quilt (i.e. pushing/popping patches \
19                    to/from a stack) on top of GIT. These operations are \
20                    performed using GIT commands and the patches are stored \
21                    as GIT commit objects, allowing easy merging of the StGIT \
22                    patches into other repositories using standard GIT \
23                    functionality. \
24                    Note that StGIT is not an SCM interface on top of GIT and \
25                    it expects a previously initialised GIT repository \
26                    (unless it is cloned using StGIT directly). For standard \
27                    SCM operations, either use plain GIT commands or the \
28                    Cogito tool but it is not recommended to mix them with \
29                    the StGIT commands.
30homepage            http://www.procode.org/stgit/
31master_sites        http://homepage.ntlworld.com/cmarinas/stgit/ \
32                    http://download.gna.org/stgit/
33checksums           md5     a4721b2a5f529cf5450109f9fcb4db19 \
34                    sha1    8f18e3079014d907237aeffa6b851074422b7f27 \
35                    rmd160  3779091ed8639c825f053c66031b4569a6ffbdea
36
37depends_run         port:git
38
39python.default_version 27
40
41# ticket #27778
42patchfiles          tutorial.txt.patch
43
44set stgdocs         "${worksrcpath}/Documentation/\\\[a-z\\\]*.txt"
45set stgman          ""
46
47post-build {
48    system -W ${worksrcpath} "PYTHON=${prefix}/bin/python2.7 make all"
49}
50
51python.link_binaries_suffix
52
53post-destroot {
54    move ${destroot}${python.prefix}/share/stgit/ \
55        ${destroot}${prefix}/share/
56
57    # Install what little documentation there is
58    xinstall -m 644 -W ${worksrcpath} COPYING README \
59        ${destroot}${prefix}/share/doc/${name}
60    eval xinstall -m 644 [eval glob ${stgdocs}] \
61        ${destroot}${prefix}/share/doc/${name}
62    if {${stgman} != ""} {
63        eval xinstall -m 644 [eval glob ${stgman}] \
64            ${destroot}${prefix}/share/man/man1
65    }
66}
67
68variant html_man_docs \
69    description {Build and install documentation in HTML and manpage format} {
70    # Need to add post-destroot addition of extra docs...
71    lappend stgdocs ${worksrcpath}/Documentation/*.html
72    lappend stgman ${worksrcpath}/Documentation/*.1
73    depends_build-append    port:asciidoc port:xmlto
74    post-build {
75        system -W ${worksrcpath} "PYTHON=${prefix}/bin/python2.7 make all doc"
76    }
77}
78
79livecheck.type      regex
80livecheck.url       ${homepage}
81livecheck.regex     "${name}-(\\d+\\.\\d+\\.\\d+)"
Note: See TracBrowser for help on using the repository browser.