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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id D9CF8158090 for ; Thu, 5 May 2022 11:22:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 040F7E0788; Thu, 5 May 2022 11:22:06 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 D5907E0788 for ; Thu, 5 May 2022 11:22:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 78934341B92 for ; Thu, 5 May 2022 11:22:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DAE3A3BF for ; Thu, 5 May 2022 11:22: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: <1651749552.f1a12c8994bf9be83072f1f26424295f586b0aa3.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/typescript-mode/, app-emacs/typescript-mode/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emacs/typescript-mode/Manifest app-emacs/typescript-mode/files/50typescript-mode-gentoo.el app-emacs/typescript-mode/metadata.xml app-emacs/typescript-mode/typescript-mode-0.4.ebuild X-VCS-Directories: app-emacs/typescript-mode/files/ app-emacs/typescript-mode/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: f1a12c8994bf9be83072f1f26424295f586b0aa3 X-VCS-Branch: master Date: Thu, 5 May 2022 11:22: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: 4e37b3a0-ee8a-48f1-8304-701ca918553e X-Archives-Hash: 4ad98069e546e50cb09967c2bd3e4ecc commit: f1a12c8994bf9be83072f1f26424295f586b0aa3 Author: Maciej Barć gentoo org> AuthorDate: Thu May 5 11:19:12 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Thu May 5 11:19:12 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1a12c89 app-emacs/typescript-mode: new package; add version 0.4 Signed-off-by: Maciej Barć gentoo.org> app-emacs/typescript-mode/Manifest | 1 + .../files/50typescript-mode-gentoo.el | 4 +++ app-emacs/typescript-mode/metadata.xml | 13 ++++++++ .../typescript-mode/typescript-mode-0.4.ebuild | 35 ++++++++++++++++++++++ 4 files changed, 53 insertions(+) diff --git a/app-emacs/typescript-mode/Manifest b/app-emacs/typescript-mode/Manifest new file mode 100644 index 000000000000..f75396bf931f --- /dev/null +++ b/app-emacs/typescript-mode/Manifest @@ -0,0 +1 @@ +DIST typescript-mode-0.4.tar.gz 65534 BLAKE2B b72047749cac571ad4a109b0d8650319137c2f75672882940092bff097e3a8c877b59cb51aa89b28a6cbeacfddbd6730e634a5a33305c006d401d326fd7f5704 SHA512 5bb38ab14fa9b022744b790e62740a95cee4ca906bab9eaaea8804cfae78c4ead54770d7e53d323ee57799bff5101cc10b7327105b7b0d0b17c74bda64203972 diff --git a/app-emacs/typescript-mode/files/50typescript-mode-gentoo.el b/app-emacs/typescript-mode/files/50typescript-mode-gentoo.el new file mode 100644 index 000000000000..7d8a4986d35f --- /dev/null +++ b/app-emacs/typescript-mode/files/50typescript-mode-gentoo.el @@ -0,0 +1,4 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'typescript-mode "typescript-mode" + "Major mode for editing typescript." t) +(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-mode)) diff --git a/app-emacs/typescript-mode/metadata.xml b/app-emacs/typescript-mode/metadata.xml new file mode 100644 index 000000000000..96355bfba917 --- /dev/null +++ b/app-emacs/typescript-mode/metadata.xml @@ -0,0 +1,13 @@ + + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + https://github.com/emacs-typescript/typescript.el/issues/ + emacs-typescript/typescript.el + + diff --git a/app-emacs/typescript-mode/typescript-mode-0.4.ebuild b/app-emacs/typescript-mode/typescript-mode-0.4.ebuild new file mode 100644 index 000000000000..cdb6b235f506 --- /dev/null +++ b/app-emacs/typescript-mode/typescript-mode-0.4.ebuild @@ -0,0 +1,35 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=24.3 + +inherit elisp + +DESCRIPTION="TypeScript-support for Emacs" +HOMEPAGE="https://github.com/emacs-typescript/typescript.el/" +SRC_URI="https://github.com/emacs-typescript/typescript.el/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/typescript.el-${PV} + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +SITEFILE="50${PN}-gentoo.el" + +src_compile() { + elisp-compile ${PN}.el +} + +src_test() { + ${EMACS} ${EMACSFLAGS} -L . -l typescript-mode-tests.el \ + -f ert-run-tests-batch-and-exit || die +} + +src_install() { + elisp-install ${PN} ${PN}.el{,c} + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + + dodoc README.md +}