# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=portfile:et:sw=4:ts=4:sts=4
# $Id: Portfile 97120 2012-08-27 21:48:47Z ryandesign@macports.org $

PortSystem          1.0
PortGroup           github 1.0
PortGroup           xcode 1.0

github.setup        rentzsch mogenerator 1.26
categories          devel
platforms           darwin
maintainers         francisco-garcia.net:public+macports
license             MIT

description         Core Data code generation

long_description    mogenerator is a command-line tool that, given an \
                    .xcdatamodel file, will generate two classes per entity. The \
                    first class, _MyEntity, is intended solely for machine \
                    consumption and will be continuously overwritten to stay in \
                    sync with your data model. The second class, MyEntity, \
                    subclasses _MyEntity, won't ever be overwritten and is \
                    a great place to put your custom logic.

homepage            http://rentzsch.github.com/mogenerator/

checksums           md5     cc761752cc581188e1065bd0919ad4c3 \
                    rmd160  7c46aaa067338d04fcf46d652b0fdbfe1b34927a \
                    sha256  d602e3fd8afbe585cde48050d9ba0184cdb4c51941cdfd0f5a304f3283c68ebe

destroot {
    xinstall ${worksrcpath}/build/Release/mogenerator ${destroot}${prefix}/bin
    
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        README.markdown \
        ${destroot}${docdir}
}
