[82932] trunk/dports/python

blb at macports.org blb at macports.org
Sun Aug 21 20:49:19 PDT 2011


Revision: 82932
          http://trac.macports.org/changeset/82932
Author:   blb at macports.org
Date:     2011-08-21 20:49:14 -0700 (Sun, 21 Aug 2011)
Log Message:
-----------
python/py-tweepy: move from py26-tweepy and add a 2.7 subport; fix homepage

Modified Paths:
--------------
    trunk/dports/python/py-tweepy/Portfile

Added Paths:
-----------
    trunk/dports/python/py-tweepy/

Removed Paths:
-------------
    trunk/dports/python/py26-tweepy/

Modified: trunk/dports/python/py-tweepy/Portfile
===================================================================
--- trunk/dports/python/py26-tweepy/Portfile	2011-08-21 21:23:41 UTC (rev 82897)
+++ trunk/dports/python/py-tweepy/Portfile	2011-08-22 03:49:14 UTC (rev 82932)
@@ -1,9 +1,9 @@
 # $Id$
 
 PortSystem          1.0
-PortGroup           python26 1.0
+PortGroup           python 1.0
 set pymodname       tweepy
-name                py26-${pymodname}
+name                py-${pymodname}
 version             1.7.1
 revision            1
 categories-append   devel net
@@ -16,7 +16,7 @@
 platforms           darwin
 supported_archs     noarch
 
-homepage            http://github.com/joshthecoder/${pymodname}
+homepage            http://${pymodname}.github.com/
 master_sites        http://pypi.python.org/packages/source/t/${pymodname}/
 distname            ${pymodname}-${version}
 
@@ -24,12 +24,17 @@
                     sha1    dfd15e00bb8edd5e0f77cf4ccd90cf88f8f1ab65 \
                     rmd160  3741c895d7352644d463218fd5fd2e492bd457b9
 
-post-destroot {
-   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
-   xinstall -m 644 -W ${worksrcpath} README \
-      ${destroot}${prefix}/share/doc/${name}
+if {${name} != ${subport}} {
+   post-destroot {
+      xinstall -m 755 -d ${destroot}${prefix}/share/doc/${subport}
+      xinstall -m 644 -W ${worksrcpath} README \
+         ${destroot}${prefix}/share/doc/${subport}
+   }
 }
 
+python.default_version   27
+python.versions     26 27
+
 livecheck.type      regex
 livecheck.url       [lindex ${master_sites} 0]
 livecheck.regex     ${pymodname}-(\[.\\d\]+)\\.tar\\.gz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110821/16b0623c/attachment.html>


More information about the macports-changes mailing list