Gentoo Archives: gentoo-commits

From: Michael Orlitzky <mjo@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/coffee-script/
Date: Fri, 01 Mar 2019 17:03:14
Message-Id: 1551459282.65f53b088b98a08e104e1fb49125771f7145306d.mjo@gentoo
1 commit: 65f53b088b98a08e104e1fb49125771f7145306d
2 Author: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
3 AuthorDate: Fri Mar 1 16:54:22 2019 +0000
4 Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 1 16:54:42 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65f53b08
7
8 dev-lang/coffee-script: new version 2.3.2.
9
10 Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org>
11 Package-Manager: Portage-2.3.51, Repoman-2.3.11
12
13 dev-lang/coffee-script/Manifest | 1 +
14 dev-lang/coffee-script/coffee-script-2.3.2.ebuild | 52 +++++++++++++++++++++++
15 2 files changed, 53 insertions(+)
16
17 diff --git a/dev-lang/coffee-script/Manifest b/dev-lang/coffee-script/Manifest
18 index e5fa4f4e47f..de8c29ca0a3 100644
19 --- a/dev-lang/coffee-script/Manifest
20 +++ b/dev-lang/coffee-script/Manifest
21 @@ -1,2 +1,3 @@
22 DIST coffee-script-1.12.5.tar.gz 1429494 BLAKE2B b64dc0dce9d2dbcbe5e20fcf002e9fe12116e6987ebdb19c82dadec61d90eaf66de5f4560bab5a3df1c8cef9f557bb0f5c5edd3e1fa5e7062cc0641dcbec28bc SHA512 b83981508c99e52957786d66b6c93e65cea98386b247cddfd516146eb4edb7ccb49451cc976d683fc9127b1ed0ea0a4d54cc47be519af1bf9e8b3dd79159d591
23 DIST coffee-script-1.9.3.tar.gz 810246 BLAKE2B dbca1d690ad80e38d8997c237f8c4c6e8a6b8d5c1362d5173a0c38d75e1389f5d8c09299bbb4902745e77133901857c8c15cec0dc17cbb883acf84854aefb68f SHA512 660826e27f842ed67ec6ef59f734087c95585e03b6b8c6d25c8ecfc567f3161f59034e730b61e5f806edaaa7ec6c805ad6d14902857aaf09cf6193b0fe14f506
24 +DIST coffee-script-2.3.2.tar.gz 1754957 BLAKE2B 7a276a16f4db9c2f53258161af0cb1cebd71fac6acca94d5ee5b0a67e1d59d17ffca8b98f20b3afbe30297963dfa683af16ae01bf0ed6eda49a20a858f6d4850 SHA512 ab50737ffd46db007fc98cbba5ef1fc6c97b20a40b848f9635282ddf19188c59172f984bd62b345b6aae96a92af3ac046cedb568c16db2a5e29d287314e13cd5
25
26 diff --git a/dev-lang/coffee-script/coffee-script-2.3.2.ebuild b/dev-lang/coffee-script/coffee-script-2.3.2.ebuild
27 new file mode 100644
28 index 00000000000..9616a311be5
29 --- /dev/null
30 +++ b/dev-lang/coffee-script/coffee-script-2.3.2.ebuild
31 @@ -0,0 +1,52 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +MY_PN="coffeescript"
38 +
39 +DESCRIPTION="A little language that compiles into javascript"
40 +HOMEPAGE="https://coffeescript.org/"
41 +SRC_URI="https://github.com/jashkenas/${MY_PN}/archive/${PV}.tar.gz
42 + -> ${P}.tar.gz"
43 +S="${WORKDIR}/${MY_PN}-${PV}"
44 +
45 +LICENSE="MIT"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~x86"
48 +
49 +# This package has a test suite (that works), but it requires a number
50 +# of NodeJS/NPM packages that aren't in the tree.
51 +IUSE="doc examples"
52 +
53 +RDEPEND="net-libs/nodejs"
54 +
55 +src_install(){
56 + local npm_module_dir="/usr/$(get_libdir)/node/${PN}"
57 + insinto "${npm_module_dir}"
58 + doins *.js package.json
59 + doins -r lib
60 + dodoc CONTRIBUTING.md README.md
61 +
62 + if use examples; then
63 + # Users should be able to run the examples without having to copy
64 + # them to another directory and decompress them.
65 + docompress -x "/usr/share/doc/${PF}/examples"
66 + dodoc -r documentation/examples
67 + fi
68 +
69 + if use doc; then
70 + # It looks like "docs/v2" contains the output from all of the stuff
71 + # under "documentation".
72 + docinto "html"
73 + dodoc -r docs/v2/*
74 + fi
75 +
76 + # The coffee and cake "binaries" use a relative path to find the lib
77 + # directory, so we have to symlink them rather than use dobin().
78 + exeinto "${npm_module_dir}/bin"
79 + doexe bin/cake
80 + doexe bin/coffee
81 + dosym "${npm_module_dir}/bin/cake" "/usr/bin/cake"
82 + dosym "${npm_module_dir}/bin/coffee" "/usr/bin/coffee"
83 +}