[106485] trunk/dports/python
jmr at macports.org
jmr at macports.org
Mon May 27 20:05:18 PDT 2013
Revision: 106485
https://trac.macports.org/changeset/106485
Author: jmr at macports.org
Date: 2013-05-27 20:05:18 -0700 (Mon, 27 May 2013)
Log Message:
-----------
py26-cog: use unified portgroup, license, noarch
Modified Paths:
--------------
trunk/dports/python/py-cog/Portfile
Added Paths:
-----------
trunk/dports/python/py-cog/
Removed Paths:
-------------
trunk/dports/python/py26-cog/
Modified: trunk/dports/python/py-cog/Portfile
===================================================================
--- trunk/dports/python/py26-cog/Portfile 2013-05-27 22:13:05 UTC (rev 106483)
+++ trunk/dports/python/py-cog/Portfile 2013-05-28 03:05:18 UTC (rev 106485)
@@ -2,10 +2,11 @@
# $Id$
PortSystem 1.0
-PortGroup python26 1.0
+PortGroup python 1.0
-name py26-cog
+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 \
@@ -13,21 +14,27 @@
long_description ${description}
platforms darwin
+supported_archs noarch
homepage http://nedbatchelder.com/code/cog/
-master_sites http://bitbucket.org/ned/cog/get/
+#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
-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-2.6
- file delete ${destroot}${python.prefix}/bin/test_cog.py
+python.versions 26
- # how can we test if there is anything left?
+if {$subport != $name} {
+ 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?
+ }
}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130527/6c3ca688/attachment.html>
More information about the macports-changes
mailing list