Ticket #37622: Portfile-thieriot.diff

File Portfile-thieriot.diff, 1.3 KB (added by rod@…, 12 years ago)
  • (a) - vs. (b) macports/Portfile

    a b  
    44PortSystem          1.0
    55PortGroup           github 1.0
    66
    7 github.setup        rodnaph thieriot 0.1.0 v
     7github.setup        rodnaph thieriot 0.2.0 v
    88categories          devel shells
    99platforms           darwin
    1010maintainers         pu-gh.com:rod
     
    1919                    port:p5.12-json \
    2020                    port:p5.12-libwww-perl
    2121
    22 checksums           rmd160  1a2b691fd6d8d212180dc690694f21871f04f4c4 \
    23                     sha256  935486d52e68bd3f2ae9ff683af4f034616cfc4a892ea5a65617bef799931dd8
     22checksums           rmd160  c1270036eee9eec687035c180c4a5024793116b4 \
     23                    sha256  eb04451c94e270693fe5690c38cc4fbfaff01b4a2f7e8a191f9dff9b18868aa1
    2424
    2525use_configure       no
    2626supported_archs     noarch
    2727
     28post-patch {
     29    reinplace       "s&#!/usr/bin/env perl&#!${prefix}/bin/perl5.12&" ${worksrcpath}/trt
     30}
     31
    2832build               {}
    2933
    30 destroot            { xinstall -m 755 ${worksrcpath}/trt \
    31                                       ${destroot}${prefix}/bin/trt }
     34destroot            {
     35    xinstall -m 0755 ${worksrcpath}/trt \
     36        ${destroot}${prefix}/bin/trt
     37    xinstall -d ${destroot}${prefix}/share/doc/${name}
     38    xinstall -m 0644 ${worksrcpath}/LICENSE \
     39        ${destroot}${prefix}/share/doc/${name}
     40}
    3241