[97880] trunk/dports/devel

ciserlohn at macports.org ciserlohn at macports.org
Tue Sep 18 11:51:54 PDT 2012


Revision: 97880
          http://trac.macports.org//changeset/97880
Author:   ciserlohn at macports.org
Date:     2012-09-18 11:51:54 -0700 (Tue, 18 Sep 2012)
Log Message:
-----------
nodejs, nodejs-devel: let gyp use the python version from the chosen variant (fixes #36190)

Modified Paths:
--------------
    trunk/dports/devel/nodejs/Portfile
    trunk/dports/devel/nodejs-devel/Portfile

Modified: trunk/dports/devel/nodejs/Portfile
===================================================================
--- trunk/dports/devel/nodejs/Portfile	2012-09-18 17:29:37 UTC (rev 97879)
+++ trunk/dports/devel/nodejs/Portfile	2012-09-18 18:51:54 UTC (rev 97880)
@@ -51,6 +51,9 @@
                    [rec_glob ${worksrcpath} *.py]] {
         reinplace "s|/usr/bin/env python|${configure.python}|" ${f}
     }
+    foreach gypfile [rec_glob ${worksrcpath} *.gyp] {
+        reinplace "s|'python'|'${configure.python}'|" ${gypfile}
+    }
     reinplace "s|/usr/bin/env node|${prefix}/bin/node|" ${worksrcpath}/tools/doc/node_modules/marked/bin/marked
 }
 

Modified: trunk/dports/devel/nodejs-devel/Portfile
===================================================================
--- trunk/dports/devel/nodejs-devel/Portfile	2012-09-18 17:29:37 UTC (rev 97879)
+++ trunk/dports/devel/nodejs-devel/Portfile	2012-09-18 18:51:54 UTC (rev 97880)
@@ -47,6 +47,9 @@
                    [rec_glob ${worksrcpath} *.py]] {
         reinplace "s|/usr/bin/env python|${configure.python}|" ${f}
     }
+    foreach gypfile [rec_glob ${worksrcpath} *.gyp] {
+        reinplace "s|'python'|'${configure.python}'|" ${gypfile}
+    }
     reinplace "s|/usr/bin/env node|${prefix}/bin/node|" ${worksrcpath}/tools/doc/node_modules/marked/bin/marked
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120918/8ae61310/attachment-0001.html>


More information about the macports-changes mailing list