# -*- 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 python 1.0 name py-cog version 2.2 license MIT maintainers dh openmaintainer description Cog is a code generation tool. It lets you use pieces of Python \ code as generators in your source files to generate whatever code \ you need. long_description ${description} platforms darwin supported_archs noarch homepage http://nedbatchelder.com/code/cog/ #master_sites https://pypi.python.org/packages/source/c/cogapp/ master_sites http://distfiles.macports.org/python/ #distname cogapp-${version} distfiles cogapp-${version}.gz worksrcdir cog checksums md5 0204039c3acd9a7edfce1e64f695ebf9 \ sha1 91aa5e76ba012da801edb23ad312a7fabb7b9bbf \ rmd160 027b07303f2c78dc56569fb132e2190d2e9e648a python.versions 26 if {${name} ne ${subport}} { post-destroot { # setup ends up creating a bin directory down in the Framework folder, move things from it ... file rename ${destroot}${python.prefix}/bin/cog.py ${destroot}${prefix}/bin/cog-${python.branch} file delete ${destroot}${python.prefix}/bin/test_cog.py # how can we test if there is anything left? } }