# -*- 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
# $Id$

PortSystem          1.0
PortGroup           github 1.0

github.setup        rodnaph pearl 0.1.0 v
categories          devel shells macports
platforms           darwin
maintainers         pu-gh.com:rod
license             MIT
description         Helper for maintaining Macports Portfiles
long_description    \
    Pearl is a super-simple script to make it a little bit easier to update your \
    Macports Portfile for your project. It just automates the diffing of your \
    current Portfile with the release version from the Macports SVN repository.

depends_lib         port:p5.12-ipc-run \
                    port:p5.12-getopt-long-descriptive \
                    port:p5.12-yaml \
                    port:p5.12-lwp-useragent-determined

checksums           rmd160 5e66afbed0a0c86a100e7525dc3409a753fa6a4c \
                    sha256 87a64a95904e06ef086c5693e7da24ddfb4365f50dcaaa482db266a71f59a1f1

use_configure       no
supported_archs     noarch

post-patch {
    reinplace       "s&#!/usr/bin/env perl&#!${prefix}/bin/perl5.12&" ${worksrcpath}/pearl
}

build               {}

destroot            {
    xinstall -m 0755 ${worksrcpath}/pearl \
        ${destroot}${prefix}/bin/pearl
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 ${worksrcpath}/LICENSE \
        ${destroot}${prefix}/share/doc/${name}
}

