Changeset 149668


Ignore:
Timestamp:
Jun 28, 2016, 8:30:18 PM (17 months ago)
Author:
ciserlohn@…
Message:

npm, npm-devel, npm2, npm3: new namimg scheme

  • Rename npm to npm2.
  • Rename npm-devel to npm3.
  • Update to the latest versions (2.15.8, 3.10.2).
  • Remove bash_completion variant. It does nothing and was only for legacy compatibility.
Location:
trunk/dports/devel
Files:
4 edited
2 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/npm-devel/Portfile

    r149599 r149668  
    33
    44PortSystem          1.0
    5 
     5replaced_by         npm3
     6PortGroup           obsolete 1.0
    67name                npm-devel
    78version             3.8.8
    8 revision            1
    9 
     9revision            2
    1010categories          devel
    11 platforms           darwin
    1211license             MIT
    13 maintainers         ciserlohn
    14 
    15 supported_archs     noarch
    16 
    17 description         node package manager
    18 long_description    npm is a package manager for node. \
    19                     You can use it to install and publish your node programs. \
    20                             It manages dependencies and does other cool stuff.
    21 
    22 conflicts           npm
    23 
    24 homepage            http://www.npmjs.org/
    25 
    26 master_sites        http://registry.npmjs.org/npm/-/
    27 
    28 extract.suffix      .tgz
    29 
    30 checksums           rmd160  24e0bca1a923dfc2ee5e6f74c48b0a27ed4c4042 \
    31                     sha256  e7353dc8d0b9e99560acd621c49eef686cfeef4e80e58e794cc7b59a07262bb2
    32 
    33 distname            npm-${version}
    34 
    35 worksrcdir          "package"
    36 
    37 depends_lib         path:bin/node:nodejs4
    38 
    39 use_configure       no
    40 
    41 patchfiles          patch-lib-update.js.diff
    42 
    43 post-patch {
    44     regsub -all {/} "^${prefix}/lib" {\\\/} npm_path_jsregex
    45     reinplace "s|@@NPM_PATH_JSREGEX@@|${npm_path_jsregex}|g" ${worksrcpath}/lib/update.js
    46 
    47     foreach f [concat ${worksrcpath}/cli.js \
    48                    ${worksrcpath}/bin/npm-cli.js \
    49                    ${worksrcpath}/node_modules/cmd-shim/test/00-setup.js \
    50                    ${worksrcpath}/node_modules/mkdirp/bin/cmd.js \
    51                    ${worksrcpath}/node_modules/node-gyp/bin/node-gyp.js \
    52                    ${worksrcpath}/node_modules/node-gyp/node_modules/minimatch/node_modules/lru-cache/test/memory-leak.js \
    53                    ${worksrcpath}/node_modules/nopt/bin/nopt.js \
    54                    ${worksrcpath}/node_modules/nopt/examples/my-program.js \
    55                    ${worksrcpath}/node_modules/npmlog/node_modules/ansi/examples/beep/index.js \
    56                    ${worksrcpath}/node_modules/npmlog/node_modules/ansi/examples/clear/index.js \
    57                    ${worksrcpath}/node_modules/npmlog/node_modules/ansi/examples/cursorPosition.js \
    58                    ${worksrcpath}/node_modules/npmlog/node_modules/ansi/examples/progress/index.js \
    59                    ${worksrcpath}/node_modules/opener/opener.js \
    60                    ${worksrcpath}/node_modules/read-cmd-shim/test/integration.js \
    61                    ${worksrcpath}/node_modules/request/node_modules/har-validator/bin/har-validator \
    62                    ${worksrcpath}/node_modules/request/node_modules/har-validator/node_modules/commander/Readme.md \
    63                    ${worksrcpath}/node_modules/request/node_modules/node-uuid/bin/uuid \
    64                    ${worksrcpath}/node_modules/rimraf/bin.js \
    65                    ${worksrcpath}/node_modules/semver/bin/semver \
    66                    ${worksrcpath}/node_modules/which/bin/which \
    67                    ${worksrcpath}/scripts/index-build.js \
    68                    ${worksrcpath}/scripts/relocate.sh \
    69                    ${worksrcpath}/test/tap/config-edit.js \
    70                    ${worksrcpath}/test/tap/gently-rm-cmdshims.js \
    71                    ${worksrcpath}/test/tap/install-link-scripts.js \
    72                    ${worksrcpath}/test/tap/scripts-whitespace-windows.js] {
    73         reinplace "s|/usr/bin/env node|${prefix}/bin/node|" ${f}
    74     }
    75 }
    76 
    77 build {}
    78 
    79 destroot.cmd        ${prefix}/bin/node ./cli.js
    80 destroot.args       --global .
    81 destroot.destdir    --prefix=${destroot}${prefix}
    82 
    83 post-destroot {
    84     set completions_path ${destroot}${prefix}/share/bash-completion/completions/
    85     xinstall -d ${completions_path}
    86     xinstall -m 644 ${worksrcpath}/lib/utils/completion.sh ${completions_path}/npm
    87 }
    88 
    89 variant bash_completion {
    90     depends_run-append path:etc/bash_completion:bash-completion
    91 }
    92 
    93 notes "
    94 It is not recommended to install packages globally. But if you do so\
    95 please be aware that they won't get cleaned up when you deactivate\
    96 or uninstall ${name}. Globally installed packages will remain in\
    97 ${prefix}/lib/node_modules/ until you manually delete them.
    98 "
    99 
    100 livecheck.type      regex
    101 livecheck.url       http://registry.npmjs.org/npm
    102 livecheck.regex     {"latest":"(.*?)"}
  • trunk/dports/devel/npm/Portfile

    r149599 r149668  
    33
    44PortSystem          1.0
    5 
     5replaced_by         npm2
     6PortGroup           obsolete 1.0
    67name                npm
    78version             2.15.3
    8 revision            1
    9 
     9revision            2
    1010categories          devel
    11 platforms           darwin
    1211license             MIT
    13 maintainers         ciserlohn
    14 
    15 supported_archs     noarch
    16 
    17 description         node package manager
    18 long_description    npm is a package manager for node. \
    19                     You can use it to install and publish your node programs. \
    20                             It manages dependencies and does other cool stuff.
    21 
    22 conflicts           npm-devel
    23 
    24 homepage            http://www.npmjs.org/
    25 
    26 master_sites        http://registry.npmjs.org/npm/-/
    27 
    28 extract.suffix      .tgz
    29 
    30 checksums           rmd160  e652b86a01bb662842d013e260aa1f7e69351dcc \
    31                     sha256  1815bdf2e155144b9919fc75b163e34fa5ff5cc8e875f340f958b69c9e84d4a2
    32 
    33 worksrcdir          "package"
    34 
    35 depends_lib         path:bin/node:nodejs4
    36 
    37 use_configure       no
    38 
    39 patchfiles          patch-lib-update.js.diff
    40 
    41 post-patch {
    42     regsub -all {/} "^${prefix}/lib" {\\\/} npm_path_jsregex
    43     reinplace "s|@@NPM_PATH_JSREGEX@@|${npm_path_jsregex}|g" ${worksrcpath}/lib/update.js
    44 
    45     foreach f [concat ${worksrcpath}/cli.js \
    46                    ${worksrcpath}/bin/npm-cli.js \
    47                    ${worksrcpath}/node_modules/ansi/examples/beep/index.js \
    48                    ${worksrcpath}/node_modules/ansi/examples/clear/index.js \
    49                    ${worksrcpath}/node_modules/ansi/examples/cursorPosition.js \
    50                    ${worksrcpath}/node_modules/ansi/examples/progress/index.js \
    51                    ${worksrcpath}/node_modules/cmd-shim/test/00-setup.js \
    52                    ${worksrcpath}/node_modules/lru-cache/test/memory-leak.js \
    53                    ${worksrcpath}/node_modules/node-gyp/bin/node-gyp.js \
    54                    ${worksrcpath}/node_modules/nopt/bin/nopt.js \
    55                    ${worksrcpath}/node_modules/nopt/examples/my-program.js \
    56                    ${worksrcpath}/node_modules/opener/opener.js \
    57                    ${worksrcpath}/node_modules/rimraf/bin.js \
    58                    ${worksrcpath}/node_modules/semver/bin/semver \
    59                    ${worksrcpath}/node_modules/which/bin/which \
    60                    ${worksrcpath}/scripts/index-build.js \
    61                    ${worksrcpath}/scripts/relocate.sh] {
    62         reinplace "s|/usr/bin/env node|${prefix}/bin/node|" ${f}
    63     }
    64 }
    65 
    66 build {}
    67 
    68 destroot.cmd        ${prefix}/bin/node ./cli.js
    69 destroot.args       --global .
    70 destroot.destdir    --prefix=${destroot}${prefix}
    71 
    72 post-destroot {
    73     set completions_path ${destroot}${prefix}/share/bash-completion/completions/
    74     xinstall -d ${completions_path}
    75     xinstall -m 644 ${worksrcpath}/lib/utils/completion.sh ${completions_path}/npm
    76 }
    77 
    78 variant bash_completion {
    79     depends_run-append path:etc/bash_completion:bash-completion
    80 }
    81 
    82 notes "
    83 It is not recommended to install packages globally. But if you do so\
    84 please be aware that they won't get cleaned up when you deactivate\
    85 or uninstall ${name}. Globally installed packages will remain in\
    86 ${prefix}/lib/node_modules/ until you manually delete them.
    87 "
    88 
    89 livecheck.type      regex
    90 livecheck.url       http://registry.npmjs.org/npm
    91 livecheck.regex     {"latest-2":"(.*?)"}
  • trunk/dports/devel/npm2/Portfile

    r149599 r149668  
    44PortSystem          1.0
    55
    6 name                npm
    7 version             2.15.3
    8 revision            1
     6name                npm2
     7version             2.15.8
    98
    109categories          devel
     
    2019                            It manages dependencies and does other cool stuff.
    2120
    22 conflicts           npm-devel
     21conflicts           npm3
    2322
    2423homepage            http://www.npmjs.org/
     
    2625master_sites        http://registry.npmjs.org/npm/-/
    2726
     27distname            npm-${version}
     28
    2829extract.suffix      .tgz
    2930
    30 checksums           rmd160  e652b86a01bb662842d013e260aa1f7e69351dcc \
    31                     sha256  1815bdf2e155144b9919fc75b163e34fa5ff5cc8e875f340f958b69c9e84d4a2
     31checksums           rmd160  978f5aead81c6fe04630353a1016389d5b258a74 \
     32                    sha256  c9a54f5a7f86a89a77c1c26511bcf3bb55dc7ce5283b590ab1ba289f3824b400
    3233
    3334worksrcdir          "package"
     
    5051                   ${worksrcpath}/node_modules/ansi/examples/progress/index.js \
    5152                   ${worksrcpath}/node_modules/cmd-shim/test/00-setup.js \
    52                    ${worksrcpath}/node_modules/lru-cache/test/memory-leak.js \
    5353                   ${worksrcpath}/node_modules/node-gyp/bin/node-gyp.js \
    5454                   ${worksrcpath}/node_modules/nopt/bin/nopt.js \
     
    7676}
    7777
    78 variant bash_completion {
    79     depends_run-append path:etc/bash_completion:bash-completion
    80 }
    81 
    8278notes "
    8379It is not recommended to install packages globally. But if you do so\
  • trunk/dports/devel/npm3/Portfile

    r149599 r149668  
    44PortSystem          1.0
    55
    6 name                npm-devel
    7 version             3.8.8
    8 revision            1
     6name                npm3
     7version             3.10.2
    98
    109categories          devel
     
    2019                            It manages dependencies and does other cool stuff.
    2120
    22 conflicts           npm
     21conflicts           npm2
    2322
    2423homepage            http://www.npmjs.org/
     
    2625master_sites        http://registry.npmjs.org/npm/-/
    2726
     27distname            npm-${version}
     28
    2829extract.suffix      .tgz
    2930
    30 checksums           rmd160  24e0bca1a923dfc2ee5e6f74c48b0a27ed4c4042 \
    31                     sha256  e7353dc8d0b9e99560acd621c49eef686cfeef4e80e58e794cc7b59a07262bb2
     31checksums           rmd160  515ab02cc6522e2c34ca3f607a0707bd04d62782 \
     32                    sha256  ce8fc260a17b2b357b0676efc01d77e1f54110151ed578040bc4444ffc194dd3
    3233
    3334distname            npm-${version}
     
    5354                   ${worksrcpath}/node_modules/nopt/bin/nopt.js \
    5455                   ${worksrcpath}/node_modules/nopt/examples/my-program.js \
    55                    ${worksrcpath}/node_modules/npmlog/node_modules/ansi/examples/beep/index.js \
    56                    ${worksrcpath}/node_modules/npmlog/node_modules/ansi/examples/clear/index.js \
    57                    ${worksrcpath}/node_modules/npmlog/node_modules/ansi/examples/cursorPosition.js \
    58                    ${worksrcpath}/node_modules/npmlog/node_modules/ansi/examples/progress/index.js \
    5956                   ${worksrcpath}/node_modules/opener/opener.js \
    6057                   ${worksrcpath}/node_modules/read-cmd-shim/test/integration.js \
     
    8784}
    8885
    89 variant bash_completion {
    90     depends_run-append path:etc/bash_completion:bash-completion
    91 }
    92 
    9386notes "
    9487It is not recommended to install packages globally. But if you do so\
Note: See TracChangeset for help on using the changeset viewer.