source: trunk/dports/devel/ghsum/Portfile

Last change on this file was 154105, checked in by mojca@…, 13 months ago

ghsum: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
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
2# $Id: Portfile 154105 2016-10-20 03:26:55Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6PortGroup           perl5 1.0
7
8github.setup        rodnaph ghsum 0.1.0 v
9revision            4
10perl5.branches      5.24
11categories          devel shells macports
12platforms           darwin
13maintainers         pu-gh.com:rod
14license             MIT
15supported_archs     noarch
16
17description         Helper to checksum GitHub tags
18
19long_description    ghsum allows you to easily print MacPorts checksums for tagged \
20                    versions of your project on GitHub (or branches as well). This \
21                    can be useful for updating Portfiles.
22
23depends_lib         port:wget \
24                    path:lib/libssl.dylib:openssl \
25                    port:p${perl5.major}-getopt-long-descriptive
26
27checksums           rmd160 8135a086a7ba075d5ce3596caaa46cd21705bb64 \
28                    sha256 863ce994a8a9a276f3ea8a6a395b33015540cccf08c8e419223aa8253ed42eb2
29
30use_configure       no
31
32post-patch {
33    reinplace       "s&#!/usr/bin/env perl&#!${perl5.bin}&" ${worksrcpath}/ghsum
34}
35
36build               {}
37
38destroot {
39    xinstall -m 0755 ${worksrcpath}/ghsum \
40        ${destroot}${prefix}/bin/ghsum
41    xinstall -d ${destroot}${prefix}/share/doc/${name}
42    xinstall -m 0644 ${worksrcpath}/README.md \
43        ${destroot}${prefix}/share/doc/${name}
44}
Note: See TracBrowser for help on using the repository browser.