1 | # -*- 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 |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup github 1.0 |
---|
5 | |
---|
6 | github.setup creationix nvm 0.32.1 v |
---|
7 | github.tarball_from releases |
---|
8 | |
---|
9 | categories devel |
---|
10 | platforms darwin |
---|
11 | supported_archs noarch |
---|
12 | license MIT |
---|
13 | |
---|
14 | maintainers nomaintainer |
---|
15 | description Node version manager |
---|
16 | long_description NVM is a simple shell script to manage multiple active Node.js versions. |
---|
17 | |
---|
18 | checksums rmd160 5f1093811dcf701f1ed5b51b307a31ba4c3feaa3 \ |
---|
19 | sha256 d0bda5daf29eaf67a70f6fd3b860308ddd3536a1bb9adb4d4166ec82fcd9cb68 |
---|
20 | |
---|
21 | use_configure no |
---|
22 | default_variants +bash_completion |
---|
23 | |
---|
24 | build { } |
---|
25 | |
---|
26 | destroot { |
---|
27 | set nvm_dir ${prefix}/lib/nvm |
---|
28 | xinstall -d ${destroot}${nvm_dir} |
---|
29 | xinstall {*}[glob ${worksrcpath}/nvm*] ${destroot}${nvm_dir} |
---|
30 | |
---|
31 | set nvm_bin ${prefix}/bin/nvm |
---|
32 | xinstall -m 755 ${filespath}/nvm_bin.sh ${destroot}${nvm_bin} |
---|
33 | reinplace "s|@PLACEHOLDER@|${nvm_dir}|g" ${destroot}${nvm_bin} |
---|
34 | } |
---|
35 | |
---|
36 | variant bash_completion { |
---|
37 | post-destroot { |
---|
38 | set completions_dir ${destroot}${prefix}/share/bash-completion/completions |
---|
39 | xinstall -d ${completions_dir} |
---|
40 | xinstall ${worksrcpath}/bash_completion ${completions_dir}/nvm |
---|
41 | } |
---|
42 | } |
---|