summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2024-04-13 13:34:24 +0200
committerMaciej Barć <xgqt@gentoo.org>2024-04-14 00:55:46 +0200
commit86ff2e5384aa9a64776df75ff6e0b7d3a4b02a61 (patch)
treefbb94c1f48f36491507a36ef103b96c74d0d8f7a /app-emacs
parentdev-lang/crystal: drop old 1.12.0 (diff)
downloadgentoo-86ff2e5384aa9a64776df75ff6e0b7d3a4b02a61.tar.gz
gentoo-86ff2e5384aa9a64776df75ff6e0b7d3a4b02a61.tar.bz2
gentoo-86ff2e5384aa9a64776df75ff6e0b7d3a4b02a61.zip
app-emacs/ninja-mode: bump to 1.12.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r--app-emacs/ninja-mode/Manifest1
-rw-r--r--app-emacs/ninja-mode/files/50ninja-mode-gentoo-r1.el3
-rw-r--r--app-emacs/ninja-mode/ninja-mode-1.12.0.ebuild31
3 files changed, 35 insertions, 0 deletions
diff --git a/app-emacs/ninja-mode/Manifest b/app-emacs/ninja-mode/Manifest
index 4ccdb98ca1a4..5a84814e8171 100644
--- a/app-emacs/ninja-mode/Manifest
+++ b/app-emacs/ninja-mode/Manifest
@@ -1 +1,2 @@
DIST ninja-1.11.1.tar.gz 229479 BLAKE2B c96cf7c319b7abd65f644465688d256f8b3a576c4616d0c63852e25dd0dc5f63c66708d429d8dddb6228502eb147211a86a5dd369b80ec2228902b370d2343e5 SHA512 1bca38877c70ee6613f347ffccef5adc02ba0a3947c62ae004ea97f918442b5a3de92378e4f820ae2a7676bc7609d25fbc7d41f6cfb3a61e5e4b26ec3639e403
+DIST ninja-1.12.0.tar.gz 240291 BLAKE2B e7d721ab62164574b076f7cbf6d40fd2ee950534d124a58f5fe9e09bdae5895c8dc9dd7636a9f2f2b79774d6d9ba5f831e2c8b370826029af060fdc80fdc207f SHA512 167cd838ad47815183b79302a6e19227d956e634ae9d4211f0895ea9f4d893932e1154a765a9d5a1a3167b1a48b398f255fb4f46eb1395a6da11070bda628875
diff --git a/app-emacs/ninja-mode/files/50ninja-mode-gentoo-r1.el b/app-emacs/ninja-mode/files/50ninja-mode-gentoo-r1.el
new file mode 100644
index 000000000000..30b88abef9be
--- /dev/null
+++ b/app-emacs/ninja-mode/files/50ninja-mode-gentoo-r1.el
@@ -0,0 +1,3 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'ninja-mode "ninja-mode" "ninja" t)
+(add-to-list 'auto-mode-alist '("\\.ninja$" . ninja-mode))
diff --git a/app-emacs/ninja-mode/ninja-mode-1.12.0.ebuild b/app-emacs/ninja-mode/ninja-mode-1.12.0.ebuild
new file mode 100644
index 000000000000..5cbb51651d61
--- /dev/null
+++ b/app-emacs/ninja-mode/ninja-mode-1.12.0.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit elisp
+
+DESCRIPTION="GNU Emacs mode for handling Ninja build files"
+HOMEPAGE="https://github.com/ninja-build/ninja/"
+
+if [[ "${PV}" == *9999* ]] ; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/ninja-build/${PN/-mode}.git"
+else
+ SRC_URI="https://github.com/ninja-build/${PN/-mode}/archive/v${PV}.tar.gz
+ -> ${P/-mode}.tar.gz"
+ S="${WORKDIR}/${P/-mode}/misc"
+
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris"
+fi
+
+LICENSE="Apache-2.0"
+SLOT="0"
+
+RDEPEND="
+ !<dev-build/ninja-1.11.1-r4[emacs(-)]
+"
+
+DOCS=()
+SITEFILE="50${PN}-gentoo-r1.el"