diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-09-27 03:09:13 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-09-27 03:09:13 +0100 |
commit | 8d3ae5c288a62253ed3bc3d71336bf2061cfdb51 (patch) | |
tree | d303ef81057f764dd5468859b1d8af22d21475b9 /app-emacs/macrostep | |
parent | 90e9e4843d7d63c5e7fa1f5d6d6f4cc7350ce77c (diff) |
gentoo auto-resync : 27:09:2022 - 03:09:13
Diffstat (limited to 'app-emacs/macrostep')
-rw-r--r-- | app-emacs/macrostep/Manifest | 5 | ||||
-rw-r--r-- | app-emacs/macrostep/files/50macrostep-gentoo.el | 7 | ||||
-rw-r--r-- | app-emacs/macrostep/files/macrostep-test.patch | 13 | ||||
-rw-r--r-- | app-emacs/macrostep/macrostep-0.9.ebuild | 30 | ||||
-rw-r--r-- | app-emacs/macrostep/metadata.xml | 27 |
5 files changed, 82 insertions, 0 deletions
diff --git a/app-emacs/macrostep/Manifest b/app-emacs/macrostep/Manifest new file mode 100644 index 000000000000..d5c1ff0e587d --- /dev/null +++ b/app-emacs/macrostep/Manifest @@ -0,0 +1,5 @@ +AUX 50macrostep-gentoo.el 309 BLAKE2B a3d555255e026726f2f8f8660eb53b5659e3a31aea4199c147b50e00dc6d77ce420b75a374bc4ad702610bede69bda9c586bcf60f63754f58d2a7a02da88031f SHA512 87ace5f9e54da6edf3c89f542b0243f270d62d7c2878d18234b800aa3d3af10583c77f1a010e963f07ccd94eea31e1036eb0b7cf53de18b725b440bff437e757 +AUX macrostep-test.patch 403 BLAKE2B b2db44beb31754d258539c79a3c2b49738a1677f2bc9eb2d3db19fad084339e9c5c2d031dbfebb7f2da5b934734adc27d0572023c4503071c729914e17dc06c7 SHA512 cb0f41834fc74679fd8cf89c64e7353ea3b8fa0ec6ec59cb13e1a88210e68b6b92c896e48b39fbcfb2e189933bac6b531c178a8fe1fd910113e77d5a1251b79b +DIST macrostep-0.9.tar.gz 50226 BLAKE2B e4e4d1b3f8b3a2abb464d4a4c13f4cc2c26114842cf90f68d5ee2082ef521d48b6de30cb743506d6aa15790b630aa7d3eda90578ce308c4c4595bdfb6f58f15b SHA512 1a3b67ddbb29007db542028dc965807764ac3df4ff6b90f42c50b2623843a905e302b316757b8d7975b0f10a06501262b1d9fd6f94c9b09618b31e2a7d602828 +EBUILD macrostep-0.9.ebuild 624 BLAKE2B 72d074f0ef0de266a66508553387c3ac0cfd4234e4a1f885ee5407c2652e35a24ba003fc1616a39c4db61cbbc5a4ae8e50800dba4ebeb9fcc57b39ece06dd316 SHA512 4fb3d90a2caf13bef9e05386e51d906e93c9212ec84faa0f503c6d97d066a6f69a72f3275bdf8ef0075167e6310d9c0b3c49e22c30f800a5823e199b0065a0d5 +MISC metadata.xml 1264 BLAKE2B 646ef28d72a7934b5e3e6a5d902089b27dc346daecb8992f61dab5c743cd00f631efa8eaa8f4e4f8772e631cb20ca527a0862cee3271736dbc03804a0e9c75b5 SHA512 b9947137c45246909a67ae3d15e56133fdfe0052a182caec38fbb3a044f2fca4e357bee4533b8c57f6a999f1b120acaf54d3b29923a06ea9846da74fedda6337 diff --git a/app-emacs/macrostep/files/50macrostep-gentoo.el b/app-emacs/macrostep/files/50macrostep-gentoo.el new file mode 100644 index 000000000000..ea9ea4709733 --- /dev/null +++ b/app-emacs/macrostep/files/50macrostep-gentoo.el @@ -0,0 +1,7 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'macrostep-mode "macrostep" + "Minor mode for inline expansion of macros in Emacs Lisp source buffers." t) +(autoload 'macrostep-expand "macrostep" + "Expand the macro form following point by one step." t) +(autoload 'macrostep-c-mode-hook "macrostep-c" + nil t) diff --git a/app-emacs/macrostep/files/macrostep-test.patch b/app-emacs/macrostep/files/macrostep-test.patch new file mode 100644 index 000000000000..ee683556eb90 --- /dev/null +++ b/app-emacs/macrostep/files/macrostep-test.patch @@ -0,0 +1,13 @@ +diff --git a/macrostep-test.el b/macrostep-test.el +index 9de1fae..c49ac0a 100644 +--- a/macrostep-test.el ++++ b/macrostep-test.el +@@ -410,7 +410,7 @@ + (should (macrostep-lax-looking-at ,string)) + (macrostep-collapse))) + +-(ert-deftest macrostep-expand-c-macros () ++(defun macrostep-expand-c-macros () + (with-temp-buffer + (insert + ;; A random example adapted from Emacs's src/lisp.h. diff --git a/app-emacs/macrostep/macrostep-0.9.ebuild b/app-emacs/macrostep/macrostep-0.9.ebuild new file mode 100644 index 000000000000..bfe4654194fc --- /dev/null +++ b/app-emacs/macrostep/macrostep-0.9.ebuild @@ -0,0 +1,30 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=24.3 + +inherit elisp + +DESCRIPTION="Interactive macro-expander for Emacs" +HOMEPAGE="https://github.com/joddie/macrostep/" +SRC_URI="https://github.com/joddie/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +DOCS=( README.org ) +PATCHES=( "${FILESDIR}"/${PN}-test.patch ) +SITEFILE="50${PN}-gentoo.el" + +src_test() { + ${EMACS} ${EMACSFLAGS} -L . --load ${PN}-test.el || die "test failed" +} + +src_install() { + rm macrostep-test.el{,c} || die + + elisp_src_install +} diff --git a/app-emacs/macrostep/metadata.xml b/app-emacs/macrostep/metadata.xml new file mode 100644 index 000000000000..83cdc6147e32 --- /dev/null +++ b/app-emacs/macrostep/metadata.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="project"> + <email>gnu-emacs@gentoo.org</email> + <name>Gentoo GNU Emacs project</name> + </maintainer> + <longdescription> + macrostep is an Emacs minor mode for interactively stepping through the + expansion of macros in Emacs Lisp source code. It lets you see exactly what + happens at each step of the expansion process by pretty-printing the + expanded forms inline in the source buffer, which is temporarily read-only + while macro expansions are visible. You can expand and collapse macro forms + one step at a time, and evaluate or instrument the expansions for debugging + with Edebug as normal. Single-stepping through the expansion is + particularly useful for debugging macros that expand into another macro + form. These can be difficult to debug with Emacs’ built-in macroexpand, + which continues expansion until the top-level form is no longer a macro + call. + </longdescription> + <stabilize-allarches /> + <upstream> + <bugs-to>https://github.com/joddie/macrostep/issues/</bugs-to> + <remote-id type="github">joddie/macrostep</remote-id> + </upstream> +</pkgmetadata> |