[98315] trunk/dports/python/py-google-api/Portfile

ryandesign at macports.org ryandesign at macports.org
Tue Oct 2 16:57:49 PDT 2012


Revision: 98315
          http://trac.macports.org//changeset/98315
Author:   ryandesign at macports.org
Date:     2012-10-02 16:57:49 -0700 (Tue, 02 Oct 2012)
Log Message:
-----------
py-google-api: fix stub port by moving post-destroot block inside {$subport != $name} block.

Modified Paths:
--------------
    trunk/dports/python/py-google-api/Portfile

Modified: trunk/dports/python/py-google-api/Portfile
===================================================================
--- trunk/dports/python/py-google-api/Portfile	2012-10-02 21:45:36 UTC (rev 98314)
+++ trunk/dports/python/py-google-api/Portfile	2012-10-02 23:57:49 UTC (rev 98315)
@@ -1,3 +1,4 @@
+# -*- 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
@@ -22,21 +23,21 @@
 master_sites        googlecode:${realname}
 distname            ${realname}-${version}
 
-post-destroot {
-    delete ${destroot}${python.pkgd}/uritemplate
-    delete ${destroot}${python.pkgd}/oauth2client
-
-    set egg-info ${destroot}${python.pkgd}/google_api_python_client-${version}-py${python.branch}.egg-info
-    foreach d [glob -dir ${egg-info} *] {
-        file attributes ${d} -permissions 0644
-    }
-}
-
 if {$subport != $name} {
     depends_lib-append      port:py${python.version}-httplib2 \
                             port:py${python.version}-gflags \
                             port:py${python.version}-uritemplate \
                             port:py${python.version}-oauth2client
+    
+    post-destroot {
+        delete ${destroot}${python.pkgd}/uritemplate
+        delete ${destroot}${python.pkgd}/oauth2client
+        
+        set egg-info ${destroot}${python.pkgd}/google_api_python_client-${version}-py${python.branch}.egg-info
+        foreach d [glob -dir ${egg-info} *] {
+            file attributes ${d} -permissions 0644
+        }
+    }
 }
 
 subport py25-google-api {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121002/a47d6512/attachment.html>


More information about the macports-changes mailing list