diff options
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/Manifest.gz | bin | 71913 -> 71908 bytes | |||
-rw-r--r-- | app-emacs/racket-mode/Manifest | 3 | ||||
-rw-r--r-- | app-emacs/racket-mode/racket-mode-1_p20230905.ebuild | 64 | ||||
-rw-r--r-- | app-emacs/racket-mode/racket-mode-9999.ebuild | 64 |
4 files changed, 131 insertions, 0 deletions
diff --git a/app-emacs/Manifest.gz b/app-emacs/Manifest.gz Binary files differindex 7143b90e9a8c..d838ccaae55a 100644 --- a/app-emacs/Manifest.gz +++ b/app-emacs/Manifest.gz diff --git a/app-emacs/racket-mode/Manifest b/app-emacs/racket-mode/Manifest index f257679902f2..6b0e0f408205 100644 --- a/app-emacs/racket-mode/Manifest +++ b/app-emacs/racket-mode/Manifest @@ -1,5 +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_p20230506.tar.gz 323446 BLAKE2B 087377a6491014c6d29728a4c3a29e75069b729eddfa339d5cd347102f884dc7eb069097b0bf0864779b861e64a132b497ea0eb202238b06fa3741d4a42a5003 SHA512 6b3d37901e3126d8b3597ab83b5c47869873e4fccf536eed4d9ff1ed1695af7ab551bad5807b37438d20950529032b7dc75f9079d95bcf5b088ff097454c48ae +DIST racket-mode-1_p20230905.tar.gz 323536 BLAKE2B 449655a43346d0f000396781302461bc229b7769b68e6f8268e295a0c0fdea2786d7c759fd2e002dfd993b4cab087d1f497c53da29a5a3c7635e8807536b3d8d SHA512 ade32d446816024eefcf84f5e1939cbd8ba561bb58454c543f6d49f118e4a937a069cb7e62bff5f9b1c2479175e5cd8c380bc81f14fadaa139110956cd129cf4 EBUILD racket-mode-1_p20230506.ebuild 1507 BLAKE2B b8d4939f9063015674f4c75e0f59b00608b8be807d7ee47de82ba98d3958d710e5c389433c6886420686f04d1d4cb713dd3d326a58cbffdb90e7c09446f54d1a SHA512 7723f2cd2e661d3d859aa0b9e9dc3bf77b4f3615da345455959c096794a4599503f9edc4e9105e5a79f3abf5dd5a4e41e326e53b3cefee9674d89ab82dbceb1e +EBUILD racket-mode-1_p20230905.ebuild 1629 BLAKE2B f455ca26064e65e6f40dc6c5b3c24bf07055c1ebc6e226c8604c35dcc896a02e5c43d0f87deee5f01328261cb558d688340da9d3bcb372c3b4f6c680c0d1125d SHA512 389b78f864012cf89c211a22957012a31e9287d444b3434bc623df118fb2d2541bbaf9cb8ca609e20cf9545676830d33d2409a551adc41941c86ffe7ad3e8a14 +EBUILD racket-mode-9999.ebuild 1629 BLAKE2B f455ca26064e65e6f40dc6c5b3c24bf07055c1ebc6e226c8604c35dcc896a02e5c43d0f87deee5f01328261cb558d688340da9d3bcb372c3b4f6c680c0d1125d SHA512 389b78f864012cf89c211a22957012a31e9287d444b3434bc623df118fb2d2541bbaf9cb8ca609e20cf9545676830d33d2409a551adc41941c86ffe7ad3e8a14 MISC metadata.xml 818 BLAKE2B 6029673bee9510c74b9cf89bbbef03638cdfcfeaaae49f2f94d57cd960c616c7b43c8dc3a0c79892be87dace9e7549b3b4453b13fcc7a23f7b6a02066dbce29a SHA512 8b487cb9f4018d3ec7a2cf130b26d58522772bef05d258100068fc89500577a5f680f480b89f06ef63d99c4a6d4e4fd825ea3338934438715fb83a946f6fe7cc diff --git a/app-emacs/racket-mode/racket-mode-1_p20230905.ebuild b/app-emacs/racket-mode/racket-mode-1_p20230905.ebuild new file mode 100644 index 000000000000..d343ca431fd0 --- /dev/null +++ b/app-emacs/racket-mode/racket-mode-1_p20230905.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 + [[ ${PV} == *_p20230905 ]] && COMMIT=bfe5a8fc418e9710e474db3e6dcbe66f6b177ecb + + 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" + +RDEPEND="dev-scheme/racket:=[-minimal]" +BDEPEND="${RDEPEND}" + +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 "~". + 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 +} diff --git a/app-emacs/racket-mode/racket-mode-9999.ebuild b/app-emacs/racket-mode/racket-mode-9999.ebuild new file mode 100644 index 000000000000..d343ca431fd0 --- /dev/null +++ b/app-emacs/racket-mode/racket-mode-9999.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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 + [[ ${PV} == *_p20230905 ]] && COMMIT=bfe5a8fc418e9710e474db3e6dcbe66f6b177ecb + + 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" + +RDEPEND="dev-scheme/racket:=[-minimal]" +BDEPEND="${RDEPEND}" + +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 "~". + 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 +} |