Skip to content

Instantly share code, notes, and snippets.

@hibariya
Created October 19, 2016 22:11
Show Gist options
  • Save hibariya/ce77ccf7d3c2d21243af1b709e412133 to your computer and use it in GitHub Desktop.
Save hibariya/ce77ccf7d3c2d21243af1b709e412133 to your computer and use it in GitHub Desktop.
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
DESCRIPTION="Fast, reliable, and secure dependency management. https://yarnpkg.com"
HOMEPAGE="https://yarnpkg.com/"
LICENSE="BSD"
KEYWORDS="amd64"
SRC_URI="https://github.com/yarnpkg/yarn/releases/download/v${PVR}/yarn-v${PVR}.tar.gz"
SLOT="0"
DEPEND="|| ( net-libs/nodejs net-libs/nodejs-bin )"
RDEPEND="${DEPEND}"
S="${WORKDIR}/dist"
src_install() {
dest="/usr/local/${PN}"
dodir "${dest}"
cp -r "${S}"/* "${D}/${dest}"
dodir "/usr/local/bin"
dosym ${dest}/bin/yarn /usr/local/bin/yarn
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment