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