diff options
author | Maciej Barć <xgqt@gentoo.org> | 2024-02-24 22:36:57 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2024-02-24 22:50:22 +0100 |
commit | 1ad01112c9a993806ea8799d4dbc28f9d60bf42f (patch) | |
tree | 7c38d40208736e7d9b583c78f414ea55129eb0ad /app-emacs | |
parent | dev-lang/fennel: bump to 1.4.2 (diff) | |
download | gentoo-1ad01112c9a993806ea8799d4dbc28f9d60bf42f.tar.gz gentoo-1ad01112c9a993806ea8799d4dbc28f9d60bf42f.tar.bz2 gentoo-1ad01112c9a993806ea8799d4dbc28f9d60bf42f.zip |
app-emacs/nix-mode: new package; add 1.5.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/nix-mode/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/nix-mode/files/50nix-mode-gentoo.el | 4 | ||||
-rw-r--r-- | app-emacs/nix-mode/metadata.xml | 14 | ||||
-rw-r--r-- | app-emacs/nix-mode/nix-mode-1.5.0.ebuild | 35 |
4 files changed, 54 insertions, 0 deletions
diff --git a/app-emacs/nix-mode/Manifest b/app-emacs/nix-mode/Manifest new file mode 100644 index 000000000000..a1f2f26b1e14 --- /dev/null +++ b/app-emacs/nix-mode/Manifest @@ -0,0 +1 @@ +DIST nix-mode-1.5.0.tar.gz 57584 BLAKE2B e7723d6667b979ce1dd018443ff331bf18f01cd973e2e3291b4c9b79634fb41758bcec772b9c8311f76d2f9e28566b9665be03796bc867530dda98e9c77a192a SHA512 308b7faa1a77e5afddec41d28b26804dc7ce1895007dbb6d7dd5495a8a0852fa2ced5aa60419517bf0e9f0fe183ff0de3b1a943ce8839eebfe09c9fd3c214035 diff --git a/app-emacs/nix-mode/files/50nix-mode-gentoo.el b/app-emacs/nix-mode/files/50nix-mode-gentoo.el new file mode 100644 index 000000000000..41864935fafe --- /dev/null +++ b/app-emacs/nix-mode/files/50nix-mode-gentoo.el @@ -0,0 +1,4 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'nix-mode "nix-mode.el" + "Major mode for editing Nix expressions." t) +(add-to-list 'auto-mode-alist '("\\.nix\\'" . nix-mode)) diff --git a/app-emacs/nix-mode/metadata.xml b/app-emacs/nix-mode/metadata.xml new file mode 100644 index 000000000000..e0e8155064be --- /dev/null +++ b/app-emacs/nix-mode/metadata.xml @@ -0,0 +1,14 @@ +<?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> + <stabilize-allarches /> + <upstream> + <bugs-to>https://github.com/NixOS/nix-mode/issues/</bugs-to> + <remote-id type="github">NixOS/nix-mode</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-emacs/nix-mode/nix-mode-1.5.0.ebuild b/app-emacs/nix-mode/nix-mode-1.5.0.ebuild new file mode 100644 index 000000000000..100190d9037d --- /dev/null +++ b/app-emacs/nix-mode/nix-mode-1.5.0.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp + +DESCRIPTION="GNU Emacs major mode for editing Nix expressions" +HOMEPAGE="https://github.com/NixOS/nix-mode/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/NixOS/${PN}.git" +else + SRC_URI="https://github.com/NixOS/${PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="LGPL-2.1+" +SLOT="0" + +RDEPEND=" + app-emacs/company-mode + app-emacs/magit + app-emacs/mmm-mode + app-emacs/transient +" +BDEPEND=" + ${RDEPEND} +" + +SITEFILE="50${PN}-gentoo.el" |