commit:     c949a5ddc4351726450cac22d82a8ad9abb12f8c
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 11 23:04:32 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Feb 11 23:22:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c949a5dd

dev-lang/coffee-script: rename cake -> coffee-cake

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

 dev-lang/coffee-script/coffee-script-2.7.0.ebuild | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/dev-lang/coffee-script/coffee-script-2.7.0.ebuild 
b/dev-lang/coffee-script/coffee-script-2.7.0.ebuild
index 7dd220bd7837..2f497e582b0f 100644
--- a/dev-lang/coffee-script/coffee-script-2.7.0.ebuild
+++ b/dev-lang/coffee-script/coffee-script-2.7.0.ebuild
@@ -5,6 +5,8 @@ EAPI=8
 
 MY_PN="coffeescript"
 
+inherit readme.gentoo-r1
+
 DESCRIPTION="A little language that compiles into javascript"
 HOMEPAGE="https://coffeescript.org/";
 SRC_URI="https://github.com/jashkenas/${MY_PN}/archive/${PV}.tar.gz
@@ -23,6 +25,9 @@ RDEPEND="
        net-libs/nodejs
 "
 
+DOC_CONTENTS="To enable installation alongside other tools the Gentoo
+maintainer decided to rename the \"cake\" executable to \"coffee-cake\"."
+
 src_install() {
        local npm_module_dir="/usr/$(get_libdir)/node/${PN}"
 
@@ -50,6 +55,12 @@ src_install() {
        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/cake" "/usr/bin/coffee-cake"
        dosym "${npm_module_dir}/bin/coffee" "/usr/bin/coffee"
+
+       readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+       readme.gentoo_print_elog
 }

Reply via email to