diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-04 04:27:18 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-04 04:27:18 +0100 |
commit | fa275aeb316ed5e68498ca0057b27a1e9c887e26 (patch) | |
tree | 1a167f06787ef709edff61d90f369164a0683705 /app-emacs/racket-mode | |
parent | 9b22dab88308071d43d47cd078b37903900f47d3 (diff) |
gentoo auto-resync : 04:10:2024 - 04:27:17
Diffstat (limited to 'app-emacs/racket-mode')
-rw-r--r-- | app-emacs/racket-mode/Manifest | 2 | ||||
-rw-r--r-- | app-emacs/racket-mode/racket-mode-1_p20241001.ebuild | 78 |
2 files changed, 80 insertions, 0 deletions
diff --git a/app-emacs/racket-mode/Manifest b/app-emacs/racket-mode/Manifest index 75646a79f368..52d46c2f32c5 100644 --- a/app-emacs/racket-mode/Manifest +++ b/app-emacs/racket-mode/Manifest @@ -1,6 +1,8 @@ AUX 50racket-mode-gentoo.el 649 BLAKE2B 38f1bdd21b584283ac2b047f8adf2ad4eb23f8cc6ede247f1dab01dde3b9848a048d07ccc326a8bbf47c2681c7f028a11b8b0b0d8639a2943edb49abcfbb3d83 SHA512 7d05dec9d73a32f0e99e4f6d68689160894a33dcb5585baf11275b63cdde70820b6be09bb1e908aad38fa33714e23be6966dd5b16609059cbc241d480d750a09 AUX racket-mode-rkt-source-dir.patch 383 BLAKE2B 21df6c706dc9e4e4fcc3d4e106b8e89a9ef3461048eda5f802140d517a3bace472eb31dc4259b92275755077a144c017dafaf96486a3e372c2fd284847ea81b8 SHA512 547e05f56303c9d2bb8eabbe7955adcc1082922552bc53d1c9aeb13a4842a6215f0454e9ee569586244f73201f47a1b97a4819663c342e837dd07b8cbe7ac3e0 DIST racket-mode-1_p20240718.tar.gz 382546 BLAKE2B 0d6b33a183751cb9601f9532645b45c01c7fdcc1d1902f316f7ed3446dec943cd65f9a0c0204051509d2e607e68647146b7c8719f75fb0d030a2dac299266195 SHA512 7e262a93378ddde154d16b3349f29faf57531e684b9aa26579dadc0746306917398ca37ee11a243b5ad3c33f1ba41b3650f68579354a260b76ed6cee0765a535 +DIST racket-mode-1_p20241001.tar.gz 387873 BLAKE2B ad95eeed061a43b681919a6b14688d8755ad9c83b1ec14fe835ae92e692c1f7431bd986000bce95063094146604154bd38767c3db83b6a7756805269997829dc SHA512 60672f1e8ed46bffc89686104971c48382ffd46ffdab0c2caa86f06349425ac8a2de9770608953249949caab6bd8b0d914b21dfd06f1cfda5fd87f76d92a259e EBUILD racket-mode-1_p20240718.ebuild 1728 BLAKE2B 4e4d151a2477b478e01200757d3fac2687e455deeb809bfed3fde4c3285949aa556088a016bdd15ed2667f2d9d35aa9b200f979115e628c30e54d3bd3f8ba409 SHA512 7d1fb38c9e645e61af86c1cd9022122f3f3162e6d5f4a1eec3a8c22457e107c542c86a26fc80637a9aa299738781eacbe8720a614e0e34a38e74ef27e68aa9f3 +EBUILD racket-mode-1_p20241001.ebuild 1740 BLAKE2B 4aebe8fedd36d2c4152219efdb65f3f7f447bb162e2cc9935b730d24954aaa0deaa97ead691bdbd2eb9aef03722a8f85ae6131bc32c8c25cb6449fa7553c5381 SHA512 516ef35d5ce7135c371b430095241546caba9d95992803d1399317afbb53ab5f8e355ecc975e3db356f4da0ab6c25e60165cf54858bf595557aa554a6f2827ad EBUILD racket-mode-9999.ebuild 1659 BLAKE2B 59b1dc8726d5d97a088addf97f7df7d9177b94948b3ec989b894b786e217c1d295381a562b5ff74ee1dcbeebccc6e8c9885b156c9b56ab67ea43bb16c7084726 SHA512 e45bfb59a5a6a44089827679d7777f1e2d88a43b716c9df9c68d31240df744070c0ac2426b9eadd216122ca411c6e75c19ed4a38ed6dae0953354c6c11768738 MISC metadata.xml 818 BLAKE2B 6029673bee9510c74b9cf89bbbef03638cdfcfeaaae49f2f94d57cd960c616c7b43c8dc3a0c79892be87dace9e7549b3b4453b13fcc7a23f7b6a02066dbce29a SHA512 8b487cb9f4018d3ec7a2cf130b26d58522772bef05d258100068fc89500577a5f680f480b89f06ef63d99c4a6d4e4fd825ea3338934438715fb83a946f6fe7cc diff --git a/app-emacs/racket-mode/racket-mode-1_p20241001.ebuild b/app-emacs/racket-mode/racket-mode-1_p20241001.ebuild new file mode 100644 index 000000000000..db2875b6dee8 --- /dev/null +++ b/app-emacs/racket-mode/racket-mode-1_p20241001.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +[[ "${PV}" == *p20241001 ]] && COMMIT="ec8b5142abaaef8335c23b98c18dee1f960b6e0b" + +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 +} |