Ticket #40135: multimarkdown.patch

File multimarkdown.patch, 1.3 KB (added by 521E328E-2A13-4749-826A-E4EF4F22A0F1@…, 11 years ago)
  • Portfile

     
    33PortSystem          1.0
    44PortGroup           github 1.0
    55
    6 github.setup        fletcher peg-multimarkdown 3.7
     6github.setup        fletcher MultiMarkdown-4 4.2.1
    77name                multimarkdown
    88categories          textproc
    99license             GPL-2+ MIT
     
    3030fetch.type          git
    3131
    3232post-fetch {
    33     system -W ${worksrcpath} "git submodule init"
    34     reinplace "s|git://|https://|" ${worksrcpath}/.git/config
    35     system -W ${worksrcpath} "git submodule update"
     33    system -W ${worksrcpath} "git submodule update --init"
    3634}
    3735
    3836use_configure       no
    3937
    4038variant universal {}
    41 build.args          CC="${configure.cc} [get_canonical_archflags]"
     39build.target
    4240
    43 # "make docs" builds multimarkdown as a dependency
    44 build.target        docs
    45 
    4641destroot {
    4742    xinstall ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    48     # documentation
    49     xinstall -d ${destroot}${prefix}/share/doc
    50     delete ${worksrcpath}/documentation/.git
    51     move ${worksrcpath}/documentation ${destroot}${prefix}/share/doc/${name}
    5243}
    53 
    54 depends_build       port:pkgconfig
    55 depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
    56                     port:gettext