[82175] trunk/dports/devel

ciserlohn at macports.org ciserlohn at macports.org
Tue Aug 9 15:33:26 PDT 2011


Revision: 82175
          http://trac.macports.org/changeset/82175
Author:   ciserlohn at macports.org
Date:     2011-08-09 15:33:26 -0700 (Tue, 09 Aug 2011)
Log Message:
-----------
nodejs, nodejs-devel: make python a runtime dependency (needed by node-waf), install doc files (see #30673), removed old comment, bump revision

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

Modified: trunk/dports/devel/nodejs/Portfile
===================================================================
--- trunk/dports/devel/nodejs/Portfile	2011-08-09 22:25:59 UTC (rev 82174)
+++ trunk/dports/devel/nodejs/Portfile	2011-08-09 22:33:26 UTC (rev 82175)
@@ -5,6 +5,7 @@
 
 name                    nodejs
 version                 0.4.10
+revision                1
 categories              devel net
 platforms               darwin
 maintainers             ciserlohn
@@ -26,7 +27,7 @@
 
 distname                node-v${version}
 
-depends_build           port:python27
+depends_lib             port:python27
 
 patchfiles              patch-Makefile-python.diff \
                         patch-platform.diff
@@ -78,21 +79,23 @@
 
 test.run                yes
 
-# TODO: Fix the doc installation
-#variant doc description {Build and install manpages} {
-#    use_configure   no
-#    build {}
-#    destroot.target doc install
-#
-#    depends_lib-append      port:asciidoc \
-#                            port:libxslt
-#}
-
 build.args-append   CC=${configure.cc} \
                     CXX=${configure.cxx} \
                     CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
                     LDFLAGS="${configure.ldflags} ${configure.ld_archflags}" \
                     PYTHON=${py27_bin}
 
+post-destroot {
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${docdir}
+    xinstall -m 644 -W ${worksrcpath} \
+        AUTHORS \
+        ChangeLog \
+        LICENSE \
+        README.md \
+        TODO \
+        ${docdir}
+}
+
 livecheck.type      regex
 livecheck.regex     node-v(\\d+\\.\[02468\]+\\.\\d+)

Modified: trunk/dports/devel/nodejs-devel/Portfile
===================================================================
--- trunk/dports/devel/nodejs-devel/Portfile	2011-08-09 22:25:59 UTC (rev 82174)
+++ trunk/dports/devel/nodejs-devel/Portfile	2011-08-09 22:33:26 UTC (rev 82175)
@@ -5,6 +5,7 @@
 
 name                    nodejs-devel
 version                 0.5.3
+revision                1
 categories              devel net
 platforms               darwin
 maintainers             ciserlohn
@@ -26,7 +27,7 @@
 
 distname                node-v${version}
 
-depends_build           port:python27
+depends_lib             port:python27
 
 patchfiles              patch-Makefile-python.diff
 
@@ -77,21 +78,23 @@
 
 test.run                yes
 
-# TODO: Fix the doc installation
-#variant doc description {Build and install manpages} {
-#    use_configure   no
-#    build {}
-#    destroot.target doc install
-#
-#    depends_lib-append      port:asciidoc \
-#                            port:libxslt
-#}
-
 build.args-append   CC=${configure.cc} \
                     CXX=${configure.cxx} \
                     CFLAGS="${configure.cflags} ${configure.cc_archflags}" \
                     LDFLAGS="${configure.ldflags} ${configure.ld_archflags}" \
                     PYTHON=${py27_bin}
 
+post-destroot {
+    set docdir ${destroot}${prefix}/share/doc/${name}
+    xinstall -d ${docdir}
+    xinstall -m 644 -W ${worksrcpath} \
+        AUTHORS \
+        ChangeLog \
+        LICENSE \
+        README.md \
+        TODO \
+        ${docdir}
+}
+
 livecheck.type      regex
 livecheck.regex     node-v(\\d+\\.\[13579\]+\\.\\d+)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110809/c59261f8/attachment.html>


More information about the macports-changes mailing list