app-emacs/gnuserv: Fix byte-compilation with Emacs 28

Update HOMEPAGE and SRC_URI.

Closes: https://bugs.gentoo.org/836892
Signed-off-by: Ulrich Müller <ulm@gentoo.org>
This commit is contained in:
Ulrich Müller
2022-04-06 10:05:49 +02:00
parent 5f5b77963d
commit 158a78e014
3 changed files with 60 additions and 9 deletions

View File

@@ -0,0 +1,36 @@
https://bugs.gentoo.org/836892
--- gnuserv-3.12.8/gnuserv.el
+++ gnuserv-3.12.8/gnuserv.el
@@ -98,31 +98,6 @@
:group 'gnuserv)
-;; Provide the old variables as aliases, to avoid breaking .emacs
-;; files. However, they are obsolete and should be converted to the
-;; new forms. This ugly crock must be before the variable
-;; declaration, or the scheme fails.
-
-(define-obsolete-variable-alias 'server-frame 'gnuserv-frame)
-(define-obsolete-variable-alias 'server-done-function
- 'gnuserv-done-function)
-(define-obsolete-variable-alias 'server-done-temp-file-function
- 'gnuserv-done-temp-file-function)
-(define-obsolete-variable-alias 'server-find-file-function
- 'gnuserv-find-file-function)
-(define-obsolete-variable-alias 'server-program
- 'gnuserv-program)
-(define-obsolete-variable-alias 'server-visit-hook
- 'gnuserv-visit-hook)
-(define-obsolete-variable-alias 'server-done-hook
- 'gnuserv-done-hook)
-(define-obsolete-variable-alias 'server-kill-quietly
- 'gnuserv-kill-quietly)
-(define-obsolete-variable-alias 'server-temp-file-regexp
- 'gnuserv-temp-file-regexp)
-(define-obsolete-variable-alias 'server-make-temp-file-backup
- 'gnuserv-make-temp-file-backup)
-
;;;###autoload
(defcustom gnuserv-frame nil
"*The frame to be used to display all edited files.

View File

@@ -0,0 +1,15 @@
--- gnuserv-3.12.8/gnudoit
+++ gnuserv-3.12.8/gnudoit
@@ -27,10 +27,10 @@
if [ $# -eq 0 ]
then
- exec gnuclient $quick -batch
+ exec gnuclient-emacs $quick -batch
else
# I use "$*" instead of "$@" intentionally -- I don't want to have the
# arguments split.
- exec gnuclient $quick -batch -eval "$*"
+ exec gnuclient-emacs $quick -batch -eval "$*"
fi

View File

@@ -6,8 +6,9 @@ EAPI=7
inherit elisp desktop xdg-utils
DESCRIPTION="Attach to an already running Emacs"
HOMEPAGE="http://meltin.net/hacks/emacs/"
SRC_URI="http://meltin.net/hacks/emacs/src/${P}.tar.gz"
HOMEPAGE="https://web.archive.org/web/20160508134736/http://martin.meltin.net/hacks/emacs/
https://www.emacswiki.org/emacs/GnuClient"
SRC_URI="https://web.archive.org/web/20150908031821/http://martin.meltin.net/sites/martin.meltin.net/files/hacks/${P}.tar.gz"
LICENSE="GPL-2+"
SLOT="0"
@@ -19,15 +20,14 @@ RDEPEND=">=app-eselect/eselect-emacs-1.15
DEPEND="${RDEPEND}
X? ( x11-base/xorg-proto )"
PATCHES=(
"${FILESDIR}"/${P}-backquotes.patch
"${FILESDIR}"/${P}-process-query.patch
"${FILESDIR}"/${P}-gnudoit.patch
"${FILESDIR}"/${P}-emacs-28.patch
)
SITEFILE="50${PN}-gentoo.el"
src_prepare() {
eapply "${FILESDIR}"/${P}-backquotes.patch
eapply "${FILESDIR}"/${P}-process-query.patch
sed -i -e 's/exec gnuclient/&-emacs/' gnudoit || die
eapply_user
}
src_configure() {
econf $(use_enable X xauth) \
--x-includes="${EPREFIX}"/usr/include \