summaryrefslogtreecommitdiff
path: root/app-emacs/flycheck/flycheck-9999.ebuild
diff options
context:
space:
mode:
Diffstat (limited to 'app-emacs/flycheck/flycheck-9999.ebuild')
-rw-r--r--app-emacs/flycheck/flycheck-9999.ebuild40
1 files changed, 40 insertions, 0 deletions
diff --git a/app-emacs/flycheck/flycheck-9999.ebuild b/app-emacs/flycheck/flycheck-9999.ebuild
new file mode 100644
index 0000000..b5f3e38
--- /dev/null
+++ b/app-emacs/flycheck/flycheck-9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+NEED_EMACS="24.3"
+
+inherit elisp
+
+if [[ ${PV} = "9999" ]]; then
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/flycheck/flycheck"
+ EGIT_BRANCH="master"
+ EGIT_CHECKOUT_DIR="${WORKDIR}/${PN}"
+ S="${EGIT_CHECKOUT_DIR}"
+else
+ COMMIT="784f184cdd9f9cb4e3dbb997c09d93e954142842"
+ SRC_URI="https://github.com/flycheck/flycheck/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-${COMMIT}"
+ KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="Modern on-the-fly syntax checking extension for GNU Emacs"
+HOMEPAGE="https://www.flycheck.org/"
+
+LICENSE="GPL-3+"
+SLOT="0"
+RESTRICT="test" # test requires cask and ert-runner which are not packaged yet
+
+RDEPEND=">=app-emacs/dash-2.12.1"
+
+SITEFILE="50${PN}-gentoo.el"
+PATCHES=( "${FILESDIR}/flycheck-32-remove-pkg-info.diff" )
+DOCS=( README.md CHANGES.rst )
+ELISP_REMOVE="flycheck-buttercup.el flycheck-ert.el"
+
+src_install() {
+ elisp-make-autoload-file "${S}"/${PN}-autoload.el "${S}"/
+ elisp_src_install
+}