diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-01-21 16:19:50 +0100 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-01-21 16:25:05 +0100 |
commit | 0e5fac6b660ffada04f1ac66ee503acd7ef88143 (patch) | |
tree | 5a27999a5c6227e3d48907feeedda12c0dc40823 /app-emacs | |
parent | profiles: Bump default PHP targets (diff) | |
download | gentoo-0e5fac6b660ffada04f1ac66ee503acd7ef88143.tar.gz gentoo-0e5fac6b660ffada04f1ac66ee503acd7ef88143.tar.bz2 gentoo-0e5fac6b660ffada04f1ac66ee503acd7ef88143.zip |
app-emacs/racket-mode: install racket files to SITEETC; BDEPEND for raco
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs')
-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 } |