diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-11-04 03:03:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-11-04 03:03:54 +0000 |
commit | 3cc82055be7dba177f4aea15af9f5414b532da7e (patch) | |
tree | 1eed8bbe7a93b3a0a7d6091ead40e81519978a38 /app-emacs/racket-mode | |
parent | 212000bb5eabdfeb9a6e7a9b8f28e2740cae555a (diff) |
gentoo auto-resync : 04:11:2024 - 03:03:54
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_p20241031.ebuild | 78 |
2 files changed, 80 insertions, 0 deletions
diff --git a/app-emacs/racket-mode/Manifest b/app-emacs/racket-mode/Manifest index 52d46c2f32c5..7f6596e9e05f 100644 --- a/app-emacs/racket-mode/Manifest +++ b/app-emacs/racket-mode/Manifest @@ -2,7 +2,9 @@ AUX 50racket-mode-gentoo.el 649 BLAKE2B 38f1bdd21b584283ac2b047f8adf2ad4eb23f8cc 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 +DIST racket-mode-1_p20241031.tar.gz 391981 BLAKE2B a2e81a6cf3fe79bdd4c6ca0d92bd3e62befaccd0b7ac53d4d801fad0eb98a409e03d5d7c94bbc15adcbc864a93aef3519eb97a4812f7971c954e53a0c9fbe3f9 SHA512 1003c4fb6176d5740be990380243870822a92a0d9c8db7c633a18334b7c9dc46b0821d4b351386744ba69a0cf2ccbe9b0cb1090dc5c11809ff7770328950f559 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-1_p20241031.ebuild 1740 BLAKE2B b221dca17c1dc5d6d8960189e6e9f46573767dd7a452a9756b3ae5248d54f2b66539cec47035021bb599a5499757c4b77a6d4b1033288edb0b64fc395d2d60c3 SHA512 ef55f2f2ee8c935042291aa5722610c57de2d12b1b4b408939bf632661891e6c87f9a4766f24b438884ce9049b7358f288bb1de1d293ec546d5761c328a4f468 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_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 +} |