summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2022-04-08 11:29:59 +0200
committerMaciej Barć <xgqt@gentoo.org>2022-04-08 16:00:12 +0200
commit2b0a30ad1d2f9bd37b0b0a41bff525507316b085 (patch)
treefce84697b795eb0db74c924626be0db15775facb /app-emacs/mocker
parentapp-emacs/highlight-indentation: new package; add 0.7.0_p20210221 (diff)
downloadgentoo-2b0a30ad1d2f9bd37b0b0a41bff525507316b085.tar.gz
gentoo-2b0a30ad1d2f9bd37b0b0a41bff525507316b085.tar.bz2
gentoo-2b0a30ad1d2f9bd37b0b0a41bff525507316b085.zip
app-emacs/mocker: new package; add version 0.5.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/mocker')
-rw-r--r--app-emacs/mocker/Manifest1
-rw-r--r--app-emacs/mocker/files/50mocker-gentoo.el1
-rw-r--r--app-emacs/mocker/metadata.xml13
-rw-r--r--app-emacs/mocker/mocker-0.5.0.ebuild27
4 files changed, 42 insertions, 0 deletions
diff --git a/app-emacs/mocker/Manifest b/app-emacs/mocker/Manifest
new file mode 100644
index 000000000000..216d990bd67e
--- /dev/null
+++ b/app-emacs/mocker/Manifest
@@ -0,0 +1 @@
+DIST mocker-0.5.0.tar.gz 7538 BLAKE2B 6998955dad68acf1a1dec8029dcaf0c5670e7594f77deb6d52873c2b9018ca329885120ee12f50c08d2a4014d94f3614f25d3f804df422b33f50cee74a46f935 SHA512 f649f8065734e8591b23f7887157ab0fadaca459a37761d8415e09957ad4a007f0896042511e842cd7d77294483d833552170cbdbb19b03638f7890e85605459
diff --git a/app-emacs/mocker/files/50mocker-gentoo.el b/app-emacs/mocker/files/50mocker-gentoo.el
new file mode 100644
index 000000000000..431f7e90ae73
--- /dev/null
+++ b/app-emacs/mocker/files/50mocker-gentoo.el
@@ -0,0 +1 @@
+(add-to-list 'load-path "@SITELISP@")
diff --git a/app-emacs/mocker/metadata.xml b/app-emacs/mocker/metadata.xml
new file mode 100644
index 000000000000..93a04ebb0d74
--- /dev/null
+++ b/app-emacs/mocker/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/sigma/mocker.el/issues/</bugs-to>
+ <remote-id type="github">sigma/mocker.el</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-emacs/mocker/mocker-0.5.0.ebuild b/app-emacs/mocker/mocker-0.5.0.ebuild
new file mode 100644
index 000000000000..8c112ede6dc9
--- /dev/null
+++ b/app-emacs/mocker/mocker-0.5.0.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+MY_PN=${PN}.el
+NEED_EMACS=25.1
+
+inherit elisp
+
+DESCRIPTION="Simple mocking framework for Emacs "
+HOMEPAGE="https://github.com/sigma/mocker.el/"
+SRC_URI="https://github.com/sigma/${MY_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/${MY_PN}-${PV}
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DOCS=( README.markdown )
+SITEFILE="50${PN}-gentoo.el"
+
+src_test() {
+ ${EMACS} ${EMACSFLAGS} ${BYTECOMPFLAGS} \
+ -L ./test -l ./test/mocker-test.el \
+ -f ert-run-tests-batch-and-exit || die "tests failed"
+}