Ticket #36383: Portfile.py-moin.diff

File Portfile.py-moin.diff, 2.0 KB (added by mndavidoff (Monte Davidoff), 12 years ago)
  • Portfile

    old new  
     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
    12# $Id: Portfile 49731 2009-04-17 00:24:08Z raimue@macports.org $
    23
    3 PortSystem 1.0
    4 PortGroup python25 1.0
     4PortSystem          1.0
     5PortGroup           python 1.0
    56
    6 name                moin
    7 version             1.8.2
    8 categories          www python
    9 platforms           darwin
     7name                py-moin
     8version             1.9.5
     9categories-append   www
    1010maintainers         nomaintainer
     11license             GPL-2+
     12platforms           darwin
    1113description         a Python-based WikiEngine
    1214long_description    MoinMoin is an advanced, easy to use \
    1315                    and extensible WikiEngine with a large \
    1416                    community of users. Said in a few words, \
    1517                    it is about collaboration on easily \
    16                     editable web pages. MoinMoin is \
    17                     Free Software licensed under the GNU GPL.
     18                    editable web pages.
    1819
    1920homepage            http://moinmo.in/
    2021master_sites        http://static.moinmo.in/files/
    21 checksums           md5 b3ced56bbe09311a7c56049423214cdb
     22distname            moin-${version}
     23checksums           rmd160  7cbc818109691a4ee2b65906fe67a010ca862900 \
     24                    sha256  74e1d1420723aaf202f46082540524987f47c40a444f8444d58d57c66324811c
     25
     26python.versions     25 26 27
     27python.default_version 27
    2228
    23 post-destroot {
    24     set docdir ${prefix}/share/doc/${name}
    25     xinstall -m 644 -W ${worksrcpath} README ${destroot}/${docdir}
    26     copy ${worksrcpath}/docs ${destroot}${docdir}
     29if {$subport != $name} {
     30    post-destroot {
     31        set docdir ${prefix}/share/doc/${subport}
     32        xinstall -m 644 -W ${worksrcpath} README ${destroot}${docdir}
     33        copy ${worksrcpath}/docs ${destroot}${docdir}
     34        system "chmod -R a+r ${destroot}${python.prefix}/share/moin/underlay/pages"
     35    }
    2736}