# $Id: Portfile 68949 2010-06-18 16:09:24Z singingwolfboy@macports.org $

PortSystem          1.0
PortGroup           ruby 1.0

ruby.setup          cheat 1.2.1 gem {} rubygems ruby19
revision            1
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         singingwolfboy openmaintainer
homepage            http://cheat.errtheblog.com/
platforms           darwin
checksums           md5     a22937c5c441569138a89b7d55dfe220 \
                    sha1    30395722979b89290c8566b74f0d2b20cccd4fa4 \
                    rmd160  2002d036c2c2e037a37f888a56fa92f412f7189d

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