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

Last change on this file since 29510 was 29510, checked in by boeyms@…, 13 years ago

stgit: Fix for destroot bug reported in #12776.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 29510 2007-09-26 08:11:48Z boeyms@macports.org $
2
3PortSystem          1.0
4PortGroup           python24 1.0
5name                stgit
6version             0.13
7categories          devel python
8maintainers         boeyms openmaintainer
9description         Push/pop utility on top of GIT
10long_description    StGIT is a Python application providing similar \
11                    functionality to Quilt (i.e. pushing/popping patches \
12                    to/from a stack) on top of GIT. These operations are \
13                    performed using GIT commands and the patches are stored \
14                    as GIT commit objects, allowing easy merging of the StGIT \
15                    patches into other repositories using standard GIT \
16                    functionality. \
17                    Note that StGIT is not an SCM interface on top of GIT and \
18                    it expects a previously initialised GIT repository \
19                    (unless it is cloned using StGIT directly). For standard \
20                    SCM operations, either use plain GIT commands or the \
21                    Cogito tool but it is not recommended to mix them with \
22                    the StGIT commands.
23homepage            http://www.procode.org/stgit/
24master_sites        http://homepage.ntlworld.com/cmarinas/stgit/ \
25                    http://download.gna.org/stgit/
26checksums           md5     deef5e864e465c13c92ac5c9f5a45700 \
27                    sha1    0a2d7b8e5fc09f3ea7f62dbcd57881ea51d7595a \
28                    rmd160  aba40517731b63e20645cd9596d96b7ca5943ab7
29
30depends_run         port:git-core
31
32set stgdocs     "${worksrcpath}/Documentation/\\\[a-z\\\]*.txt"
33set stgman      ""
34
35post-destroot {
36    # Install what little documentation there is
37    xinstall -m 644 -W ${worksrcpath} COPYING README \
38        ${destroot}/${prefix}/share/doc/${name}
39    eval xinstall -m 644 [eval glob ${stgdocs}] \
40        ${destroot}/${prefix}/share/doc/${name}
41    if {${stgman} != ""} {
42        eval xinstall -m 644 [eval glob ${stgman}] \
43            ${destroot}/${prefix}/share/man/man1
44    }
45}
46
47variant html_man_docs \
48    description {Build and install documentation in HTML and manpage format} {
49    #upvar stgdocs stgman
50    # Need to add post-destroot addition of extra docs...
51    lappend stgdocs ${worksrcpath}/Documentation/*.html
52    lappend stgman ${worksrcpath}/Documentation/*.1
53    depends_build-append    port:asciidoc port:xmlto
54    post-build {
55        system "cd ${worksrcpath} && make doc"
56    }
57}
Note: See TracBrowser for help on using the repository browser.