commit:     5af8a4ff2244712447547479d08270f8da3d0821
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 11 22:57:31 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Feb 11 23:22:50 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5af8a4ff

dev-lang/coffee-script: bump to 2.7.0

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 dev-lang/coffee-script/Manifest                   |  1 +
 dev-lang/coffee-script/coffee-script-2.7.0.ebuild | 55 +++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/dev-lang/coffee-script/Manifest b/dev-lang/coffee-script/Manifest
index 95c44ccf2ecf..a196a6a54634 100644
--- a/dev-lang/coffee-script/Manifest
+++ b/dev-lang/coffee-script/Manifest
@@ -1 +1,2 @@
 DIST coffee-script-2.5.1.tar.gz 2226483 BLAKE2B 
5a2c5f93d46b111aeda63077f60992232a768008187ba0e41bec885184fbbbb91014620fca5d8e38cfdb5e88de483425d3d95c87779f27d7450de7cbe62b489b
 SHA512 
99f11f0822ffc841552cf6c78a28d152554f070df6d1b729bdd17df8ba6faae6ed2ba9886f7ee13ccb316de698ab8624370287274611fe90bef033d9f76c5865
+DIST coffee-script-2.7.0.tar.gz 2271083 BLAKE2B 
b79f8a3f3edd60b43e4f09c940a6461819199edf9d16dcb7f555a0230c45a9d7c86d2467a3c126e436c23245adaa4c26518dc820c222ce87118217db1ff2c252
 SHA512 
1a3ce93f67c3361ce8c8c182e4a8170b05019b08557c14285ed7ed7620e501717d97a991f0ebb884845811fdc2d5d76ba5fe4a92adebc3a8b3331b483eded5ab

diff --git a/dev-lang/coffee-script/coffee-script-2.7.0.ebuild 
b/dev-lang/coffee-script/coffee-script-2.7.0.ebuild
new file mode 100644
index 000000000000..7dd220bd7837
--- /dev/null
+++ b/dev-lang/coffee-script/coffee-script-2.7.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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"
+}

Reply via email to