source: trunk/dports/devel/stgit/Portfile

Last change on this file was 142815, checked in by jmr@…, 22 months ago

various ports: remove redundant clearing of python.link_binaries_suffix, the portgroup now handles this

  • 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 142815 2015-11-24 03:22:35Z 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
51post-destroot {
52    move ${destroot}${python.prefix}/share/stgit/ \
53        ${destroot}${prefix}/share/
54
55    # Install what little documentation there is
56    xinstall -m 644 -W ${worksrcpath} COPYING README \
57        ${destroot}${prefix}/share/doc/${name}
58    eval xinstall -m 644 [eval glob ${stgdocs}] \
59        ${destroot}${prefix}/share/doc/${name}
60    if {${stgman} != ""} {
61        eval xinstall -m 644 [eval glob ${stgman}] \
62            ${destroot}${prefix}/share/man/man1
63    }
64}
65
66variant html_man_docs \
67    description {Build and install documentation in HTML and manpage format} {
68    # Need to add post-destroot addition of extra docs...
69    lappend stgdocs ${worksrcpath}/Documentation/*.html
70    lappend stgman ${worksrcpath}/Documentation/*.1
71    depends_build-append    port:asciidoc port:xmlto
72    post-build {
73        system -W ${worksrcpath} "PYTHON=${prefix}/bin/python2.7 make all doc"
74    }
75}
76
77livecheck.type      regex
78livecheck.url       ${homepage}
79livecheck.regex     "${name}-(\\d+\\.\\d+\\.\\d+)"
Note: See TracBrowser for help on using the repository browser.