Ticket #44405: Portfile-ghsum.2.diff

File Portfile-ghsum.2.diff, 2.1 KB (added by rod@…, 10 years ago)
  • (a) - vs. (b) macports/Portfile

    a b  
    44PortSystem          1.0
    55PortGroup           github 1.0
    66
    7 github.setup        rodnaph ghsum 0.1.0 v
    8 categories          devel shells macports
     7github.setup        rodnaph ghsum 0.1.1 v
     8categories          devel shells
    99platforms           darwin
    1010maintainers         pu-gh.com:rod
    1111license             MIT
    12 supported_archs     noarch
    13 
    14 description         Helper to checksum GitHub tags
    15 
    16 long_description    ghsum allows you to easily print MacPorts checksums for tagged \
    17                     versions of your project on GitHub (or branches as well). This \
    18                     can be useful for updating Portfiles.
     12description         Helper to checksum Github tags
     13long_description    \
     14    ghsum allows you to easily print Macports checksums for tagged \
     15    versions of your project on Github (or branches as well). This \
     16    can be useful for updating Portfiles
    1917
    2018depends_lib         port:wget \
    2119                    port:openssl \
    22                     port:p5.12-getopt-long-descriptive
     20                    port:p5.16-getopt-long-descriptive
    2321
    24 checksums           rmd160 8135a086a7ba075d5ce3596caaa46cd21705bb64 \
    25                     sha256 863ce994a8a9a276f3ea8a6a395b33015540cccf08c8e419223aa8253ed42eb2
     22checksums           rmd160 2b3f70d6afbc298c58d430762022090813a4d341 \
     23                    sha256 fbec71eb31e41617c7081651e02672bf2efed32404f423d6d765d059e9d5ea6e
    2624
    2725use_configure       no
     26supported_archs     noarch
    2827
    2928post-patch {
    30     reinplace       "s&#!/usr/bin/env perl&#!${prefix}/bin/perl5.12&" ${worksrcpath}/ghsum
     29    reinplace       "s&#!/usr/bin/env perl&#!${prefix}/bin/perl5.16&" ${worksrcpath}/ghsum
    3130}
    3231
    3332build               {}
    3433
    35 destroot {
     34destroot            {
    3635    xinstall -m 0755 ${worksrcpath}/ghsum \
    3736        ${destroot}${prefix}/bin/ghsum
    3837    xinstall -d ${destroot}${prefix}/share/doc/${name}
    39     xinstall -m 0644 ${worksrcpath}/README.md \
     38    xinstall -m 0644 ${worksrcpath}/LICENSE \
    4039        ${destroot}${prefix}/share/doc/${name}
    4140}
     41