diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-10-07 04:26:50 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-10-07 04:26:50 +0100 |
commit | 7ad61ca2bfc8f8da08d2fb3085e4333dcccb0a64 (patch) | |
tree | f7c41a49b46acf8ae70e84a70c452a7d121c5458 /app-emacs/ert-runner | |
parent | d6106fb0c1ab8f79024ab6a9ac2062ddc85d4e07 (diff) |
gentoo auto-resync : 07:10:2024 - 04:26:50
Diffstat (limited to 'app-emacs/ert-runner')
-rw-r--r-- | app-emacs/ert-runner/Manifest | 3 | ||||
-rw-r--r-- | app-emacs/ert-runner/ert-runner-0.8.0-r1.ebuild | 87 | ||||
-rw-r--r-- | app-emacs/ert-runner/ert-runner-0.8.0.ebuild | 2 |
3 files changed, 90 insertions, 2 deletions
diff --git a/app-emacs/ert-runner/Manifest b/app-emacs/ert-runner/Manifest index cce5a0f6ec05..c21a3bc41829 100644 --- a/app-emacs/ert-runner/Manifest +++ b/app-emacs/ert-runner/Manifest @@ -1,4 +1,5 @@ AUX ert-runner-bin-launcher-fix.patch 875 BLAKE2B 27f860ae14f9b869891ad0ff7ab2a40511231418c5b377db3c04bd7e7366b0ecb6a1d977b93c22cd3759f53986d3d38101c981ee2642e3d036ddd78acd0e14e9 SHA512 750562585a4933a1c9e6c12ddc97e92b5fc987b85013118861f3fb5a25f6317d7838cb8fa2c79ab2c8207d8b64db3e0d39a6aa4f237d84e7e243c0ca374fd4e8 DIST ert-runner-0.8.0.tar.gz 36263 BLAKE2B 8eceabea446ffde87c10cd5257264b61ad2e2617cd9a3243c9be5548298a61d5872b46359a798180e3bf450fc8c474f4651fb834959c30f93df807d4ba006401 SHA512 a8d17c10b7c4db3fb784725c22d382e7cf213c7a6bc320658b64f1aaf9597cfe9cedc436771ade239cc9ad59e0d3457c257ce9342f9bee8a3fd65f76eb6d9e9b -EBUILD ert-runner-0.8.0.ebuild 989 BLAKE2B 8ec27cd8dbb194884bc118f938196fff615457a634cfcb3934e7e57e84ce4695599e3990b34b54461f8432440dab44b03ea8a4c6311a4b5b28891cf416856b54 SHA512 de3dfceced428cf289f9c6101f2cd4fc8760750e8196b331943e2b536cf194d4363e5eb3658077076f359a1932ff5d6fdadc5a3905b6330901a6303ff3a8f7b6 +EBUILD ert-runner-0.8.0-r1.ebuild 1607 BLAKE2B 958c99de08ea667e136a51f4a1f4bb6d8a21b815e0feb93cd88bfaa9a91914282159e75a9411393cebde43e9710d5543831c71d9c9f45de3db0b19ec66b15d9b SHA512 2646af19a2e54cc1d295e53ae3d0deb12b3efc6c380769712db8631cb00ce5f4431c28006e39d98943d8a1f45dadce97705e1a65d6fe38e84db2bc2b44e54954 +EBUILD ert-runner-0.8.0.ebuild 1008 BLAKE2B 1a0e705f33f0af3cff93f802ac6414d3d2b21f805304006aa7566c93a446bdb288f3be8e39acfee4049b08657d2f7ccfc1749b0190826247126ccf1d42e2912e SHA512 70893206136ae29101d83abe8497f96d4eb6d03f9aeaf072072bcc7754d57f519036b63c5652cae71ac2c13f73b5f8755c226f97bd82513f2d5ee547e9302d8a MISC metadata.xml 455 BLAKE2B cf3956c8743a3ad380f71976e7b7e06e59ecd8def9b7770bd465bad6e1473b25a55f1e58716f8767bcfd6c2966f9ce61954825a690b64808b07b77f00f9acc3b SHA512 8a64a3e7b892ad17614beb7cd829e3a60dc6228bb6a86a3dab3406a1cb89706a3059a9402a6eb070f683eebe01f8269bef35e8559ce4ae617695d10968abb8fc diff --git a/app-emacs/ert-runner/ert-runner-0.8.0-r1.ebuild b/app-emacs/ert-runner/ert-runner-0.8.0-r1.ebuild new file mode 100644 index 000000000000..2124baa14fb0 --- /dev/null +++ b/app-emacs/ert-runner/ert-runner-0.8.0-r1.ebuild @@ -0,0 +1,87 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp edo + +DESCRIPTION="Opinionated Emacs Ert testing workflow" +HOMEPAGE="https://github.com/rejeep/ert-runner.el/" + +if [[ "${PV}" == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/rejeep/${PN}.el.git" +else + SRC_URI="https://github.com/rejeep/${PN}.el/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${PN}.el-${PV}" + + KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~sparc ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-emacs/ansi + app-emacs/commander + app-emacs/dash + app-emacs/f + app-emacs/dash + app-emacs/shut-up +" +BDEPEND=" + ${RDEPEND} + test? ( + app-emacs/ecukes + ) +" + +ELISP_REMOVE=" + Makefile + features/reporter.feature +" +PATCHES=( + "${FILESDIR}/${PN}-bin-launcher-fix.patch" +) + +DOCS=( README.md ) +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + elisp_src_prepare + + sed "s|@SITELISP@|${EPREFIX}${SITELISP}/${PN}|" -i "./bin/${PN}" || die +} + +src_compile() { + elisp_src_compile + elisp-compile ./reporters/*.el +} + +src_test() { + # Set up fake Cask for tests. + mkdir -p "${T}/bin" || die + cat <<-EOF >> "${T}/bin/cask" || die + #!/usr/bin/env bash + set -e + if [[ "\${1}" != exec ]] ; then echo "Not a exec call!" ; exit 1 ; fi + shift + "\${@}" + EOF + chmod +x "${T}/bin/cask" || die + local -x PATH="${T}/bin:${PATH}" || die + + edo ecukes --debug --reporter spec --script --verbose features +} + +src_install() { + elisp_src_install + elisp-install "${PN}/reporters" reporters/*.el{,c} + + exeinto /usr/bin + doexe "./bin/${PN}" +} diff --git a/app-emacs/ert-runner/ert-runner-0.8.0.ebuild b/app-emacs/ert-runner/ert-runner-0.8.0.ebuild index 9f08f42be2dd..62cfe6ff54ca 100644 --- a/app-emacs/ert-runner/ert-runner-0.8.0.ebuild +++ b/app-emacs/ert-runner/ert-runner-0.8.0.ebuild @@ -13,7 +13,7 @@ S="${WORKDIR}"/${PN}.el-${PV} LICENSE="GPL-3+" SLOT="0" -KEYWORDS="amd64 ~arm64 ~sparc ~x86" +KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv ~sparc ~x86" RESTRICT="test" # Tests fail (even with Cask installed) RDEPEND=" |