<pre style='margin:0'>
Mojca Miklavec (mojca) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/cbc8554047c2a8e08056a80d0ea6fc6249daa5f3">https://github.com/macports/macports-ports/commit/cbc8554047c2a8e08056a80d0ea6fc6249daa5f3</a></p>
<pre style="white-space: pre; background: #F8F8F8">The following commit(s) were added to refs/heads/master by this push:
<span style='display:block; white-space:pre;color:#404040;'> new cbc8554 yarn: new port, version 0.18.1
</span>cbc8554 is described below
<span style='display:block; white-space:pre;color:#808000;'>commit cbc8554047c2a8e08056a80d0ea6fc6249daa5f3
</span>Author: Andrew Pinkham <code@andrewsforge.com>
AuthorDate: Tue Dec 27 13:48:17 2016 -0500
<span style='display:block; white-space:pre;color:#404040;'> yarn: new port, version 0.18.1
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> JavaScript dependency manager
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> * Closes: #48
</span><span style='display:block; white-space:pre;color:#404040;'> * See: https://trac.macports.org/ticket/52827
</span>---
devel/yarn/Portfile | 71 ++++++++++++++++++++++
...patch-0001-Allow-yarn-script-to-be-linked.patch | 11 ++++
2 files changed, 82 insertions(+)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/yarn/Portfile b/devel/yarn/Portfile
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..dfc1465
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/yarn/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,71 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+# -*- 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
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortSystem 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.setup yarnpkg yarn 0.18.1 v
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+categories devel
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+platforms darwin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+supported_archs noarch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+license BSD
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers andrewsforge.com:code \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ gmail.com:isomacrte \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+description JavaScript dependency manager
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+long_description Created by Facebook to replace NPM, yarn boasts about its \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ speed, security, and reliability. Most notably, yarn \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ dependencies are installed deterministically, whereas \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ NPM's dependencies are not.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+homepage https://yarnpkg.com/
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+github.tarball_from releases
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+distname ${name}-${git.branch}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+worksrcdir dist
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+checksums rmd160 c806b890b1e348e35256191d52681d220e73a5b8 \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ Sha256 7d16699c8690ef145e1732004266fb82a32b0c06210a43c624986d100537b5a8
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+depends_run bin:node:nodejs6
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+patchfiles patch-0001-Allow-yarn-script-to-be-linked.patch
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+use_configure no
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+build {}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+destroot {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ copy ${worksrcpath} ${destroot}${prefix}/libexec/yarn
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ln -s ${prefix}/libexec/yarn/bin/yarn ${destroot}${prefix}/bin/yarn
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+}
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+notes "
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+${name} stores data in:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ~/.yarn
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ~/.yarnrc
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ~/.cache/yarn
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ ~/.config/yarn
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+Should you choose to install packages globally with ${name} (yarn global\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+add), these files will not be removed if you deactivate or uninstall ${name}.\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+By default, these packages will be installed in ~/.config/yarn/global, and\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+soft-linked to ${prefix}/bin. To uninstall them all:
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+$ ls -1 \$HOME/.config/yarn/global/node_modules/ \
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+| xargs sudo yarn global remove
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+You may then remove the directories listed above and uninstall ${name}.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+${name} is meant to replace NPM, and may cause conflicts if you use both.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+You may override the default global installation directory by setting the\
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PREFIX environment variable, e.g.
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+mkdir -p \$HOME/.config/yarn/bin # Or wherever you want
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+export PREFIX=\$HOME/.config/yarn/bin
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+export PATH=\$PREFIX:\$PATH
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+"
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/yarn/files/patch-0001-Allow-yarn-script-to-be-linked.patch b/devel/yarn/files/patch-0001-Allow-yarn-script-to-be-linked.patch
</span>new file mode 100644
<span style='display:block; white-space:pre;color:#808080;'>index 0000000..3a8c716
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>--- /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/yarn/files/patch-0001-Allow-yarn-script-to-be-linked.patch
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -0,0 +1,11 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+https://github.com/yarnpkg/yarn/pull/2217
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+--- bin/yarn
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++++ bin/yarn
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+@@ -1,5 +1,5 @@
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ #!/bin/sh
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+-basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>++basedir=$(dirname "$(readlink "$0" || echo "$(echo "$0" | sed -e 's,\\,/,g')")")
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ case `uname` in
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
</span></pre><pre style='margin:0'>
</pre>