repo/proj/emacs:master commit in: app-editors/uemacs-pk/files/, app-editors/uemacs-pk/
Ulrich Müller <[email protected]>
| Newsgroups | gmane.linux.gentoo.cvs |
|---|---|
| Message-ID | <1786007198.5ce65c08e4b2b762093263ce23d6653502577d08.ulm@gentoo> |
commit: 5ce65c08e4b2b762093263ce23d6653502577d08
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Thu Aug 6 09:06:38 2026 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Thu Aug 6 09:06:38 2026 +0000
URL: https://gitweb.gentoo.org/repo/proj/emacs.git/commit/?id=5ce65c08
app-editors/uemacs-pk: Live ebuild for hunspell branch
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
app-editors/uemacs-pk/files/uemacs-pk-cflags.patch | 28 ++++++++++++++++
app-editors/uemacs-pk/uemacs-pk-9999-r100.ebuild | 38 ++++++++++++++++++++++
2 files changed, 66 insertions(+)
diff --git a/app-editors/uemacs-pk/files/uemacs-pk-cflags.patch b/app-editors/uemacs-pk/files/uemacs-pk-cflags.patch
new file mode 100644
index 00000000..440dcee8
--- /dev/null
+++ b/app-editors/uemacs-pk/files/uemacs-pk-cflags.patch
@@ -0,0 +1,28 @@
+--- a/Makefile
++++ b/Makefile
+@@ -28,13 +28,14 @@
+ WARNINGS=-Wall -Wstrict-prototypes
+ DEFINES=-DPOSIX -D_GNU_SOURCE
+
+-CFLAGS=-O2 $(WARNINGS) $(DEFINES)
++CFLAGS=-O2 $(WARNINGS)
+
+ LIBS=ncurses hunspell
+ BINDIR=$(HOME)/bin
+ LIBDIR=$(HOME)/lib
+
+-CFLAGS += $(shell pkg-config --cflags $(LIBS))
++PKG_CONFIG_CFLAGS=$(shell pkg-config --cflags $(LIBS))
++ALL_CFLAGS=$(CFLAGS) $(DEFINES) $(PKG_CONFIG_CFLAGS)
+ LDLIBS += $(shell pkg-config --libs $(LIBS))
+
+ $(PROGRAM): $(OBJ)
+@@ -43,7 +44,7 @@
+
+ .c.o:
+ $(E) " CC " $@
+- $(Q) ${CC} ${CFLAGS} -c $<
++ $(Q) ${CC} ${ALL_CFLAGS} -c $<
+
+ # The whole thing builds in a couple of seconds, so it is not worth
+ # knowing which object needs which header - they all depend on all of
diff --git a/app-editors/uemacs-pk/uemacs-pk-9999-r100.ebuild b/app-editors/uemacs-pk/uemacs-pk-9999-r100.ebuild
new file mode 100644
index 00000000..da473254
--- /dev/null
+++ b/app-editors/uemacs-pk/uemacs-pk-9999-r100.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=9
+
+EGIT_REPO_URI="https://git.kernel.org/pub/scm/editors/uemacs/uemacs.git"
+EGIT_BRANCH="hunspell"
+EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
+inherit git-r3 toolchain-funcs
+
+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"
+
+RDEPEND="sys-libs/ncurses:0=
+ app-text/hunspell"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}/${PN}-cflags.patch" )
+
+src_compile() {
+ emake V=1 \
+ CC="$(tc-getCC)" \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}"
+}
+
+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
+}