commit:     72518c36e23a85cf855dd2b611423c329e766166
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu Feb  5 12:48:18 2026 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Feb  5 12:48:18 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=72518c36

app-editors/nedit: update EAPI 7 -> 8

Bug: https://bugs.gentoo.org/945263
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 app-editors/nedit/Manifest            |  1 +
 app-editors/nedit/nedit-5.7-r1.ebuild | 78 +++++++++++++++++++++++++++++++++++
 2 files changed, 79 insertions(+)

diff --git a/app-editors/nedit/Manifest b/app-editors/nedit/Manifest
index 80d3274dd601..9b1a7d64d318 100644
--- a/app-editors/nedit/Manifest
+++ b/app-editors/nedit/Manifest
@@ -1,2 +1,3 @@
+DIST nedit-5.7-patches.tar.xz 5752 BLAKE2B 
dd647cbb18f953dab2723ae26212b758a49f1e182620b803d69a78586a6be9f5b3841f71b98175a3b5fa0be11e3cb4bbaf82f2b0e999ae75cefc6dc7a1d4bb14
 SHA512 
3d180668fd4a89fee7527dc475dbe84954f68d08e857c5cb84f0ccd38882ceb5891ccda7584380abb569bde23b069cbff707dbb2fff40985302dade7074471ba
 DIST nedit-5.7-src.tar.gz 1344754 BLAKE2B 
595b652050569cc480e29931088d8780a1d815b3e5d79529bf60a83142f9ce5e11cd5b59bead42baf032b8530388081f10f054230b0bd181ba59d9179b59c49a
 SHA512 
cf242d2f8eea4c78649dbeb741f545a3dc8ffaf5bb36239794a4b2635420e5445fa1c77472add79c05ec081d71a0b9df4431f48db365a71692e43869fd4e7932
 DIST nedit.png.xz 14000 BLAKE2B 
dd50757a52fe3a2c57490cd0783f323877dc23733acc28b2c303d73724b6b66ed73dc819827ea52b96410fd7264a991040f00d609070bd87945d406328567ca0
 SHA512 
69d5dbea98a5b4065e73cc5c846125c5059e3a50ee1fa3ec4ef99f8f868cf3729ffe73510729534289a91d1a54683b84b6a37bc640c60205be709732dfcb01e3

diff --git a/app-editors/nedit/nedit-5.7-r1.ebuild 
b/app-editors/nedit/nedit-5.7-r1.ebuild
new file mode 100644
index 000000000000..8507bc14ec1b
--- /dev/null
+++ b/app-editors/nedit/nedit-5.7-r1.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit desktop toolchain-funcs
+
+DESCRIPTION="Multi-purpose text editor for the X Window System"
+HOMEPAGE="https://sourceforge.net/projects/nedit";
+SRC_URI="
+       
https://downloads.sourceforge.net/project/${PN}/${PN}-source/${P}-src.tar.gz
+       https://dev.gentoo.org/~jlec/distfiles/${PN}.png.xz
+       https://dev.gentoo.org/~soap/distfiles/${PN}-5.7-patches.tar.xz";
+S="${WORKDIR}/${PN}-${PV}"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~mips ~ppc ~riscv ~sparc ~x86"
+IUSE="doc"
+
+RDEPEND="
+       >=x11-libs/motif-2.3:0
+       x11-libs/libXt
+       x11-libs/libX11"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       || ( dev-util/yacc app-alternatives/yacc )
+       dev-lang/perl"
+
+PATCHES=( "${WORKDIR}"/patches/ )
+
+src_prepare() {
+       #respecting LDFLAGS, bug #208189
+       default
+
+       sed \
+               -e "s|bin/|${EPREFIX}/bin/|g" \
+               -i Makefile source/preferences.c source/help_data.h 
source/nedit.c Xlt/Makefile || die
+       sed \
+               -e "s|nc|neditc|g" -i doc/nc.pod || die
+       sed -i -e "s|CFLAGS=-O|CFLAGS=${CFLAGS}|" -e "s|check_tif_rule||" \
+               makefiles/Makefile.linux || die
+       sed -i -e "s|CFLAGS=-O|CFLAGS=${CFLAGS}|"                  \
+                  -e "s|MOTIFDIR=/usr/local|MOTIFDIR=${EPREFIX}/usr|" \
+                  -e "s|-lX11|-lX11 -lXmu -liconv|"                   \
+                  -e "s|check_tif_rule||"                             \
+               makefiles/Makefile.macosx || die
+}
+
+src_compile() {
+       case "${CHOST}" in
+               *-darwin*)
+                       emake CC="$(tc-getCC)" AR="$(tc-getAR)" macosx
+                       ;;
+               *-linux*)
+                       emake CC="$(tc-getCC)" AR="$(tc-getAR)" linux
+                       ;;
+       esac
+       if use doc; then
+               emake VERSION="NEdit ${PV}" -C doc all
+       fi
+}
+
+src_install() {
+       dobin source/nedit
+       newbin source/nc neditc
+
+       make_desktop_entry "${PN}"
+       doicon "${WORKDIR}/${PN}.png"
+
+       if use doc; then
+               newman doc/nedit.man nedit.1
+               newman doc/nc.man neditc.1
+
+               dodoc README ReleaseNotes ChangeLog
+               dodoc doc/nedit.doc doc/NEdit.ad doc/faq.txt doc/nedit.html
+       fi
+}

Reply via email to