1 |
commit: 11667a05665c314527ccd78ff027e83f11c52d35 |
2 |
Author: Bobbbay Bobbayan <abatterysingle <AT> gmail <DOT> com> |
3 |
AuthorDate: Mon Aug 31 13:07:39 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 2 08:42:30 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11667a05 |
7 |
|
8 |
dev-lang/coffee-script: version bump to 2.5.1 |
9 |
|
10 |
As well as some other touchups |
11 |
|
12 |
Signed-off-by: Bobbbay Bobbayan <abatterysingle <AT> gmail.com> |
13 |
Package-Manager: Portage-3.0.4, Repoman-2.3.23 |
14 |
Closes: https://github.com/gentoo/gentoo/pull/17346 |
15 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
16 |
|
17 |
dev-lang/coffee-script/Manifest | 1 + |
18 |
dev-lang/coffee-script/coffee-script-2.5.1.ebuild | 52 +++++++++++++++++++++++ |
19 |
dev-lang/coffee-script/metadata.xml | 5 +++ |
20 |
3 files changed, 58 insertions(+) |
21 |
|
22 |
diff --git a/dev-lang/coffee-script/Manifest b/dev-lang/coffee-script/Manifest |
23 |
index de8c29ca0a3..45e9c619a2f 100644 |
24 |
--- a/dev-lang/coffee-script/Manifest |
25 |
+++ b/dev-lang/coffee-script/Manifest |
26 |
@@ -1,3 +1,4 @@ |
27 |
DIST coffee-script-1.12.5.tar.gz 1429494 BLAKE2B b64dc0dce9d2dbcbe5e20fcf002e9fe12116e6987ebdb19c82dadec61d90eaf66de5f4560bab5a3df1c8cef9f557bb0f5c5edd3e1fa5e7062cc0641dcbec28bc SHA512 b83981508c99e52957786d66b6c93e65cea98386b247cddfd516146eb4edb7ccb49451cc976d683fc9127b1ed0ea0a4d54cc47be519af1bf9e8b3dd79159d591 |
28 |
DIST coffee-script-1.9.3.tar.gz 810246 BLAKE2B dbca1d690ad80e38d8997c237f8c4c6e8a6b8d5c1362d5173a0c38d75e1389f5d8c09299bbb4902745e77133901857c8c15cec0dc17cbb883acf84854aefb68f SHA512 660826e27f842ed67ec6ef59f734087c95585e03b6b8c6d25c8ecfc567f3161f59034e730b61e5f806edaaa7ec6c805ad6d14902857aaf09cf6193b0fe14f506 |
29 |
DIST coffee-script-2.3.2.tar.gz 1754957 BLAKE2B 7a276a16f4db9c2f53258161af0cb1cebd71fac6acca94d5ee5b0a67e1d59d17ffca8b98f20b3afbe30297963dfa683af16ae01bf0ed6eda49a20a858f6d4850 SHA512 ab50737ffd46db007fc98cbba5ef1fc6c97b20a40b848f9635282ddf19188c59172f984bd62b345b6aae96a92af3ac046cedb568c16db2a5e29d287314e13cd5 |
30 |
+DIST coffee-script-2.5.1.tar.gz 2226483 BLAKE2B 5a2c5f93d46b111aeda63077f60992232a768008187ba0e41bec885184fbbbb91014620fca5d8e38cfdb5e88de483425d3d95c87779f27d7450de7cbe62b489b SHA512 99f11f0822ffc841552cf6c78a28d152554f070df6d1b729bdd17df8ba6faae6ed2ba9886f7ee13ccb316de698ab8624370287274611fe90bef033d9f76c5865 |
31 |
|
32 |
diff --git a/dev-lang/coffee-script/coffee-script-2.5.1.ebuild b/dev-lang/coffee-script/coffee-script-2.5.1.ebuild |
33 |
new file mode 100644 |
34 |
index 00000000000..ce12a698c64 |
35 |
--- /dev/null |
36 |
+++ b/dev-lang/coffee-script/coffee-script-2.5.1.ebuild |
37 |
@@ -0,0 +1,52 @@ |
38 |
+# Copyright 1999-2020 Gentoo Authors |
39 |
+# Distributed under the terms of the GNU General Public License v2 |
40 |
+ |
41 |
+EAPI=7 |
42 |
+ |
43 |
+MY_PN="coffeescript" |
44 |
+ |
45 |
+DESCRIPTION="A little language that compiles into javascript" |
46 |
+HOMEPAGE="https://coffeescript.org/" |
47 |
+SRC_URI="https://github.com/jashkenas/${MY_PN}/archive/${PV}.tar.gz |
48 |
+ -> ${P}.tar.gz" |
49 |
+S="${WORKDIR}/${MY_PN}-${PV}" |
50 |
+ |
51 |
+LICENSE="MIT" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+ |
55 |
+# This package has a test suite (that works), but it requires a number |
56 |
+# of NodeJS/NPM packages that aren't in the tree. |
57 |
+IUSE="doc examples" |
58 |
+ |
59 |
+RDEPEND="net-libs/nodejs" |
60 |
+ |
61 |
+src_install() { |
62 |
+ local npm_module_dir="/usr/$(get_libdir)/node/${PN}" |
63 |
+ insinto "${npm_module_dir}" |
64 |
+ doins *.js package.json |
65 |
+ doins -r lib |
66 |
+ dodoc CONTRIBUTING.md README.md |
67 |
+ |
68 |
+ if use examples; then |
69 |
+ # Users should be able to run the examples without having to copy |
70 |
+ # them to another directory and decompress them. |
71 |
+ docompress -x "/usr/share/doc/${PF}/examples" |
72 |
+ dodoc -r documentation/examples |
73 |
+ fi |
74 |
+ |
75 |
+ if use doc; then |
76 |
+ # It looks like "docs/v2" contains the output from all of the stuff |
77 |
+ # under "documentation". |
78 |
+ docinto "html" |
79 |
+ dodoc -r docs/v2/* |
80 |
+ fi |
81 |
+ |
82 |
+ # The coffee and cake "binaries" use a relative path to find the lib |
83 |
+ # directory, so we have to symlink them rather than use dobin(). |
84 |
+ exeinto "${npm_module_dir}/bin" |
85 |
+ doexe bin/cake |
86 |
+ doexe bin/coffee |
87 |
+ dosym "${npm_module_dir}/bin/cake" "/usr/bin/cake" |
88 |
+ dosym "${npm_module_dir}/bin/coffee" "/usr/bin/coffee" |
89 |
+} |
90 |
|
91 |
diff --git a/dev-lang/coffee-script/metadata.xml b/dev-lang/coffee-script/metadata.xml |
92 |
index ccff50578dc..cd39081640e 100644 |
93 |
--- a/dev-lang/coffee-script/metadata.xml |
94 |
+++ b/dev-lang/coffee-script/metadata.xml |
95 |
@@ -5,4 +5,9 @@ |
96 |
<upstream> |
97 |
<remote-id type="github">jashkenas/coffeescript</remote-id> |
98 |
</upstream> |
99 |
+ <longdescription> |
100 |
+ CoffeeScript is a little language that compiles into JavaScript. Underneath that awkward Java-esque patina, JavaScript has always had a gorgeous heart. CoffeeScript is an attempt to expose the good parts of JavaScript in a simple way. |
101 |
+ |
102 |
+ The golden rule of CoffeeScript is: "It's just JavaScript." The code compiles one-to-one into the equivalent JS, and there is no interpretation at runtime. You can use any existing JavaScript library seamlessly from CoffeeScript (and vice-versa). The compiled output is readable, pretty-printed, and tends to run as fast or faster than the equivalent handwritten JavaScript. |
103 |
+ </longdescription> |
104 |
</pkgmetadata> |