Ticket #37617: Portfile

File Portfile, 1.3 KB (added by rod@…, 11 years ago)
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$
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        rodnaph ghsum 0.0.1 v
8categories          devel shells
9platforms           darwin
10maintainers         pu-gh.com:rod
11license             MIT
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
17
18depends_lib         port:wget \
19                    port:openssl \
20                    port:p5.12-getopt-long-descriptive
21
22checksums           rmd160 8135a086a7ba075d5ce3596caaa46cd21705bb64 \
23                    sha256 863ce994a8a9a276f3ea8a6a395b33015540cccf08c8e419223aa8253ed42eb2
24
25use_configure       no
26supported_archs     noarch
27
28post-patch {
29    reinplace       "s&#!/usr/bin/env perl&#!${prefix}/bin/perl5.12&" ${worksrcpath}/ghsum
30}
31
32build               {}
33
34destroot            {
35    xinstall -m 0755 ${worksrcpath}/ghsum \
36        ${destroot}${prefix}/bin/ghsum
37    xinstall -d ${destroot}${prefix}/share/doc/${name}
38    xinstall -m 0644 ${worksrcpath}/LICENSE \
39        ${destroot}${prefix}/share/doc/${name}
40}
41