summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2023-03-02 01:07:26 +0100
committerMaciej Barć <xgqt@gentoo.org>2023-03-02 01:14:03 +0100
commite996d5a65a6242ed2f893fc2f57cad819ffecc55 (patch)
tree974d51d56e7e0ec3a2047670466986ff0056a10e /app-emacs/racket-mode
parentapp-emacs/geiser-chez: bump to 0.18 (diff)
downloadgentoo-e996d5a65a6242ed2f893fc2f57cad819ffecc55.tar.gz
gentoo-e996d5a65a6242ed2f893fc2f57cad819ffecc55.tar.bz2
gentoo-e996d5a65a6242ed2f893fc2f57cad819ffecc55.zip
app-emacs/racket-mode: bump to 1_p20230209
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/racket-mode')
-rw-r--r--app-emacs/racket-mode/Manifest1
-rw-r--r--app-emacs/racket-mode/racket-mode-1_p20230209.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/app-emacs/racket-mode/Manifest b/app-emacs/racket-mode/Manifest
index c9caaed1f5a6..cae6af505c11 100644
--- a/app-emacs/racket-mode/Manifest
+++ b/app-emacs/racket-mode/Manifest
@@ -1,3 +1,4 @@
DIST racket-mode-0_p20220830.tar.gz 308654 BLAKE2B 85f82181fe994c48369c27ae762d1a0c336b155bc28ee8a4a5a52853e57d23f58c47e34e76b4fb103f9f5115bd856d635dac63f0b1955f7baa24e850e7ea7404 SHA512 6b94b839d9f25d4d07fd73e0a291862014d70501e9db2f154d37ef88f449140543344d4ee0072be0f7bf1c8994d82cf2794d512fd30216336ece2be31db4dc5c
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
diff --git a/app-emacs/racket-mode/racket-mode-1_p20230209.ebuild b/app-emacs/racket-mode/racket-mode-1_p20230209.ebuild
new file mode 100644
index 000000000000..d26773fed9f3
--- /dev/null
+++ b/app-emacs/racket-mode/racket-mode-1_p20230209.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+[[ ${PV} == *_p20230209 ]] && COMMIT=947d9806ee27ef241643f978c7901fd1f9e10c98
+NEED_EMACS=25.1
+
+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
+}