summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-04-20 00:01:02 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-04-20 00:24:38 +0200
commite0f8d4ccda1eede4d1c1e30708f863eb0075754c (patch)
treee26eb3eb18146bf1177c76460baa0bd4537eb50b /app-emacs/servant/files
parentapp-emacs/web-server: new package; add version 0.1.2_p20210708 (diff)
downloadgentoo-e0f8d4ccda1eede4d1c1e30708f863eb0075754c.tar.gz
gentoo-e0f8d4ccda1eede4d1c1e30708f863eb0075754c.tar.bz2
gentoo-e0f8d4ccda1eede4d1c1e30708f863eb0075754c.zip
app-emacs/servant: new package; add version 0.3.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/servant/files')
-rw-r--r--app-emacs/servant/files/50servant-gentoo.el1
-rw-r--r--app-emacs/servant/files/servant-bin-launcher-fix.patch13
2 files changed, 14 insertions, 0 deletions
diff --git a/app-emacs/servant/files/50servant-gentoo.el b/app-emacs/servant/files/50servant-gentoo.el
new file mode 100644
index 000000000000..431f7e90ae73
--- /dev/null
+++ b/app-emacs/servant/files/50servant-gentoo.el
@@ -0,0 +1 @@
+(add-to-list 'load-path "@SITELISP@")
diff --git a/app-emacs/servant/files/servant-bin-launcher-fix.patch b/app-emacs/servant/files/servant-bin-launcher-fix.patch
new file mode 100644
index 000000000000..33f33ef928e8
--- /dev/null
+++ b/app-emacs/servant/files/servant-bin-launcher-fix.patch
@@ -0,0 +1,13 @@
+diff --git a/bin/servant b/bin/servant
+index dc8fabe..0cfc72c 100755
+--- a/bin/servant
++++ b/bin/servant
+@@ -6,6 +6,6 @@ else
+ SERVANT_EMACS="${EMACS:-emacs}"
+ fi
+
+-SERVANT_HOME="$(dirname $(dirname $0))"
++SERVANT_HOME="@SITELISP@"
+
+-${SERVANT_EMACS} -Q --script "${SERVANT_HOME}/servant-cli.el" -- "$@"
++${SERVANT_EMACS} -q --script "${SERVANT_HOME}/servant-cli.el" -- "$@"