From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 4C361158094 for ; Tue, 6 Sep 2022 00:07:07 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4A379E0809; Tue, 6 Sep 2022 00:07:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2E14CE0809 for ; Tue, 6 Sep 2022 00:07:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B3C24340E35 for ; Tue, 6 Sep 2022 00:07:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D0D095B1 for ; Tue, 6 Sep 2022 00:07:02 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1662422821.7517d5c97c728904f2a3a304284cf06878b54c5f.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/js2-mode/files/, app-emacs/js2-mode/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emacs/js2-mode/Manifest app-emacs/js2-mode/files/50js2-mode-gentoo.el app-emacs/js2-mode/js2-mode-20220710.ebuild app-emacs/js2-mode/metadata.xml X-VCS-Directories: app-emacs/js2-mode/ app-emacs/js2-mode/files/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 7517d5c97c728904f2a3a304284cf06878b54c5f X-VCS-Branch: master Date: Tue, 6 Sep 2022 00:07:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f1bf6fd0-abd2-4e8a-9a74-060276c30c8a X-Archives-Hash: 25dd35e11ac38e3086ff321f81bdceb8 commit: 7517d5c97c728904f2a3a304284cf06878b54c5f Author: Maciej Barć gentoo org> AuthorDate: Tue Sep 6 00:02:54 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Tue Sep 6 00:07:01 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7517d5c9 app-emacs/js2-mode: new package; add version 20220710 Signed-off-by: Maciej Barć gentoo.org> app-emacs/js2-mode/Manifest | 1 + app-emacs/js2-mode/files/50js2-mode-gentoo.el | 12 ++++++++++++ app-emacs/js2-mode/js2-mode-20220710.ebuild | 23 +++++++++++++++++++++++ app-emacs/js2-mode/metadata.xml | 27 +++++++++++++++++++++++++++ 4 files changed, 63 insertions(+) diff --git a/app-emacs/js2-mode/Manifest b/app-emacs/js2-mode/Manifest new file mode 100644 index 000000000000..89ab57750e00 --- /dev/null +++ b/app-emacs/js2-mode/Manifest @@ -0,0 +1 @@ +DIST js2-mode-20220710.tar.gz 166051 BLAKE2B f23f122f9002a38d1d6221f2f0f85efd9a9be92f7c5a242da3b3706abb9ec93e27e2f277e4cb1b7cd3ed616974add9f5ffd1abcf1ced6c7131d91b66320bd0e7 SHA512 7a30903114f81fe66bc76eecb01f8d96737f4be84c652f1083054ffdcda299d84c7d7fea387c87f719e2dc372459fcc180dde0513ed3006b8f12557e24002727 diff --git a/app-emacs/js2-mode/files/50js2-mode-gentoo.el b/app-emacs/js2-mode/files/50js2-mode-gentoo.el new file mode 100644 index 000000000000..12daf0e43291 --- /dev/null +++ b/app-emacs/js2-mode/files/50js2-mode-gentoo.el @@ -0,0 +1,12 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'js2-imenu-extras-setup "js2-imenu-extras") +(autoload 'js2-imenu-extras-mode "js2-imenu-extras" + "Toggle Imenu support for frameworks and structural patterns." t) +(autoload 'js2-highlight-unused-variables-mode "js2-mode" + "Toggle highlight of unused variables." t) +(autoload 'js2-minor-mode "js2-mode" + "Minor mode for running js2 as a background linter." t) +(autoload 'js2-mode "js2-mode" + "Major mode for editing JavaScript code." t) +(autoload 'js2-jsx-mode "js2-mode" + "Major mode for editing JSX code in Emacs 26 and earlier." t) diff --git a/app-emacs/js2-mode/js2-mode-20220710.ebuild b/app-emacs/js2-mode/js2-mode-20220710.ebuild new file mode 100644 index 000000000000..1d502b22e198 --- /dev/null +++ b/app-emacs/js2-mode/js2-mode-20220710.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=24.1 + +inherit elisp + +DESCRIPTION="Improved JavaScript editing mode for GNU Emacs" +HOMEPAGE="https://github.com/mooz/js2-mode/" +SRC_URI="https://github.com/mooz/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DOCS=( NEWS.md README.md ) +SITEFILE="50${PN}-gentoo.el" + +src_test() { + emake test +} diff --git a/app-emacs/js2-mode/metadata.xml b/app-emacs/js2-mode/metadata.xml new file mode 100644 index 000000000000..2983ab1f4170 --- /dev/null +++ b/app-emacs/js2-mode/metadata.xml @@ -0,0 +1,27 @@ + + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + This JavaScript editing mode supports: 1. strict recognition of the + Ecma-262 language standard 2. support for most Rhino and SpiderMonkey + extensions from 1.5 and up 3. parsing support for ECMAScript for XML (E4X, + ECMA-357) 4. accurate syntax highlighting using a recursive-descent parser + 5. on-the-fly reporting of syntax errors and strict-mode warnings 6. + undeclared-variable warnings using a configurable externs framework 7. + "bouncing" line indentation to choose among alternate indentation points 8. + smart line-wrapping within comments and strings 9. code folding: 9.1. show + some or all function bodies as {...} 9.2. show some or all block comments + as /*...*/ 12. context-sensitive menu bar and popup menus 13. code browsing + using the `imenu' package 14. many customization options + + + + https://github.com/mooz/js2-mode/issues/ + mooz/js2-mode + +