Ticket #32429: Portfile-nodejs.diff
File Portfile-nodejs.diff, 1.6 KB (added by spreng@…, 13 years ago) |
---|
-
Portfile
old new 27 27 28 28 distname node-v${version} 29 29 30 depends_lib port:python27 30 set py_bin "" 31 32 variant python26 conflicts python27 description {Use python 2.6} { 33 depends_lib-append port:python26 34 set py_bin ${prefix}/bin/python2.6 35 } 36 37 variant python27 conflicts python26 description {Use python 2.7} { 38 depends_lib-append port:python27 39 set py_bin ${prefix}/bin/python2.6 40 } 41 42 if {![variant_isset python26]} { 43 default_variants +python27 44 } 31 45 32 46 patchfiles patch-Makefile-python.diff \ 33 47 patch-wscript-npm.diff … … 40 54 return $files 41 55 } 42 56 43 set py27_bin ${prefix}/bin/python2.744 45 57 post-patch { 46 58 foreach f [concat ${worksrcpath}/wscript \ 47 59 ${worksrcpath}/configure-gyp \ … … 51 63 ${worksrcpath}/tools/gyp_node \ 52 64 ${worksrcpath}/deps/uv/gyp_uv \ 53 65 [rec_glob ${worksrcpath} *.py]] { 54 reinplace "s|/usr/bin/env python|${py 27_bin}|" ${f}66 reinplace "s|/usr/bin/env python|${py_bin}|" ${f} 55 67 } 56 68 } 57 69 … … 83 95 CXX=${configure.cxx} \ 84 96 CFLAGS="${configure.cflags} ${configure.cc_archflags}" \ 85 97 LDFLAGS="${configure.ldflags} ${configure.ld_archflags}" \ 86 PYTHON=${py 27_bin}98 PYTHON=${py_bin} 87 99 88 100 post-destroot { 89 101 set docdir ${destroot}${prefix}/share/doc/${name}