diff options
-rw-r--r-- | app-emacs/esup/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/esup/esup-0.7.1_p20220203.ebuild | 38 | ||||
-rw-r--r-- | app-emacs/esup/files/50esup-gentoo.el | 3 | ||||
-rw-r--r-- | app-emacs/esup/metadata.xml | 19 |
4 files changed, 61 insertions, 0 deletions
diff --git a/app-emacs/esup/Manifest b/app-emacs/esup/Manifest new file mode 100644 index 000000000000..123ecc088456 --- /dev/null +++ b/app-emacs/esup/Manifest @@ -0,0 +1 @@ +DIST esup-0.7.1_p20220203.tar.gz 54747 BLAKE2B 09d07300796b0874bbfe4c91f91ba9d56000e097c3ead2759d284f113ee3a34701952662f5e37a32cac889e9811b0ec53dbf93c7104d8530434c5fbb6fffb7da SHA512 4b361121273c8791f107e9b883bd6983d6be23f1abd9187347c510a4c11d8e8edf3b533aa7af561f869f9ebc8b1a6f12e5351127d30e8fd4127eface290cf8c7 diff --git a/app-emacs/esup/esup-0.7.1_p20220203.ebuild b/app-emacs/esup/esup-0.7.1_p20220203.ebuild new file mode 100644 index 000000000000..e3d78933734e --- /dev/null +++ b/app-emacs/esup/esup-0.7.1_p20220203.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +H=4b49c8d599d4cc0fbf994e9e54a9c78e5ab62a5f +NEED_EMACS=25.1 + +inherit elisp + +DESCRIPTION="Benchmark Emacs Startup time without ever leaving it" +HOMEPAGE="https://github.com/jschaf/esup/" +SRC_URI="https://github.com/jschaf/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}"/${PN}-${H} + +LICENSE="GPL-3+" +KEYWORDS="~amd64 ~x86" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND="app-emacs/s" +BDEPEND=" + ${RDEPEND} + test? ( + app-emacs/buttercup + app-emacs/dash + app-emacs/noflet + app-emacs/undercover + ) +" + +DOCS=( README.md esup-screenshot.png ) +SITEFILE="50${PN}-gentoo.el" + +src_test() { + buttercup -L . -L test --traceback full test || die +} diff --git a/app-emacs/esup/files/50esup-gentoo.el b/app-emacs/esup/files/50esup-gentoo.el new file mode 100644 index 000000000000..0cd16df3f8e9 --- /dev/null +++ b/app-emacs/esup/files/50esup-gentoo.el @@ -0,0 +1,3 @@ +(add-to-list 'load-path "@SITELISP@") +(autoload 'esup "esup" + "Profile the startup time of Emacs in the background." t) diff --git a/app-emacs/esup/metadata.xml b/app-emacs/esup/metadata.xml new file mode 100644 index 000000000000..de9476cad492 --- /dev/null +++ b/app-emacs/esup/metadata.xml @@ -0,0 +1,19 @@ +<?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> + <upstream> + <bugs-to>https://github.com/jschaf/esup/issues/</bugs-to> + <remote-id type="github">jschaf/esup</remote-id> + </upstream> + <longdescription> + Esup profiles your Emacs startup time by examining all top-level + S-expressions (sexps). Esup starts a new Emacs process from Emacs to + profile each SEXP. After the profiled Emacs is complete, it will exit and + your Emacs will display the results. + </longdescription> +</pkgmetadata> |