diff options
author | 2024-11-04 00:11:44 +0100 | |
---|---|---|
committer | 2024-11-04 01:19:32 +0100 | |
commit | 1099f0eb0254e21c6931babc8ae013e9780522c2 (patch) | |
tree | fcff22a3859974f5202d1e3b0c3d2ae40208d270 /app-emacs | |
parent | app-containers/devcontainer: bump to 0.72.0 (diff) | |
download | gentoo-1099f0eb0254e21c6931babc8ae013e9780522c2.tar.gz gentoo-1099f0eb0254e21c6931babc8ae013e9780522c2.tar.bz2 gentoo-1099f0eb0254e21c6931babc8ae013e9780522c2.zip |
app-emacs/racket-mode: bump to 1_p20241031
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/racket-mode/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/racket-mode/racket-mode-1_p20241031.ebuild | 78 |
2 files changed, 79 insertions, 0 deletions
diff --git a/app-emacs/racket-mode/Manifest b/app-emacs/racket-mode/Manifest index 673ec2fb9952..f92323a37830 100644 --- a/app-emacs/racket-mode/Manifest +++ b/app-emacs/racket-mode/Manifest @@ -1,2 +1,3 @@ DIST racket-mode-1_p20240718.tar.gz 382546 BLAKE2B 0d6b33a183751cb9601f9532645b45c01c7fdcc1d1902f316f7ed3446dec943cd65f9a0c0204051509d2e607e68647146b7c8719f75fb0d030a2dac299266195 SHA512 7e262a93378ddde154d16b3349f29faf57531e684b9aa26579dadc0746306917398ca37ee11a243b5ad3c33f1ba41b3650f68579354a260b76ed6cee0765a535 DIST racket-mode-1_p20241001.tar.gz 387873 BLAKE2B ad95eeed061a43b681919a6b14688d8755ad9c83b1ec14fe835ae92e692c1f7431bd986000bce95063094146604154bd38767c3db83b6a7756805269997829dc SHA512 60672f1e8ed46bffc89686104971c48382ffd46ffdab0c2caa86f06349425ac8a2de9770608953249949caab6bd8b0d914b21dfd06f1cfda5fd87f76d92a259e +DIST racket-mode-1_p20241031.tar.gz 391981 BLAKE2B a2e81a6cf3fe79bdd4c6ca0d92bd3e62befaccd0b7ac53d4d801fad0eb98a409e03d5d7c94bbc15adcbc864a93aef3519eb97a4812f7971c954e53a0c9fbe3f9 SHA512 1003c4fb6176d5740be990380243870822a92a0d9c8db7c633a18334b7c9dc46b0821d4b351386744ba69a0cf2ccbe9b0cb1090dc5c11809ff7770328950f559 diff --git a/app-emacs/racket-mode/racket-mode-1_p20241031.ebuild b/app-emacs/racket-mode/racket-mode-1_p20241031.ebuild new file mode 100644 index 000000000000..1fd6d721405a --- /dev/null +++ b/app-emacs/racket-mode/racket-mode-1_p20241031.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +[[ "${PV}" == *p20241031 ]] && COMMIT="b0e5f0539a564d972b9df09a7dff44b710999971" + +inherit elisp + +DESCRIPTION="Emacs modes for Racket: edit, REPL, check-syntax, debug, profile, and more" +HOMEPAGE="https://www.racket-mode.com/ + https://github.com/greghendershott/racket-mode/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/greghendershott/${PN}.git" +else + SRC_URI="https://github.com/greghendershott/${PN}/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${PN}-${COMMIT}" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-scheme/racket:=[-minimal] +" +BDEPEND=" + ${RDEPEND} +" + +ELISP_REMOVE=" + test/racket/hash-lang-test.rkt +" +PATCHES=( + "${FILESDIR}/${PN}-rkt-source-dir.patch" +) + +DOCS=( CONTRIBUTING.org README.org THANKS.org ) +ELISP_TEXINFO="doc/${PN}.texi" +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + elisp_src_prepare + + sed "s|@SITEETC@|${SITEETC}/${PN}|" -i "${S}/racket-util.el" || die +} + +src_compile() { + elisp_src_compile + + # Equivalent to compiling from Emacs with "racket-mode-start-faster", + # because this is installed globally we have to 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() { + # Set "PLTUSERHOME" to a safe temp directory to prevent writing to "~". + local -x PLTUSERHOME="${T}/racket-mode/test-racket" + + emake test-racket +} + +src_install() { + elisp_src_install + + # Install Racket files to "${SITEETC}". + insinto "${SITEETC}/${PN}" + doins -r racket +} |