# $Id: Portfile 106535 2013-05-30 07:47:25Z kimuraw@macports.org $

PortSystem          1.0
PortGroup           ruby 1.0

ruby.setup          cheat 1.2.1 gem {} rubygems ruby19
revision            2
description         Cheat sheets in your terminal
long_description    \
    Cheat is a simple command line utility reference program that prints \
    cheat sheets in your terminal.
license             MIT
maintainers         nomaintainer
homepage            http://cheat.errtheblog.com/
platforms           darwin
checksums           md5     a22937c5c441569138a89b7d55dfe220 \
                    sha1    30395722979b89290c8566b74f0d2b20cccd4fa4 \
                    rmd160  2002d036c2c2e037a37f888a56fa92f412f7189d

post-destroot {
  set gemdir ${destroot}${ruby.gemdir}/gems/${ruby.project}-${version}/
  system "cd ${gemdir} && patch -p1 < ${portpath}/files/cheat.patch"
}
