diff --git a/app-editors/joe/Manifest b/app-editors/joe/Manifest index 8bb2678238450..1c1a18e06bc21 100644 --- a/app-editors/joe/Manifest +++ b/app-editors/joe/Manifest @@ -1 +1,2 @@ DIST joe-4.6.tar.gz 1895046 BLAKE2B fbf53d3b5b066cb32bb26b08d7d314a3bb89ac5ae22db498cdf3597bf8cb322bd9aa05543debd47ac7380a33982c388e13f38c60747503494c582393ae8eb13d SHA512 3dd64a994fb3d352a12bf027ef16d57d14ac2577fd63fb6b6e25cae46052befaa7c15dc029bff2f8c3275df90f0343bd46313601055d97277ea4540e109fbe82 +DIST joe-4.7.tar.gz 1973126 BLAKE2B 75dd747dbcfa3c95e4bac4268c450ec7421040ea499e9fb6dbcb100b95288f7fad9312d4843e533931dd1da257dffd9e5547567145964621579d930bc50f8458 SHA512 7f7c47e9851d2c6fe41059c372dd9343ab19d389a91923ffbc0affa206bb2fb4977146b9af5a41d5623cecca27f9da9e488de31e8c7355e88d2a8ae045dc7b11 diff --git a/app-editors/joe/files/joe-4.7-db.patch b/app-editors/joe/files/joe-4.7-db.patch new file mode 100644 index 0000000000000..7c8dc3ecc36e2 --- /dev/null +++ b/app-editors/joe/files/joe-4.7-db.patch @@ -0,0 +1,11 @@ +--- a/desktop/Makefile.am ++++ b/desktop/Makefile.am +@@ -2,8 +2,3 @@ include $(top_srcdir)/Makevars + + dist_desktop_DATA = joe.desktop jmacs.desktop jstar.desktop jpico.desktop + +-update-databases: +- -update-desktop-database $(desktopdir) +- +-install-data-hook: update-databases +-uninstall-hook: update-databases diff --git a/app-editors/joe/files/joe-4.7-signal-check.patch b/app-editors/joe/files/joe-4.7-signal-check.patch new file mode 100644 index 0000000000000..f748afd4e0f06 --- /dev/null +++ b/app-editors/joe/files/joe-4.7-signal-check.patch @@ -0,0 +1,19 @@ +This configure check fails for several wrong reasons, +with misleading errors. Make it compile properly. + +--- joe-4.7/acinclude.m4 ++++ joe-4.7/acinclude.m4 +@@ -59,9 +59,10 @@ AC_DEFUN([joe_REINSTALL_SIGHANDLERS], + #include + #endif + +-#ifndef HAVE_SIGHANDLER_T +-typedef RETSIGTYPE (*sighandler_t)(int); +-#endif ++typedef void RETSIGTYPE; ++ ++void set_signal(int signum, sighandler_t handler); ++RETSIGTYPE sigint(int s); + + int nsigint; + diff --git a/app-editors/joe/joe-4.7.ebuild b/app-editors/joe/joe-4.7.ebuild new file mode 100644 index 0000000000000..35b8f0a826e97 --- /dev/null +++ b/app-editors/joe/joe-4.7.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools flag-o-matic xdg-utils + +DESCRIPTION="A free ASCII-Text Screen Editor for UNIX" +HOMEPAGE="https://sourceforge.net/projects/joe-editor/ https://github.com/joe-editor/joe" +SRC_URI="https://downloads.sourceforge.net/joe-editor/${P}.tar.gz" + +LICENSE="GPL-1+ CC-BY-3.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x64-macos ~x64-solaris" +IUSE="xterm" + +DEPEND=">=sys-libs/ncurses-5.2-r2:0=" +RDEPEND="${DEPEND} + xterm? ( >=x11-terms/xterm-239 )" + +PATCHES=( + "${FILESDIR}/${PN}-4.3-tinfo.patch" + "${FILESDIR}/${P}-db.patch" + "${FILESDIR}/${P}-signal-check.patch" +) + +DOCS=( README.md NEWS.md docs/hacking.md docs/man.md ) + +src_prepare() { + default + # Enable xterm mouse support in the rc files + if use xterm; then + pushd "${S}"/rc &>/dev/null || die + local i + for i in *rc*.in; do + sed -e 's/^ -\(mouse\|joexterm\)/-\1/' -i "${i}" || die + done + popd &>/dev/null || die + fi + + # for signal handling + append-cflags -D_GNU_SOURCE + + eautoreconf +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_icon_cache_update + if use xterm; then + elog "To enable full xterm clipboard you need to set the allowWindowOps" + elog "resources to true. This is usually found in /etc/X11/app-defaults/XTerm" + elog "This is false by default due to potential security problems on some" + elog "architectures (see bug #91453)." + fi +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_icon_cache_update +}