From 53facdb0ddc73fd3047c99fc7bf90d990b15400d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Mon, 23 May 2022 01:41:19 +0200 Subject: [PATCH] app-emacs/esup: new package; add version 0.7.1_p20220203 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 2022.02.03 snapshot Signed-off-by: Maciej Barć --- app-emacs/esup/Manifest | 1 + app-emacs/esup/esup-0.7.1_p20220203.ebuild | 38 ++++++++++++++++++++++ app-emacs/esup/files/50esup-gentoo.el | 3 ++ app-emacs/esup/metadata.xml | 19 +++++++++++ 4 files changed, 61 insertions(+) create mode 100644 app-emacs/esup/Manifest create mode 100644 app-emacs/esup/esup-0.7.1_p20220203.ebuild create mode 100644 app-emacs/esup/files/50esup-gentoo.el create mode 100644 app-emacs/esup/metadata.xml diff --git a/app-emacs/esup/Manifest b/app-emacs/esup/Manifest new file mode 100644 index 0000000000000..123ecc0884568 --- /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 0000000000000..e3d78933734e7 --- /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 0000000000000..0cd16df3f8e98 --- /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 0000000000000..de9476cad4921 --- /dev/null +++ b/app-emacs/esup/metadata.xml @@ -0,0 +1,19 @@ + + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + https://github.com/jschaf/esup/issues/ + jschaf/esup + + + 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. + +