mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
app-emacs/typescript-mode: new package; add version 0.4
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
1
app-emacs/typescript-mode/Manifest
Normal file
1
app-emacs/typescript-mode/Manifest
Normal file
@@ -0,0 +1 @@
|
||||
DIST typescript-mode-0.4.tar.gz 65534 BLAKE2B b72047749cac571ad4a109b0d8650319137c2f75672882940092bff097e3a8c877b59cb51aa89b28a6cbeacfddbd6730e634a5a33305c006d401d326fd7f5704 SHA512 5bb38ab14fa9b022744b790e62740a95cee4ca906bab9eaaea8804cfae78c4ead54770d7e53d323ee57799bff5101cc10b7327105b7b0d0b17c74bda64203972
|
||||
@@ -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))
|
||||
13
app-emacs/typescript-mode/metadata.xml
Normal file
13
app-emacs/typescript-mode/metadata.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
|
||||
<pkgmetadata>
|
||||
<maintainer type="project">
|
||||
<email>gnu-emacs@gentoo.org</email>
|
||||
<name>Gentoo GNU Emacs project</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/emacs-typescript/typescript.el/issues/</bugs-to>
|
||||
<remote-id type="github">emacs-typescript/typescript.el</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
35
app-emacs/typescript-mode/typescript-mode-0.4.ebuild
Normal file
35
app-emacs/typescript-mode/typescript-mode-0.4.ebuild
Normal file
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user