diff options
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_p20230506.ebuild | 57 |
2 files changed, 59 insertions, 0 deletions
diff --git a/app-emacs/racket-mode/Manifest b/app-emacs/racket-mode/Manifest index e5d6dee25e3f..41f587d2ca28 100644 --- a/app-emacs/racket-mode/Manifest +++ b/app-emacs/racket-mode/Manifest @@ -3,7 +3,9 @@ AUX racket-mode-rkt-source-dir.patch 383 BLAKE2B 21df6c706dc9e4e4fcc3d4e106b8e89 DIST racket-mode-1_p20221122.tar.gz 322401 BLAKE2B 8ae447616485d7e9deafe50044d0b0cf73ab93a628b2a536ba67604f7ee9ac7b13beb844c2b25de86c2da4d0f13ad1c92f8fb1be96236cbee7e8efe7607da94a SHA512 e4870cb00e1137cbacedda986ccc61f01a8e86c65d1a87b895a268460583f8671c256f07b2fbd1ede36dcf0d0c2770da00f39692a43b5ccba02f21aafe9a1602 DIST racket-mode-1_p20221216.tar.gz 322994 BLAKE2B 6a221162f27621dfece9679ab6dfcf4930f55bba366421fbda029a7c808ed919051a4a2728892c75cacd87179c80043b6427ac83b4adfd9371342a4c70a037e0 SHA512 dcb06ea327fac75831ad037768f74b446fa0286f5c90ffcf5d7e279780a64b8e1beaf34c4e220ed8c2ef4ea174998c9502e7188ae365a07762c6bee3566c1e64 DIST racket-mode-1_p20230209.tar.gz 323308 BLAKE2B 61f58a374c30e99acb718364c76a150e4c845b671e9a2aca8e5af41acab2189d8c819dd4c4039bbf8f2197fcfd1037d89a76bcdd8d4816871ecb4d417d857104 SHA512 d52aef3b5a938268f8d00fadafcca8ea1052042b90eee049b302bb853d7b73191fc9c3b99577559c78e285acf08b4786c367330207e9071094dc703881fc51d7 +DIST racket-mode-1_p20230506.tar.gz 323446 BLAKE2B 087377a6491014c6d29728a4c3a29e75069b729eddfa339d5cd347102f884dc7eb069097b0bf0864779b861e64a132b497ea0eb202238b06fa3741d4a42a5003 SHA512 6b3d37901e3126d8b3597ab83b5c47869873e4fccf536eed4d9ff1ed1695af7ab551bad5807b37438d20950529032b7dc75f9079d95bcf5b088ff097454c48ae EBUILD racket-mode-1_p20221122.ebuild 1454 BLAKE2B 554309ca250fcaa1f4c1b3976336eeecc01fc2cc9b29b1446cf3506535b94fa8e36b05a7f8e75ef2fb41383fa2f7cc88d7edd4f508907a4a454ae4dcb3e9d3a6 SHA512 3e6c04d774b00c484c2fdb55586f057b8590aa620fff754bbef8759796e26d67593f8903eff5f6f8aaca495ed22463fd5ca01ae753fd51a04445303f3c973e6f EBUILD racket-mode-1_p20221216.ebuild 1454 BLAKE2B 87d90d4e763c60d3f959acf91d66f58cce6464108860aff51cadd70aa17dc145a3ff9e9b8882444a75687649a2ecb8b1b8ec06f4f1ba328e21e3bf23f944b628 SHA512 54d34024fdf986837de2665260becdc326ffde164ee6e9b8f4e02595ada3a2f7e93fba8f0ed9a0f2ec01b78cc8f561e673a5d6d56871c77ef32252a8a1103625 EBUILD racket-mode-1_p20230209.ebuild 1508 BLAKE2B d19a68642e76aa2d5600d239d8403e628aa19da4af5d40a44fab547128a2bde6b58fd5fd7cc73d6709848d3ec509429a4a2fbfca90c7706414cb79010c552753 SHA512 be5a9da3439e3062837e1f2a37477d585f60da99fe55339ff95fb71e73376fd92dbc5ae02ee03560e2fc455d31d34a35320ef3dab161c08389534d42c458d18c +EBUILD racket-mode-1_p20230506.ebuild 1508 BLAKE2B cb7f57438de73470583bb752fe6155b9db7e12142e561d5ec0799fd4d122df6706bf6288d9af04e6e3b144c59ca002a03915e8af3c7b4f54e2241b569a854a7a SHA512 88412f8c42493e3e3c11b1d34922dd60ccf9b93bab0a39820aab1374f66bfcb5d60c782c525ef0b39e9d001ad9abc57ec94a729e2d5d8b4e3c3fc7c638ebdbbf MISC metadata.xml 818 BLAKE2B 6029673bee9510c74b9cf89bbbef03638cdfcfeaaae49f2f94d57cd960c616c7b43c8dc3a0c79892be87dace9e7549b3b4453b13fcc7a23f7b6a02066dbce29a SHA512 8b487cb9f4018d3ec7a2cf130b26d58522772bef05d258100068fc89500577a5f680f480b89f06ef63d99c4a6d4e4fd825ea3338934438715fb83a946f6fe7cc diff --git a/app-emacs/racket-mode/racket-mode-1_p20230506.ebuild b/app-emacs/racket-mode/racket-mode-1_p20230506.ebuild new file mode 100644 index 000000000000..8e7e224213e4 --- /dev/null +++ b/app-emacs/racket-mode/racket-mode-1_p20230506.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +[[ ${PV} == *_p20230506 ]] && COMMIT=c2fe266c18bb6e55a13c7ba795b0a5f7372b6c13 + +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/" +SRC_URI="https://github.com/greghendershott/${PN}/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${COMMIT} + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND="dev-scheme/racket:=[-minimal]" +BDEPEND="${RDEPEND}" + +PATCHES=( "${FILESDIR}"/${PN}-rkt-source-dir.patch ) + +DOCS=( CONTRIBUTING.org README.org THANKS.org ) +ELISP_TEXINFO="doc/racket-mode.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 +} |