commit: f3d90e269273a2d88238fe693adf46ef1778541b
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 25 12:02:05 2026 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Wed Feb 25 12:02:05 2026 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3d90e26
app-editors/uemacs-pk: add 4.0.15_p20260224
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
app-editors/uemacs-pk/Manifest | 1 +
.../files/uemacs-pk-4.0.15_p20260224-gentoo.patch | 23 +++++++++++++
.../uemacs-pk/uemacs-pk-4.0.15_p20260224.ebuild | 38 ++++++++++++++++++++++
3 files changed, 62 insertions(+)
diff --git a/app-editors/uemacs-pk/Manifest b/app-editors/uemacs-pk/Manifest
index f3254286f52b..de7992ca618f 100644
--- a/app-editors/uemacs-pk/Manifest
+++ b/app-editors/uemacs-pk/Manifest
@@ -1 +1,2 @@
DIST uemacs-4.0.15_p20180719.tar.xz 151748 BLAKE2B
66572d3b4eb54310b7468a43fa718faa78aae8070a8675018f8dccc38d2dcb8e93b41942f49ca28b7c8ee5d100b541ecebfa2adc9a84f121a178ade0903029b1
SHA512
0baa273d5f8df75976d01acbe69b2bca7ec803c8a40364ebded39d16874426874af7b7547774c211fbbb96c82fcb69aaf75f8fa5fd3e95422ee105e6be7f9564
+DIST uemacs-4.0.15_p20260224.tar.xz 125360 BLAKE2B
e7f98012a60a686493d1e4653b24696957813a5d0158e29fa76eb3d106217fdabea5bdf90ba6e731b9d196dfb3562d3894c6c7e4b7511d789556d40778a7ffea
SHA512
b9d7be5099d9fedb082a67bbdd459047f056b73a95812ae467d00841479931d49bedfd90ad04d720170ec5bfc78c60a935378c8aeb32f497e5810e35aa336528
diff --git
a/app-editors/uemacs-pk/files/uemacs-pk-4.0.15_p20260224-gentoo.patch
b/app-editors/uemacs-pk/files/uemacs-pk-4.0.15_p20260224-gentoo.patch
new file mode 100644
index 000000000000..5fbadde48fa7
--- /dev/null
+++ b/app-editors/uemacs-pk/files/uemacs-pk-4.0.15_p20260224-gentoo.patch
@@ -0,0 +1,23 @@
+--- uemacs/Makefile
++++ uemacs/Makefile
+@@ -35,7 +35,7 @@
+ WARNINGS=-Wall -Wstrict-prototypes
+ DEFINES=-DPOSIX -D_GNU_SOURCE
+
+-CFLAGS=-O2 $(WARNINGS) $(DEFINES)
++CFLAGS=$(MY_CFLAGS) $(DEFINES)
+
+ LIBS=ncurses hunspell
+ BINDIR=$(HOME)/bin
+--- uemacs/epath.h
++++ uemacs/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/uemacs-pk-4.0.15_p20260224.ebuild
b/app-editors/uemacs-pk/uemacs-pk-4.0.15_p20260224.ebuild
new file mode 100644
index 000000000000..f6ec9ddee194
--- /dev/null
+++ b/app-editors/uemacs-pk/uemacs-pk-4.0.15_p20260224.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=9
+
+inherit toolchain-funcs
+
+DESCRIPTION="uEmacs/PK is an enhanced version of MicroEMACS"
+HOMEPAGE="https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git"
+# snapshot from git repo
+SRC_URI="https://dev.gentoo.org/~ulm/distfiles/uemacs-${PV}.tar.xz"
+S="${WORKDIR}/uemacs"
+
+LICENSE="free-noncomm"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv ~x86"
+
+RDEPEND="app-text/hunspell:=
+ sys-libs/ncurses:0="
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=("${FILESDIR}"/${PN}-4.0.15_p20260224-gentoo.patch)
+
+src_compile() {
+ emake V=1 \
+ CC="$(tc-getCC)" \
+ MY_CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+src_install() {
+ dobin em
+ insinto /usr/share/${PN}
+ doins emacs.hlp
+ newins emacs.rc .emacsrc
+ dodoc README README.md readme.39e emacs.ps UTF-8-demo.txt
+}