1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
11 DESCRIPTION="A little language that compiles into javascript"
12 HOMEPAGE="http://coffeescript.org/"
13 SRC_URI="https://github.com/jashkenas/${MY_PN}/archive/${PV}.tar.gz
15 S="${WORKDIR}/${MY_PN}-${PV}"
19 KEYWORDS="~amd64 ~x86"
21 # This package has a test suite (that works), but it requires a number
22 # of NodeJS/NPM packages that aren't in the tree.
25 RDEPEND="net-libs/nodejs"
28 local npm_module_dir="/usr/$(get_libdir)/node/${PN}"
29 insinto "${npm_module_dir}"
30 doins *.js package.json
32 dodoc CONTRIBUTING.md README.md
34 use doc && dodoc -r documentation
35 use examples && dodoc -r examples
37 # The coffee and cake "binaries" use a relative path to find the lib
38 # directory, so we have to symlink them rather than use dobin().
39 exeinto "${npm_module_dir}/bin"
42 dosym "${npm_module_dir}/bin/cake" "/usr/bin/cake"
43 dosym "${npm_module_dir}/bin/coffee" "/usr/bin/coffee"