diff options
Diffstat (limited to 'app-emacs/ecukes')
-rw-r--r-- | app-emacs/ecukes/Manifest | 5 | ||||
-rw-r--r-- | app-emacs/ecukes/ecukes-0.6.18-r1.ebuild | 61 | ||||
-rw-r--r-- | app-emacs/ecukes/files/50ecukes-gentoo.el | 1 | ||||
-rw-r--r-- | app-emacs/ecukes/files/ecukes-bin-launcher-fix.patch | 31 | ||||
-rw-r--r-- | app-emacs/ecukes/metadata.xml | 13 |
5 files changed, 111 insertions, 0 deletions
diff --git a/app-emacs/ecukes/Manifest b/app-emacs/ecukes/Manifest new file mode 100644 index 000000000000..0c4ea8f976df --- /dev/null +++ b/app-emacs/ecukes/Manifest @@ -0,0 +1,5 @@ +AUX 50ecukes-gentoo.el 38 BLAKE2B e96c6cf48d1522d89450e11d339c76210c672377208b56951791b83c6ef22b2c872d313084e199dd5d7b533a99106a87dbc7f15b5ee6126f71bf5f2e84165ffa SHA512 5c00bcabe2d7cc03013dc7a54b2c653940c08098ca5646d7c73624cb1ca04376ae9dcf88a7166b1925c69f0c5d192d90f6bd790fdef8ed8c3b0f9d163c987da5 +AUX ecukes-bin-launcher-fix.patch 915 BLAKE2B aef7eea5e15b6c8636a407d0d32c8735d193710218a3a1a35732543adc25c1374537de751b7a4f9517f100fbc82d462ae7de3b24ff7568fff91b6e29b3e19df1 SHA512 787e75ee5c3c4cda6db5ac278db3f3117a937b562f1d0d868b8dc9cba4cf6671b5f071e857152f518a5132cd6fd551fe9652c68caf52b18bd65457a280df8c8f +DIST ecukes-0.6.18.tar.gz 85246 BLAKE2B f4469f155c0f2ce4756e429df2690b1dda3bb2f38f7e5847d14e1d21d0b8170535a2203fafe66649fc8416d41b983f6bc7428f6b4c053dcf0f9372f0973c0b15 SHA512 6d3a16b8dbf021026be5d7134166079bb1495ad4fd6b7e30386aad56c0196c46cbd3ee541ec8c24d5b7e1bb26e3c14fe5f9423b50341867c50b92194139eca02 +EBUILD ecukes-0.6.18-r1.ebuild 1118 BLAKE2B 5fdc8114ca4316a3d3a2f5c459a56b5545e2532b208a6f14d297a4de30b0011674c8d74cf6f2398da7cbfe9f5f3e5098942f14ea6a80199d487616c63badb09f SHA512 ff642205e5328c4a1f00444bd8bc2206f96e7bd39649234e3f2dc400785583b7b8e86d7d22702a617de86280fda61459743b0ecaa6c49afdecdf45e128887140 +MISC metadata.xml 415 BLAKE2B b94371a8c502d58931a7faa90a0cf214ab4b66626fc2dee7ebfe6d56942fd6a7ca29bbd4e2802815e810ed85f5732189994a264ba2058e503be8f88921dd1542 SHA512 ae0cb2fd56ef6ac124b2756cba275f4ca8d96066bdf0f3505e58afd62d5d86c8639c174d3b4f13b5f4ede658045e9be56b87f6e23e2e52b27bda26eb00a676fb diff --git a/app-emacs/ecukes/ecukes-0.6.18-r1.ebuild b/app-emacs/ecukes/ecukes-0.6.18-r1.ebuild new file mode 100644 index 000000000000..1e8bbe61c27d --- /dev/null +++ b/app-emacs/ecukes/ecukes-0.6.18-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp + +DESCRIPTION="Cucumber for Emacs" +HOMEPAGE="https://github.com/ecukes/ecukes/" +SRC_URI="https://github.com/ecukes/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-emacs/ansi + app-emacs/commander + app-emacs/dash + app-emacs/espuds + app-emacs/f + app-emacs/s +" +BDEPEND=" + ${RDEPEND} + test? ( + app-emacs/el-mock + app-emacs/ert-runner + ) +" + +DOCS=( README.markdown ) +PATCHES=( "${FILESDIR}"/${PN}-bin-launcher-fix.patch ) + +# Remove pkg file and failing tests +ELISP_REMOVE="${PN}-pkg.el test/${PN}-parse-line-test.el" +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() { + ert-runner --reporter ert+duration --script || die +} + +src_install() { + elisp_src_install + elisp-install ${PN}/reporters reporters/*.el{,c} + + dobin bin/${PN} +} diff --git a/app-emacs/ecukes/files/50ecukes-gentoo.el b/app-emacs/ecukes/files/50ecukes-gentoo.el new file mode 100644 index 000000000000..431f7e90ae73 --- /dev/null +++ b/app-emacs/ecukes/files/50ecukes-gentoo.el @@ -0,0 +1 @@ +(add-to-list 'load-path "@SITELISP@") diff --git a/app-emacs/ecukes/files/ecukes-bin-launcher-fix.patch b/app-emacs/ecukes/files/ecukes-bin-launcher-fix.patch new file mode 100644 index 000000000000..254fa28d09b3 --- /dev/null +++ b/app-emacs/ecukes/files/ecukes-bin-launcher-fix.patch @@ -0,0 +1,31 @@ +index 45ea622..b20754e 100755 +--- a/bin/ecukes ++++ b/bin/ecukes +@@ -33,7 +33,7 @@ + # Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + # Boston, MA 02110-2022, USA. + +-ECUKES_HOME=$(dirname "$(dirname "$BASH_SOURCE")") ++ECUKES_HOME="@SITELISP@" + ECUKES_CLI=$ECUKES_HOME/ecukes-cli.el + + if [[ -n "$INSIDE_EMACS" ]]; then +@@ -60,9 +60,9 @@ if has_option "--win" $@ || has_option "--no-win" $@ ; then + export ECUKES_OUTFILE=$(mktemp /tmp/ecukes.XXX) + + if has_option "--win" $@; then +- "$ECUKES_EMACS" --load "$ECUKES_CLI" -Q ++ "$ECUKES_EMACS" --load "$ECUKES_CLI" -q + else +- "$ECUKES_EMACS" -nw --load "$ECUKES_CLI" -Q ++ "$ECUKES_EMACS" -nw --load "$ECUKES_CLI" -q + fi + + STATUS=$? +@@ -72,5 +72,5 @@ if has_option "--win" $@ || has_option "--no-win" $@ ; then + + exit $STATUS + else +- "$ECUKES_EMACS" --script "$ECUKES_CLI" -Q ++ "$ECUKES_EMACS" --script "$ECUKES_CLI" -q + fi diff --git a/app-emacs/ecukes/metadata.xml b/app-emacs/ecukes/metadata.xml new file mode 100644 index 000000000000..b97306483f71 --- /dev/null +++ b/app-emacs/ecukes/metadata.xml @@ -0,0 +1,13 @@ +<?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/ecukes/ecukes/issues/</bugs-to> + <remote-id type="github">ecukes/ecukes</remote-id> + </upstream> +</pkgmetadata> |