summaryrefslogtreecommitdiff
path: root/app-emacs/ert-runner/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
committerV3n3RiX <venerix@koprulu.sector>2022-05-12 16:42:50 +0300
commit752d6256e5204b958b0ef7905675a940b5e9172f (patch)
tree330d16e6362a49cbed8875a777fe641a43376cd3 /app-emacs/ert-runner/files
parent0c100b7dd2b30e75b799d806df4ef899fd98e1ea (diff)
gentoo resync : 12.05.2022
Diffstat (limited to 'app-emacs/ert-runner/files')
-rw-r--r--app-emacs/ert-runner/files/50ert-runner-gentoo.el1
-rw-r--r--app-emacs/ert-runner/files/ert-runner-bin-launcher-fix.patch30
2 files changed, 31 insertions, 0 deletions
diff --git a/app-emacs/ert-runner/files/50ert-runner-gentoo.el b/app-emacs/ert-runner/files/50ert-runner-gentoo.el
new file mode 100644
index 000000000000..431f7e90ae73
--- /dev/null
+++ b/app-emacs/ert-runner/files/50ert-runner-gentoo.el
@@ -0,0 +1 @@
+(add-to-list 'load-path "@SITELISP@")
diff --git a/app-emacs/ert-runner/files/ert-runner-bin-launcher-fix.patch b/app-emacs/ert-runner/files/ert-runner-bin-launcher-fix.patch
new file mode 100644
index 000000000000..80f079ba867b
--- /dev/null
+++ b/app-emacs/ert-runner/files/ert-runner-bin-launcher-fix.patch
@@ -0,0 +1,30 @@
+index 97d4ff4..fc14077 100755
+--- a/bin/ert-runner
++++ b/bin/ert-runner
+@@ -1,6 +1,6 @@
+ #!/usr/bin/env bash
+
+-ERT_RUNNER="$(dirname $(dirname $0))/ert-runner.el"
++ERT_RUNNER="@SITELISP@/ert-runner.el"
+
+ function inside_emacs_24 {
+ if [[ -n $INSIDE_EMACS ]] &&
+@@ -31,9 +31,9 @@ if has_option "--win" $@ || has_option "--no-win" $@ ; then
+ export ERT_RUNNER_OUTFILE=$(mktemp /tmp/ert-runner.XXX)
+
+ if has_option "--win" $@; then
+- "$ERT_RUNNER_EMACS" --load "$ERT_RUNNER" -Q
++ "$ERT_RUNNER_EMACS" --load "$ERT_RUNNER" -q
+ else
+- "$ERT_RUNNER_EMACS" -nw --load "$ERT_RUNNER" -Q
++ "$ERT_RUNNER_EMACS" -nw --load "$ERT_RUNNER" -q
+ fi
+
+ STATUS=$?
+@@ -43,5 +43,5 @@ if has_option "--win" $@ || has_option "--no-win" $@ ; then
+
+ exit $STATUS
+ else
+- "$ERT_RUNNER_EMACS" --script "$ERT_RUNNER" -Q
++ "$ERT_RUNNER_EMACS" --script "$ERT_RUNNER" -q
+ fi