Ticket #44405: Portfile-ghsum.diff
File Portfile-ghsum.diff, 1.9 KB (added by rod@…, 10 years ago) |
---|
-
(a) - vs. (b) macports/Portfile
a b 4 4 PortSystem 1.0 5 5 PortGroup github 1.0 6 6 7 github.setup rodnaph ghsum 0.1. 0v8 categories devel shells macports7 github.setup rodnaph ghsum 0.1.1 v 8 categories devel shells 9 9 platforms darwin 10 10 maintainers pu-gh.com:rod 11 11 license 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. 12 description Helper to checksum Github tags 13 long_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 19 17 20 18 depends_lib port:wget \ 21 19 port:openssl \ 22 port:p5.1 2-getopt-long-descriptive20 port:p5.16-getopt-long-descriptive 23 21 24 22 checksums rmd160 8135a086a7ba075d5ce3596caaa46cd21705bb64 \ 25 23 sha256 863ce994a8a9a276f3ea8a6a395b33015540cccf08c8e419223aa8253ed42eb2 26 24 27 25 use_configure no 26 supported_archs noarch 28 27 29 28 post-patch { 30 reinplace "s&#!/usr/bin/env perl&#!${prefix}/bin/perl5.1 2&" ${worksrcpath}/ghsum29 reinplace "s&#!/usr/bin/env perl&#!${prefix}/bin/perl5.16&" ${worksrcpath}/ghsum 31 30 } 32 31 33 32 build {} 34 33 35 destroot {34 destroot { 36 35 xinstall -m 0755 ${worksrcpath}/ghsum \ 37 36 ${destroot}${prefix}/bin/ghsum 38 37 xinstall -d ${destroot}${prefix}/share/doc/${name} 39 xinstall -m 0644 ${worksrcpath}/ README.md\38 xinstall -m 0644 ${worksrcpath}/LICENSE \ 40 39 ${destroot}${prefix}/share/doc/${name} 41 40 } 41