[101145] trunk/dports/python
jmr at macports.org
jmr at macports.org
Sat Jan 5 02:39:22 PST 2013
Revision: 101145
https://trac.macports.org/changeset/101145
Author: jmr at macports.org
Date: 2013-01-05 02:39:22 -0800 (Sat, 05 Jan 2013)
Log Message:
-----------
py*-smisk: unify
Modified Paths:
--------------
trunk/dports/python/py-smisk/Portfile
Removed Paths:
-------------
trunk/dports/python/py25-smisk/
trunk/dports/python/py26-smisk/
Modified: trunk/dports/python/py-smisk/Portfile
===================================================================
--- trunk/dports/python/py-smisk/Portfile 2013-01-05 10:25:10 UTC (rev 101144)
+++ trunk/dports/python/py-smisk/Portfile 2013-01-05 10:39:22 UTC (rev 101145)
@@ -1,12 +1,13 @@
# $Id$
PortSystem 1.0
-PortGroup python24 1.0
+PortGroup python 1.0
name py-smisk
version 1.1.6
revision 0
categories python www
+license MIT BSD
platforms darwin
maintainers rasmus
@@ -15,32 +16,39 @@
in C but controlled by Python.
homepage http://python-smisk.org/
-master_sites http://python-smisk.org/dist/
+master_sites http://python-smisk.org/dist/ \
+ http://distfiles.macports.org/python/
distname smisk-${version}
checksums sha1 e0b1f278816c03967f178b63659f20cf40ec17b4
-depends_lib-append port:fcgi \
- port:py24-distribute \
- port:py24-readline \
- port:py-elixir \
- port:py-mako \
- port:py24-yaml
+python.versions 24 25 26
-variant minimal description {Minimize number of dependencies} {
- # Smisk will tell the user when she is trying to use a part of Smisk which
- # requires a certain module which is not available, thus no extra
- # configuration is required.
- depends_lib-delete port:py24-readline \
- port:py-elixir \
- port:py24-mako \
- port:py24-yaml
-}
+if {$subport != $name} {
+ depends_lib-append port:fcgi \
+ port:py${python.version}-cjson \
+ port:py${python.version}-distribute \
+ port:py${python.version}-elixir \
+ port:py${python.version}-mako \
+ port:py${python.version}-readline \
+ port:py${python.version}-yaml
-build.env-append SMISK_BUILD_ID_SUFFIX=:macports:${revision}
-build.args-append -f
+ variant minimal description {Minimize number of dependencies} {
+ # Smisk will tell the user when she is trying to use a part of Smisk which
+ # requires a certain module which is not available, thus no extra
+ # configuration is required.
+ depends_lib-delete port:py${python.version}-cjson \
+ port:py${python.version}-elixir \
+ port:py${python.version}-mako \
+ port:py${python.version}-readline \
+ port:py${python.version}-yaml
+ }
-post-destroot {
- xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
- xinstall -m 644 -W ${worksrcpath} LICENSE README.rst CHANGELOG.rst ${destroot}${prefix}/share/doc/${name}
- copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${name}/examples
+ build.env-append SMISK_BUILD_ID_SUFFIX=:macports:${revision}
+ build.args-append -f
+
+ post-destroot {
+ xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+ xinstall -m 644 -W ${worksrcpath} LICENSE README.rst CHANGELOG.rst ${destroot}${prefix}/share/doc/${subport}
+ copy ${worksrcpath}/examples ${destroot}${prefix}/share/doc/${subport}/examples
+ }
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130105/740643cf/attachment.html>
More information about the macports-changes
mailing list