* [gentoo-commits] repo/gentoo:master commit in: app-emacs/racket-mode/, app-emacs/racket-mode/files/
@ 2022-01-21 13:29 Maciej Barć
0 siblings, 0 replies; 3+ messages in thread
From: Maciej Barć @ 2022-01-21 13:29 UTC (permalink / raw
To: gentoo-commits
commit: 2778e83206a9c6cc471e2a54b057c35ea3fec532
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Fri Jan 21 12:28:47 2022 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Fri Jan 21 13:29:35 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2778e832
app-emacs/racket-mode: new package; add version 20220120
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
app-emacs/racket-mode/Manifest | 1 +
.../racket-mode/files/50racket-mode-gentoo.el | 6 +++
app-emacs/racket-mode/metadata.xml | 25 ++++++++++++
app-emacs/racket-mode/racket-mode-20220120.ebuild | 47 ++++++++++++++++++++++
4 files changed, 79 insertions(+)
diff --git a/app-emacs/racket-mode/Manifest b/app-emacs/racket-mode/Manifest
new file mode 100644
index 000000000000..1557899778f0
--- /dev/null
+++ b/app-emacs/racket-mode/Manifest
@@ -0,0 +1 @@
+DIST racket-mode-20220120.tar.gz 286218 BLAKE2B 9786bc7a3f8127c342f90acebadef8f8468ba1cc27ad42c620554d5a478932317a2ede7061fe521a67ec0c624cea4743a1e6a50050ab2afe6e17ad220f7f7f9e SHA512 034527d62eae1c5ef09a8f5cd2bc5c5d0790bacd7ca180f0851ac6d93a3c897d4c4394d3e446285d1dbf4553fe94140656359df9b72d800202604948d9832901
diff --git a/app-emacs/racket-mode/files/50racket-mode-gentoo.el b/app-emacs/racket-mode/files/50racket-mode-gentoo.el
new file mode 100644
index 000000000000..79223161d42b
--- /dev/null
+++ b/app-emacs/racket-mode/files/50racket-mode-gentoo.el
@@ -0,0 +1,6 @@
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'racket-mode "racket-mode"
+ "Major mode for editing Racket source files." t)
+(add-to-list 'auto-mode-alist '("\\.rkt\\'" . racket-mode))
+(add-to-list 'auto-mode-alist '("\\.rktd\\'" . racket-mode))
+(add-to-list 'auto-mode-alist '("\\.rktl\\'" . racket-mode))
diff --git a/app-emacs/racket-mode/metadata.xml b/app-emacs/racket-mode/metadata.xml
new file mode 100644
index 000000000000..f6d885ebc654
--- /dev/null
+++ b/app-emacs/racket-mode/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="person">
+ <email>xgqt@gentoo.org</email>
+ <name>Maciej Barć</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>gnu-emacs@gentoo.org</email>
+ <name>Gentoo GNU Emacs project</name>
+ </maintainer>
+ <longdescription>
+ Emacs major and minor modes for Racket: edit, REPL, check-syntax, debug,
+ profile, and more.
+ Racket Mode uses a "back end server" written in Racket, which is
+ responsible for running files and implementing commands that cannot be
+ implemented in Emacs Lisp.
+ Details: https://github.com/greghendershott/racket-mode
+ </longdescription>
+ <upstream>
+ <bugs-to>https://github.com/greghendershott/racket-mode/issues</bugs-to>
+ <remote-id type="github">greghendershott/racket-mode</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-emacs/racket-mode/racket-mode-20220120.ebuild b/app-emacs/racket-mode/racket-mode-20220120.ebuild
new file mode 100644
index 000000000000..f5a0c1b1896a
--- /dev/null
+++ b/app-emacs/racket-mode/racket-mode-20220120.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+H=59b227b1aab315cdaa798648e47c4c4a8f71ddba
+NEED_EMACS=25.1
+
+inherit elisp
+
+DESCRIPTION="Emacs modes for Racket: edit, REPL, check-syntax, debug, profile, and more"
+HOMEPAGE="https://github.com/greghendershott/racket-mode/"
+SRC_URI="https://github.com/greghendershott/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${H}"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="dev-scheme/racket:="
+DEPEND="${RDEPEND}"
+
+DOCS=( CONTRIBUTING.md README.md THANKS.md )
+ELISP_TEXINFO="doc/racket-mode.texi"
+SITEFILE="50${PN}-gentoo.el"
+
+src_compile() {
+ elisp_src_compile
+
+ # Equivalent to compiling from Emacs with "racket-mode-start-faster",
+ # as this is installed globally we 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() {
+ emake test-racket
+}
+
+src_install() {
+ elisp_src_install
+
+ # Install Racket files
+ insinto "${SITELISP}/${PN}"
+ doins -r racket
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-emacs/racket-mode/, app-emacs/racket-mode/files/
@ 2022-02-19 18:33 Maciej Barć
0 siblings, 0 replies; 3+ messages in thread
From: Maciej Barć @ 2022-02-19 18:33 UTC (permalink / raw
To: gentoo-commits
commit: 6e161b9af0bd78566f3c1e1e079f1ea18426fe93
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Feb 19 18:22:59 2022 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Feb 19 18:22:59 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6e161b9a
app-emacs/racket-mode: drop old 20220120
Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
app-emacs/racket-mode/Manifest | 1 -
.../files/racket-mode-racket-util.el-defvar.patch | 12 ------
.../racket-mode/racket-mode-20220120-r2.ebuild | 48 ----------------------
3 files changed, 61 deletions(-)
diff --git a/app-emacs/racket-mode/Manifest b/app-emacs/racket-mode/Manifest
index 96454e3a7404..6657c81cd808 100644
--- a/app-emacs/racket-mode/Manifest
+++ b/app-emacs/racket-mode/Manifest
@@ -1,4 +1,3 @@
-DIST racket-mode-20220120.tar.gz 286218 BLAKE2B 9786bc7a3f8127c342f90acebadef8f8468ba1cc27ad42c620554d5a478932317a2ede7061fe521a67ec0c624cea4743a1e6a50050ab2afe6e17ad220f7f7f9e SHA512 034527d62eae1c5ef09a8f5cd2bc5c5d0790bacd7ca180f0851ac6d93a3c897d4c4394d3e446285d1dbf4553fe94140656359df9b72d800202604948d9832901
DIST racket-mode-20220129.tar.gz 286278 BLAKE2B af0e2c87affa5498b1d1d21947006749ceb6988e43f4a1d11bf730a4d0877481e6806ab4e41cad13b3389049a79f2b4b484f2ded52dfa71a7434128fceae6e44 SHA512 56559da32d7c6bb8b0ef9d04662837cd202ee901781eed6e34ad22f88942d40695c0bf04be1ebf82d80bf3a405301b1ca73193adf631350ce49140b62308701f
DIST racket-mode-20220208.tar.gz 298473 BLAKE2B 6fcadfe7040efbc3a5e06ffec7abd05958add51a22fb68d5c7d57e052aa7998b9dd0f60816e94e6b80f967108c161a989a98d5516699fc7a6b0f6576a40423cf SHA512 ec6ff476ca23a1d50aa7355df269175b7994a7f57c58d00c27b9161e1fc9a23cfda833aea73b45379cde58a7a3f49a78b40e63724b7c229bc81a37c873b5fc29
DIST racket-mode-20220219.tar.gz 298876 BLAKE2B b3dfbcd9b436648da1ecacf4b7434c3e1b6dea9bc904c2f1911be34bc6b1846684c349f38cd418b09e66f426866b805ca6bd0c98724e69740ad841ae482e62ea SHA512 94879fe9aed106d0210ca359a5d3d857eec098b4442256a489356db0c5b3493b44ee9a0dd6eff0a0d3d2f3c752632e91b1c0ef8705b7b305e3c75fbae42e826a
diff --git a/app-emacs/racket-mode/files/racket-mode-racket-util.el-defvar.patch b/app-emacs/racket-mode/files/racket-mode-racket-util.el-defvar.patch
deleted file mode 100644
index d9d65c44bb89..000000000000
--- a/app-emacs/racket-mode/files/racket-mode-racket-util.el-defvar.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-index 0992711..a8897b4 100644
---- a/racket-util.el
-+++ b/racket-util.el
-@@ -93,7 +93,7 @@ When installed as a package, this can be found from the variable
- `load-file-name'. When developing interactively, get it from the
- .el buffer file name.")
-
--(defconst racket--rkt-source-dir
-+(defvar racket--rkt-source-dir
- (expand-file-name "./racket/" racket--el-source-dir)
- "Path to dir of our Racket source files. ")
-
diff --git a/app-emacs/racket-mode/racket-mode-20220120-r2.ebuild b/app-emacs/racket-mode/racket-mode-20220120-r2.ebuild
deleted file mode 100644
index f93e0c557e85..000000000000
--- a/app-emacs/racket-mode/racket-mode-20220120-r2.ebuild
+++ /dev/null
@@ -1,48 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-
-H=59b227b1aab315cdaa798648e47c4c4a8f71ddba
-NEED_EMACS=25.1
-
-inherit elisp
-
-DESCRIPTION="Emacs modes for Racket: edit, REPL, check-syntax, debug, profile, and more"
-HOMEPAGE="https://github.com/greghendershott/racket-mode/"
-SRC_URI="https://github.com/greghendershott/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/${PN}-${H}"
-
-LICENSE="GPL-2+"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-
-RDEPEND="dev-scheme/racket:=[-minimal]"
-BDEPEND="${RDEPEND}"
-
-DOCS=( CONTRIBUTING.md README.md THANKS.md )
-ELISP_TEXINFO="doc/racket-mode.texi"
-PATCHES=( "${FILESDIR}/${PN}-racket-util.el-defvar.patch" )
-SITEFILE="50${PN}-gentoo.el"
-
-src_compile() {
- elisp_src_compile
-
- # Equivalent to compiling from Emacs with "racket-mode-start-faster",
- # as this is installed globally we 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() {
- emake test-racket
-}
-
-src_install() {
- elisp_src_install
-
- # Install Racket files
- insinto "${SITEETC}/${PN}"
- doins -r racket
-}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-emacs/racket-mode/, app-emacs/racket-mode/files/
@ 2022-07-26 2:28 Maciej Barć
0 siblings, 0 replies; 3+ messages in thread
From: Maciej Barć @ 2022-07-26 2:28 UTC (permalink / raw
To: gentoo-commits
commit: 665a44c158c315e4e5df8d63655cd5d19da42c10
Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 26 01:44:42 2022 +0000
Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Tue Jul 26 02:28:09 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=665a44c1
app-emacs/racket-mode: instead of setq apply a patch
to overwrite the "racket--rkt-source-dir" variable, also remove
unnecessary setting of "racket--run.rkt" variable (that has been
dropped in 2021)
Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
app-emacs/racket-mode/files/50racket-mode-gentoo.el | 3 ---
.../racket-mode/files/racket-mode-rkt-source-dir.patch | 11 +++++++++++
...-20220219.ebuild => racket-mode-20220219-r1.ebuild} | 18 ++++++++++++++----
...-20220411.ebuild => racket-mode-20220411-r1.ebuild} | 15 ++++++++++++---
...-20220505.ebuild => racket-mode-20220505-r1.ebuild} | 15 ++++++++++++---
...-20220628.ebuild => racket-mode-20220628-r1.ebuild} | 9 +++++++++
6 files changed, 58 insertions(+), 13 deletions(-)
diff --git a/app-emacs/racket-mode/files/50racket-mode-gentoo.el b/app-emacs/racket-mode/files/50racket-mode-gentoo.el
index abebbf987f6f..eccbdd83a2b2 100644
--- a/app-emacs/racket-mode/files/50racket-mode-gentoo.el
+++ b/app-emacs/racket-mode/files/50racket-mode-gentoo.el
@@ -12,6 +12,3 @@
(add-to-list 'auto-mode-alist '("\\.rkt\\'" . racket-mode))
(add-to-list 'auto-mode-alist '("\\.rktd\\'" . racket-mode))
(add-to-list 'auto-mode-alist '("\\.rktl\\'" . racket-mode))
-
-(setq racket--rkt-source-dir (expand-file-name "./racket/" "@SITEETC@"))
-(setq racket--run.rkt (expand-file-name "main.rkt" racket--rkt-source-dir))
diff --git a/app-emacs/racket-mode/files/racket-mode-rkt-source-dir.patch b/app-emacs/racket-mode/files/racket-mode-rkt-source-dir.patch
new file mode 100644
index 000000000000..0dbc7acb2366
--- /dev/null
+++ b/app-emacs/racket-mode/files/racket-mode-rkt-source-dir.patch
@@ -0,0 +1,11 @@
+--- a/racket-util.el
++++ b/racket-util.el
+@@ -90,7 +90,7 @@ When installed as a package, this can be found from the variable
+ .el buffer file name.")
+
+ (defvar racket--rkt-source-dir
+- (expand-file-name "./racket/" racket--el-source-dir)
++ (expand-file-name "./racket/" "@SITEETC@")
+ "Path to dir of our Racket source files. ")
+
+ (defun racket--restoring-current-buffer (proc)
diff --git a/app-emacs/racket-mode/racket-mode-20220219.ebuild b/app-emacs/racket-mode/racket-mode-20220219-r1.ebuild
similarity index 68%
rename from app-emacs/racket-mode/racket-mode-20220219.ebuild
rename to app-emacs/racket-mode/racket-mode-20220219-r1.ebuild
index 0bd72bea7cf5..a503897480e0 100644
--- a/app-emacs/racket-mode/racket-mode-20220219.ebuild
+++ b/app-emacs/racket-mode/racket-mode-20220219-r1.ebuild
@@ -11,7 +11,7 @@ inherit elisp
DESCRIPTION="Emacs modes for Racket: edit, REPL, check-syntax, debug, profile, and more"
HOMEPAGE="https://github.com/greghendershott/racket-mode/"
SRC_URI="https://github.com/greghendershott/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/${PN}-${H}"
+S="${WORKDIR}"/${PN}-${H}
LICENSE="GPL-2+"
SLOT="0"
@@ -20,22 +20,32 @@ KEYWORDS="amd64 ~x86"
RDEPEND="dev-scheme/racket:=[-minimal]"
BDEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}"/${PN}-rkt-source-dir.patch )
+
DOCS=( CONTRIBUTING.md README.md THANKS.md )
+
ELISP_TEXINFO="doc/racket-mode.texi"
SITEFILE="50${PN}-gentoo.el"
+src_prepare() {
+ elisp_src_prepare
+
+ sed "s|@SITEETC@|${SITEETC}/${PN}|" -i racket-util.el || die
+}
+
src_compile() {
elisp_src_compile
# Equivalent to compiling from Emacs with "racket-mode-start-faster",
- # as this is installed globally we compile it now.
+ # 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 {} +
+ find "${S}"/racket -type f -name "*.rkt" -exec raco make -v {} +
eend $? "failed to compile Racket source files" || die
}
src_test() {
- emake test-racket
+ # Set "PLTUSERHOME" to a safe temp directory to prevent writing to ~.
+ PLTUSERHOME="${T}"/racket-mode/test-racket emake test-racket
}
src_install() {
diff --git a/app-emacs/racket-mode/racket-mode-20220411.ebuild b/app-emacs/racket-mode/racket-mode-20220411-r1.ebuild
similarity index 74%
rename from app-emacs/racket-mode/racket-mode-20220411.ebuild
rename to app-emacs/racket-mode/racket-mode-20220411-r1.ebuild
index 7660d6f56ec0..0777c1053a90 100644
--- a/app-emacs/racket-mode/racket-mode-20220411.ebuild
+++ b/app-emacs/racket-mode/racket-mode-20220411-r1.ebuild
@@ -20,22 +20,31 @@ KEYWORDS="amd64 ~x86"
RDEPEND="dev-scheme/racket:=[-minimal]"
BDEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}"/${PN}-rkt-source-dir.patch )
+
DOCS=( CONTRIBUTING.md README.md THANKS.md )
+
ELISP_TEXINFO="doc/racket-mode.texi"
SITEFILE="50${PN}-gentoo.el"
+src_prepare() {
+ elisp_src_prepare
+
+ sed "s|@SITEETC@|${SITEETC}/${PN}|" -i racket-util.el || die
+}
+
src_compile() {
elisp_src_compile
# Equivalent to compiling from Emacs with "racket-mode-start-faster",
- # as this is installed globally we compile it now.
+ # 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 {} +
+ 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 dir to evade writing to ~
+ # Set "PLTUSERHOME" to a safe temp directory to prevent writing to ~.
PLTUSERHOME="${T}"/racket-mode/test-racket emake test-racket
}
diff --git a/app-emacs/racket-mode/racket-mode-20220505.ebuild b/app-emacs/racket-mode/racket-mode-20220505-r1.ebuild
similarity index 74%
rename from app-emacs/racket-mode/racket-mode-20220505.ebuild
rename to app-emacs/racket-mode/racket-mode-20220505-r1.ebuild
index 272895d371b3..f88a71dda156 100644
--- a/app-emacs/racket-mode/racket-mode-20220505.ebuild
+++ b/app-emacs/racket-mode/racket-mode-20220505-r1.ebuild
@@ -20,22 +20,31 @@ KEYWORDS="amd64 ~x86"
RDEPEND="dev-scheme/racket:=[-minimal]"
BDEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}"/${PN}-rkt-source-dir.patch )
+
DOCS=( CONTRIBUTING.md README.md THANKS.md )
+
ELISP_TEXINFO="doc/racket-mode.texi"
SITEFILE="50${PN}-gentoo.el"
+src_prepare() {
+ elisp_src_prepare
+
+ sed "s|@SITEETC@|${SITEETC}/${PN}|" -i racket-util.el || die
+}
+
src_compile() {
elisp_src_compile
# Equivalent to compiling from Emacs with "racket-mode-start-faster",
- # as this is installed globally we compile it now.
+ # 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 {} +
+ 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 dir to evade writing to ~
+ # Set "PLTUSERHOME" to a safe temp directory to prevent writing to ~.
PLTUSERHOME="${T}"/racket-mode/test-racket emake test-racket
}
diff --git a/app-emacs/racket-mode/racket-mode-20220628.ebuild b/app-emacs/racket-mode/racket-mode-20220628-r1.ebuild
similarity index 89%
rename from app-emacs/racket-mode/racket-mode-20220628.ebuild
rename to app-emacs/racket-mode/racket-mode-20220628-r1.ebuild
index 3d6c29530ffe..2d3780799ccf 100644
--- a/app-emacs/racket-mode/racket-mode-20220628.ebuild
+++ b/app-emacs/racket-mode/racket-mode-20220628-r1.ebuild
@@ -20,10 +20,19 @@ KEYWORDS="~amd64 ~x86"
RDEPEND="dev-scheme/racket:=[-minimal]"
BDEPEND="${RDEPEND}"
+PATCHES=( "${FILESDIR}"/${PN}-rkt-source-dir.patch )
+
DOCS=( CONTRIBUTING.md README.md THANKS.md )
+
ELISP_TEXINFO="doc/racket-mode.texi"
SITEFILE="50${PN}-gentoo.el"
+src_prepare() {
+ elisp_src_prepare
+
+ sed "s|@SITEETC@|${SITEETC}/${PN}|" -i racket-util.el || die
+}
+
src_compile() {
elisp_src_compile
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2022-07-26 2:28 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-07-26 2:28 [gentoo-commits] repo/gentoo:master commit in: app-emacs/racket-mode/, app-emacs/racket-mode/files/ Maciej Barć
-- strict thread matches above, loose matches on Subject: below --
2022-02-19 18:33 Maciej Barć
2022-01-21 13:29 Maciej Barć
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox