repo/gentoo:master commit in: app-editors/uemacs-pk/, app-editors/uemacs-pk/files/

Ulrich Müller <[email protected]>
Newsgroups gmane.linux.gentoo.cvs
Message-ID <1786098614.2681d844937090981b97fd88b37a01e3578ae528.ulm@gentoo>
commit:     2681d844937090981b97fd88b37a01e3578ae528
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Aug  7 10:25:46 2026 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Aug  7 10:30:14 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2681d844

app-editors/uemacs-pk: add 4.0.15_p20260806

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 app-editors/uemacs-pk/Manifest                     |  1 +
 .../files/uemacs-pk-4.0.15_p20260806-gentoo.patch  | 12 ++++++
 app-editors/uemacs-pk/metadata.xml                 |  5 +++
 .../uemacs-pk/uemacs-pk-4.0.15_p20260806.ebuild    | 47 ++++++++++++++++++++++
 4 files changed, 65 insertions(+)

diff --git a/app-editors/uemacs-pk/Manifest b/app-editors/uemacs-pk/Manifest
index 720beaf94bc7..86df00e5d12e 100644
--- a/app-editors/uemacs-pk/Manifest
+++ b/app-editors/uemacs-pk/Manifest
@@ -1 +1,2 @@
 DIST uemacs-4.0.15_p20210330.tar.xz 151800 BLAKE2B 910a8f317bfeaa7baf729b85d622814bbf40077b38f69265fa815b3777d6a73c2e3515c0dffab8da85d4e8b8f568fbf6008029a45d43677180356d28706ffdd3 SHA512 12f58ce8b4580dcad4591491fc9413a4d5e930e5b85811097bb67b4e2ab31feb252671dc5a42c4be24928bfb6ab6186cedd03b828c7ca72dcc49d8689f4cba7b
+DIST uemacs-pk-4.0.15_p20260806.tar.xz 133416 BLAKE2B f0b2f32f3fa11a940466c42b48e2ff0c66086fae5a7dda8bf35caf0a87e44f567798e77418d9c7c025f4d54db4ff5b7cc258be63507b0f9ebbef9e0826918ce5 SHA512 ff2cc41bd1144a71497114c0dba111f8fa14911596aaf0f9e97b0242486c9499bfb0aba5190ab2a05f10df39252ac5713b71476dd7f08e15fe578d5504ec422b

diff --git a/app-editors/uemacs-pk/files/uemacs-pk-4.0.15_p20260806-gentoo.patch b/app-editors/uemacs-pk/files/uemacs-pk-4.0.15_p20260806-gentoo.patch
new file mode 100644
index 000000000000..e15503eeaa17
--- /dev/null
+++ b/app-editors/uemacs-pk/files/uemacs-pk-4.0.15_p20260806-gentoo.patch
@@ -0,0 +1,12 @@
+--- uemacs-pk/epath.h
++++ uemacs-pk/epath.h
+@@ -11,8 +11,7 @@
+ /*	possible names and paths of help files under different OSs	*/
+ static char *pathname[] = {
+ 	".emacsrc", "emacs.hlp",
+-	"/usr/global/lib/", "/usr/local/bin/", "/usr/local/lib/",
+-	"/usr/local/", "/usr/lib/", ""
++	"/etc/uemacs-pk/", "/usr/share/uemacs-pk/", ""
+ };
+ 
+ #endif				/* EPATH_H_ */

diff --git a/app-editors/uemacs-pk/metadata.xml b/app-editors/uemacs-pk/metadata.xml
index 7514825f5986..3be0c24643bf 100644
--- a/app-editors/uemacs-pk/metadata.xml
+++ b/app-editors/uemacs-pk/metadata.xml
@@ -22,4 +22,9 @@
   fixes, adds some new functionality and comfort but does not sacrifice the
   best things (small size and portability).
 </longdescription>
+<use>
+  <flag name="hunspell">
+    Enable spell checking support (<pkg>app-text/hunspell</pkg>)
+  </flag>
+</use>
 </pkgmetadata>

diff --git a/app-editors/uemacs-pk/uemacs-pk-4.0.15_p20260806.ebuild b/app-editors/uemacs-pk/uemacs-pk-4.0.15_p20260806.ebuild
new file mode 100644
index 000000000000..583fedc5948c
--- /dev/null
+++ b/app-editors/uemacs-pk/uemacs-pk-4.0.15_p20260806.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=9
+
+inherit toolchain-funcs
+
+if [[ ${PV##*.} = 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git"
+	EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
+else
+	# git archive --prefix=${PN}/ HEAD | xz > ${P}.tar.xz
+	SRC_URI="https://distfiles.gentoo.org/pub/proj/emacs/${P}.tar.xz"
+	KEYWORDS="~amd64 ~riscv ~x86"
+fi
+
+DESCRIPTION="uEmacs/PK is an enhanced version of MicroEMACS"
+HOMEPAGE="https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git"
+S="${WORKDIR}/${PN}"
+
+LICENSE="free-noncomm"
+SLOT="0"
+IUSE="hunspell"
+
+RDEPEND="sys-libs/ncurses:0=
+	hunspell? ( app-text/hunspell:= )"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=("${FILESDIR}"/${PN}-4.0.15_p20260806-gentoo.patch)
+
+src_compile() {
+	emake V=1 \
+		CC="$(tc-getCC)" \
+		CFLAGS="${CFLAGS}" \
+		LDFLAGS="${LDFLAGS}" \
+		HUNSPELL="$(usex hunspell 1 0)"
+}
+
+src_install() {
+	dobin em
+	insinto /usr/share/${PN}
+	doins emacs.hlp
+	newins emacs.rc .emacsrc
+	dodoc README readme.39e emacs.ps UTF-8-demo.txt
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.