commit:     ecf389538066a829e897010ac42602d847ca0110
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 19 12:14:44 2025 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sun Oct 19 12:50:31 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ecf38953

app-emacs/vw-mode: new package; add version 1.0_p20250609

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-emacs/vw-mode/Manifest                     |  1 +
 app-emacs/vw-mode/files/50vw-mode-gentoo.el    |  2 ++
 app-emacs/vw-mode/metadata.xml                 | 24 +++++++++++++++++
 app-emacs/vw-mode/vw-mode-1.0_p20250609.ebuild | 36 ++++++++++++++++++++++++++
 4 files changed, 63 insertions(+)

diff --git a/app-emacs/vw-mode/Manifest b/app-emacs/vw-mode/Manifest
new file mode 100644
index 000000000000..e6e8da89b290
--- /dev/null
+++ b/app-emacs/vw-mode/Manifest
@@ -0,0 +1 @@
+DIST vw-mode-1.0_p20250609.srht.tar.gz 17709 BLAKE2B 
749af7ea32a7fa64ac0daeebf65691c407a4314db0afa1f95aad974247c9756fe9929e0b198e13523ccca5e08e47f9d62808e78b5b9d75211b6cdf34890825c6
 SHA512 
4e74698c66902829ae18d359e834ae711542b794ed8dce4f8c3ac2f46a7673e2e5b7d5a728984a5388e04fb541cb9bd9ce2dec539af43bc2d67b2a63f041185f

diff --git a/app-emacs/vw-mode/files/50vw-mode-gentoo.el 
b/app-emacs/vw-mode/files/50vw-mode-gentoo.el
new file mode 100644
index 000000000000..86c81d802a29
--- /dev/null
+++ b/app-emacs/vw-mode/files/50vw-mode-gentoo.el
@@ -0,0 +1,2 @@
+(add-to-list 'load-path "@SITELISP@")
+(load "@SITELISP@/vw-mode-autoloads.el" nil t)

diff --git a/app-emacs/vw-mode/metadata.xml b/app-emacs/vw-mode/metadata.xml
new file mode 100644
index 000000000000..faf1e0a5e144
--- /dev/null
+++ b/app-emacs/vw-mode/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+
+<pkgmetadata>
+  <maintainer type="project">
+    <email>[email protected]</email>
+    <name>Gentoo GNU Emacs project</name>
+  </maintainer>
+  <stabilize-allarches/>
+  <longdescription>
+    Major mode for editing programming language descriptions in the
+    style used by the Algol 68 Revised Report.  The syntax of the language
+    is expressed formally using a van-Wijngaarden grammar, also known as
+    VW-grammars or two-level grammars. These grammars have the same
+    expression power than a Turing machine, and can therefore cover much
+    more than the usual BNF-style representations which are restricted to
+    what can be expressed by context-free grammars.  Pragmatic annotations
+    and cross-references complement the grammar rules, which are organized
+    in numbered sections.
+  </longdescription>
+  <upstream>
+    <remote-id type="sourcehut">~jemarch/vw-mode</remote-id>
+  </upstream>
+</pkgmetadata>

diff --git a/app-emacs/vw-mode/vw-mode-1.0_p20250609.ebuild 
b/app-emacs/vw-mode/vw-mode-1.0_p20250609.ebuild
new file mode 100644
index 000000000000..ea50f616ef18
--- /dev/null
+++ b/app-emacs/vw-mode/vw-mode-1.0_p20250609.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit elisp
+
+DESCRIPTION="Major mode for editing VW Grammars for GNU Emacs"
+HOMEPAGE="https://git.sr.ht/~jemarch/vw-mode/";
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://git.sr.ht/~jemarch/${PN}";
+else
+       if [[ "${PV}" == *_p20250609 ]] ; then
+               COMMIT="d9c537065074f5752458f481a09faa93b244ce05"
+       fi
+
+       SRC_URI="https://git.sr.ht/~jemarch/${PN}/archive/${COMMIT}.tar.gz
+               -> ${P}.srht.tar.gz"
+       S="${WORKDIR}/${PN}-${COMMIT}"
+
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+DOCS=( README.md abc.vw )
+SITEFILE="50${PN}-gentoo.el"
+
+src_compile() {
+       elisp_src_compile
+       elisp-make-autoload-file
+}

Reply via email to