diff options
Diffstat (limited to 'app-emacs/racket-mode')
-rw-r--r-- | app-emacs/racket-mode/Manifest | 7 | ||||
-rw-r--r-- | app-emacs/racket-mode/files/50racket-mode-gentoo.el | 17 | ||||
-rw-r--r-- | app-emacs/racket-mode/files/racket-mode-racket-util.el-defvar.patch | 12 | ||||
-rw-r--r-- | app-emacs/racket-mode/metadata.xml | 25 | ||||
-rw-r--r-- | app-emacs/racket-mode/racket-mode-20220120-r2.ebuild | 48 | ||||
-rw-r--r-- | app-emacs/racket-mode/racket-mode-20220129.ebuild | 47 |
6 files changed, 156 insertions, 0 deletions
diff --git a/app-emacs/racket-mode/Manifest b/app-emacs/racket-mode/Manifest new file mode 100644 index 000000000000..9e163666a8cd --- /dev/null +++ b/app-emacs/racket-mode/Manifest @@ -0,0 +1,7 @@ +AUX 50racket-mode-gentoo.el 799 BLAKE2B 1f0c19ab171427e5404d40eae1fb95f590059c4265df6041bf5ea00a5aa716489f7fb88eeef1c7309810fb41b909e122986cf3b0881bd43eb512c06f9c873598 SHA512 18db7fb5cd7a69a7a4d979ae604dfa1458fb7fd25329ff46043f206395d09245287512bb2feb9e1f7941d63d0af1d7bd1c060ca8026223c2cbd4021ddce57690 +AUX racket-mode-racket-util.el-defvar.patch 419 BLAKE2B 54e494420fcd05c5af76a7c49467bf6d159746493fb978ee8e89e921eec894330c0bd6c8c8444246063a33558d1c7bf3c2888a40621cbbb4b731e326ca22d2e6 SHA512 459934f3bd7dfce2825a1111da39c0961412180ebdb89987242ceefe574009dc92e07c750ad280a351701858f74e4e5128ea831d16bff312aed6979d1f29e273 +DIST racket-mode-20220120.tar.gz 286218 BLAKE2B 9786bc7a3f8127c342f90acebadef8f8468ba1cc27ad42c620554d5a478932317a2ede7061fe521a67ec0c624cea4743a1e6a50050ab2afe6e17ad220f7f7f9e SHA512 034527d62eae1c5ef09a8f5cd2bc5c5d0790bacd7ca180f0851ac6d93a3c897d4c4394d3e446285d1dbf4553fe94140656359df9b72d800202604948d9832901 +DIST racket-mode-20220129.tar.gz 286278 BLAKE2B af0e2c87affa5498b1d1d21947006749ceb6988e43f4a1d11bf730a4d0877481e6806ab4e41cad13b3389049a79f2b4b484f2ded52dfa71a7434128fceae6e44 SHA512 56559da32d7c6bb8b0ef9d04662837cd202ee901781eed6e34ad22f88942d40695c0bf04be1ebf82d80bf3a405301b1ca73193adf631350ce49140b62308701f +EBUILD racket-mode-20220120-r2.ebuild 1199 BLAKE2B ddefb19fcc34248ff73294337476838edd7d4f696ec9894ee9c2e55c3c42da63a975df30d68c260c9badb2d342ffa14362bfde02c418f48e55579b670bd93fec SHA512 b40e09add5c749fd61ebaf317c33d3a718037f21c6aeb064788b0f92a74d42e8243981d72aaf9845572c697ff082b036bd8e615358261221f6e3da21755c745c +EBUILD racket-mode-20220129.ebuild 1139 BLAKE2B ab5833b546aad693a1ac3abca3be512e30498202a5c0bb9bcc44d25eb180a491bfe05f3d334c0405070aaac2737e6a66dd4f7c495562f0022792cbfa5f8b6363 SHA512 7dd3acca14cd2b00418ab52ee82ad676909464435a91b86f4e548acbf2ae54bd9af3db53d4be44de5b6d5c05fe580b69e81444961e3cd5fbb64aabadbfc0f34d +MISC metadata.xml 928 BLAKE2B b8fe9bae8125fc4fb202019993a9d94bce73e335c309857b82bfade99dd050235ded229985172d923c22865c664eea759696e893518d52ddbcba7313c546f1c3 SHA512 6b82633a2655b8de558403cec3db384012e1865427d79d56f7c988f0a4bd98662b87465d9bea8575caf610460ead63d2572d1e5e3674200e6300b485741c2baf diff --git a/app-emacs/racket-mode/files/50racket-mode-gentoo.el b/app-emacs/racket-mode/files/50racket-mode-gentoo.el new file mode 100644 index 000000000000..abebbf987f6f --- /dev/null +++ b/app-emacs/racket-mode/files/50racket-mode-gentoo.el @@ -0,0 +1,17 @@ +(add-to-list 'load-path "@SITELISP@") + +(autoload 'racket-bug-report "racket-bug-report" + "Fill a buffer with data to make a racket-mode bug report." t) +(autoload 'racket-mode "racket-mode" + "Major mode for editing Racket source files." t) +(autoload 'racket-repl "racket-repl" + "Run the Racket REPL and display its buffer in some window." t) +(autoload 'racket-unicode-input-method-enable "racket-unicode-input-method" + "Set input method to `racket-unicode`." t) + +(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/metadata.xml b/app-emacs/racket-mode/metadata.xml new file mode 100644 index 000000000000..f6d885ebc654 --- /dev/null +++ b/app-emacs/racket-mode/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>xgqt@gentoo.org</email> + <name>Maciej Barć</name> + </maintainer> + <maintainer type="project"> + <email>gnu-emacs@gentoo.org</email> + <name>Gentoo GNU Emacs project</name> + </maintainer> + <longdescription> + Emacs major and minor modes for Racket: edit, REPL, check-syntax, debug, + profile, and more. + Racket Mode uses a "back end server" written in Racket, which is + responsible for running files and implementing commands that cannot be + implemented in Emacs Lisp. + Details: https://github.com/greghendershott/racket-mode + </longdescription> + <upstream> + <bugs-to>https://github.com/greghendershott/racket-mode/issues</bugs-to> + <remote-id type="github">greghendershott/racket-mode</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-emacs/racket-mode/racket-mode-20220120-r2.ebuild b/app-emacs/racket-mode/racket-mode-20220120-r2.ebuild new file mode 100644 index 000000000000..f93e0c557e85 --- /dev/null +++ b/app-emacs/racket-mode/racket-mode-20220120-r2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=59b227b1aab315cdaa798648e47c4c4a8f71ddba +NEED_EMACS=25.1 + +inherit elisp + +DESCRIPTION="Emacs modes for Racket: edit, REPL, check-syntax, debug, profile, and more" +HOMEPAGE="https://github.com/greghendershott/racket-mode/" +SRC_URI="https://github.com/greghendershott/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${H}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-scheme/racket:=[-minimal]" +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() { + elisp_src_compile + + # Equivalent to compiling from Emacs with "racket-mode-start-faster", + # as this is installed globally we compile it now. + ebegin "Compiling Racket source files" + find "${S}/racket" -type f -name "*.rkt" -exec raco make -v {} + + eend $? "failed to compile Racket source files" || die +} + +src_test() { + emake test-racket +} + +src_install() { + elisp_src_install + + # Install Racket files + insinto "${SITEETC}/${PN}" + doins -r racket +} diff --git a/app-emacs/racket-mode/racket-mode-20220129.ebuild b/app-emacs/racket-mode/racket-mode-20220129.ebuild new file mode 100644 index 000000000000..1a8a74ac6f9e --- /dev/null +++ b/app-emacs/racket-mode/racket-mode-20220129.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=3027de086eb0b77ac8ae81acceeddab91c66ba0e +NEED_EMACS=25.1 + +inherit elisp + +DESCRIPTION="Emacs modes for Racket: edit, REPL, check-syntax, debug, profile, and more" +HOMEPAGE="https://github.com/greghendershott/racket-mode/" +SRC_URI="https://github.com/greghendershott/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${H}" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-scheme/racket:=[-minimal]" +BDEPEND="${RDEPEND}" + +DOCS=( CONTRIBUTING.md README.md THANKS.md ) +ELISP_TEXINFO="doc/racket-mode.texi" +SITEFILE="50${PN}-gentoo.el" + +src_compile() { + elisp_src_compile + + # Equivalent to compiling from Emacs with "racket-mode-start-faster", + # as this is installed globally we compile it now. + ebegin "Compiling Racket source files" + find "${S}/racket" -type f -name "*.rkt" -exec raco make -v {} + + eend $? "failed to compile Racket source files" || die +} + +src_test() { + emake test-racket +} + +src_install() { + elisp_src_install + + # Install Racket files + insinto "${SITEETC}/${PN}" + doins -r racket +} |