summaryrefslogtreecommitdiff
path: root/dev-lang/coffee-script/coffee-script-2.5.1.ebuild
diff options
context:
space:
mode:
authorBobbbay Bobbayan <abatterysingle@gmail.com>2020-08-31 09:07:39 -0400
committerJoonas Niilola <juippis@gentoo.org>2020-10-02 11:42:30 +0300
commit11667a05665c314527ccd78ff027e83f11c52d35 (patch)
tree8f228a7cd14de36446e19e98a44b0942e0ac8ceb /dev-lang/coffee-script/coffee-script-2.5.1.ebuild
parent6648753770110da6d18fb1533b1eb41d70e8557d (diff)
downloadgentoo-11667a05665c314527ccd78ff027e83f11c52d35.tar.gz
gentoo-11667a05665c314527ccd78ff027e83f11c52d35.tar.bz2
gentoo-11667a05665c314527ccd78ff027e83f11c52d35.zip
dev-lang/coffee-script: version bump to 2.5.1
As well as some other touchups Signed-off-by: Bobbbay Bobbayan <abatterysingle@gmail.com> Package-Manager: Portage-3.0.4, Repoman-2.3.23 Closes: https://github.com/gentoo/gentoo/pull/17346 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'dev-lang/coffee-script/coffee-script-2.5.1.ebuild')
-rw-r--r--dev-lang/coffee-script/coffee-script-2.5.1.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-lang/coffee-script/coffee-script-2.5.1.ebuild b/dev-lang/coffee-script/coffee-script-2.5.1.ebuild
new file mode 100644
index 000000000000..ce12a698c64d
--- /dev/null
+++ b/dev-lang/coffee-script/coffee-script-2.5.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+MY_PN="coffeescript"
+
+DESCRIPTION="A little language that compiles into javascript"
+HOMEPAGE="https://coffeescript.org/"
+SRC_URI="https://github.com/jashkenas/${MY_PN}/archive/${PV}.tar.gz
+ -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_PN}-${PV}"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+# This package has a test suite (that works), but it requires a number
+# of NodeJS/NPM packages that aren't in the tree.
+IUSE="doc examples"
+
+RDEPEND="net-libs/nodejs"
+
+src_install() {
+ local npm_module_dir="/usr/$(get_libdir)/node/${PN}"
+ insinto "${npm_module_dir}"
+ doins *.js package.json
+ doins -r lib
+ dodoc CONTRIBUTING.md README.md
+
+ if use examples; then
+ # Users should be able to run the examples without having to copy
+ # them to another directory and decompress them.
+ docompress -x "/usr/share/doc/${PF}/examples"
+ dodoc -r documentation/examples
+ fi
+
+ if use doc; then
+ # It looks like "docs/v2" contains the output from all of the stuff
+ # under "documentation".
+ docinto "html"
+ dodoc -r docs/v2/*
+ fi
+
+ # The coffee and cake "binaries" use a relative path to find the lib
+ # directory, so we have to symlink them rather than use dobin().
+ exeinto "${npm_module_dir}/bin"
+ doexe bin/cake
+ doexe bin/coffee
+ dosym "${npm_module_dir}/bin/cake" "/usr/bin/cake"
+ dosym "${npm_module_dir}/bin/coffee" "/usr/bin/coffee"
+}