diff options
Diffstat (limited to 'app-emacs/racket-mode')
-rw-r--r-- | app-emacs/racket-mode/files/50racket-mode-gentoo.el | 3 | ||||
-rw-r--r-- | app-emacs/racket-mode/files/racket-mode-racket-util.el-defvar.patch | 12 | ||||
-rw-r--r-- | app-emacs/racket-mode/racket-mode-20220120-r1.ebuild (renamed from app-emacs/racket-mode/racket-mode-20220120.ebuild) | 5 |
3 files changed, 18 insertions, 2 deletions
diff --git a/app-emacs/racket-mode/files/50racket-mode-gentoo.el b/app-emacs/racket-mode/files/50racket-mode-gentoo.el index 79223161d42b..fd53f002f73a 100644 --- a/app-emacs/racket-mode/files/50racket-mode-gentoo.el +++ b/app-emacs/racket-mode/files/50racket-mode-gentoo.el @@ -4,3 +4,6 @@ (add-to-list 'auto-mode-alist '("\\.rkt\\'" . racket-mode)) (add-to-list 'auto-mode-alist '("\\.rktd\\'" . racket-mode)) (add-to-list 'auto-mode-alist '("\\.rktl\\'" . racket-mode)) + +(setq racket--rkt-source-dir (expand-file-name "./racket/" "@SITEETC@")) +(setq racket--run.rkt (expand-file-name "main.rkt" racket--rkt-source-dir)) diff --git a/app-emacs/racket-mode/files/racket-mode-racket-util.el-defvar.patch b/app-emacs/racket-mode/files/racket-mode-racket-util.el-defvar.patch new file mode 100644 index 000000000000..d9d65c44bb89 --- /dev/null +++ b/app-emacs/racket-mode/files/racket-mode-racket-util.el-defvar.patch @@ -0,0 +1,12 @@ +index 0992711..a8897b4 100644 +--- a/racket-util.el ++++ b/racket-util.el +@@ -93,7 +93,7 @@ When installed as a package, this can be found from the variable + `load-file-name'. When developing interactively, get it from the + .el buffer file name.") + +-(defconst racket--rkt-source-dir ++(defvar racket--rkt-source-dir + (expand-file-name "./racket/" racket--el-source-dir) + "Path to dir of our Racket source files. ") + diff --git a/app-emacs/racket-mode/racket-mode-20220120.ebuild b/app-emacs/racket-mode/racket-mode-20220120-r1.ebuild index f5a0c1b1896a..57ecaaeeaa9a 100644 --- a/app-emacs/racket-mode/racket-mode-20220120.ebuild +++ b/app-emacs/racket-mode/racket-mode-20220120-r1.ebuild @@ -18,10 +18,11 @@ SLOT="0" KEYWORDS="~amd64 ~x86" RDEPEND="dev-scheme/racket:=" -DEPEND="${RDEPEND}" +BDEPEND="${RDEPEND}" DOCS=( CONTRIBUTING.md README.md THANKS.md ) ELISP_TEXINFO="doc/racket-mode.texi" +PATCHES=( "${FILESDIR}/${PN}-racket-util.el-defvar.patch" ) SITEFILE="50${PN}-gentoo.el" src_compile() { @@ -42,6 +43,6 @@ src_install() { elisp_src_install # Install Racket files - insinto "${SITELISP}/${PN}" + insinto "${SITEETC}/${PN}" doins -r racket } |