summaryrefslogtreecommitdiff
path: root/app-emacs/flycheck/flycheck-32_p20210825.ebuild
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa+gentoo@gmail.com>2021-12-04 23:51:49 -0500
committerJohn Turner <jturner.usa+gentoo@gmail.com>2021-12-04 23:51:49 -0500
commit8994f53af9bf63fb21caa0ff434b0c466d24d20d (patch)
tree2afb81e6375c3f26078c154f7dcf0d73087d4e8c /app-emacs/flycheck/flycheck-32_p20210825.ebuild
parent5ab5fdc4057c0dc8e043791ac5e8d0377a419974 (diff)
downloadebuilds-8994f53af9bf63fb21caa0ff434b0c466d24d20d.tar.gz
app-emacs/flycheck: Patched out the pkg-info requirement. Created live template to share between ebuilds.
Diffstat (limited to 'app-emacs/flycheck/flycheck-32_p20210825.ebuild')
-rw-r--r--app-emacs/flycheck/flycheck-32_p20210825.ebuild34
1 files changed, 26 insertions, 8 deletions
diff --git a/app-emacs/flycheck/flycheck-32_p20210825.ebuild b/app-emacs/flycheck/flycheck-32_p20210825.ebuild
index c7352b1..8655676 100644
--- a/app-emacs/flycheck/flycheck-32_p20210825.ebuild
+++ b/app-emacs/flycheck/flycheck-32_p20210825.ebuild
@@ -7,20 +7,38 @@ 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
+ if [[ ${PV} = *_p* ]]; then
+ COMMIT="784f184cdd9f9cb4e3dbb997c09d93e954142842"
+ SRC_URI="https://github.com/flycheck/flycheck/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+ S="${WORKDIR}/${PN}-${COMMIT}"
+ else
+ SRC_URI="https://github.com/flycheck/flycheck/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+ fi
+ KEYWORDS="~amd64"
+fi
+
DESCRIPTION="Modern on-the-fly syntax checking extension for GNU Emacs"
HOMEPAGE="https://www.flycheck.org/"
-COMMIT="784f184cdd9f9cb4e3dbb997c09d93e954142842"
-SRC_URI="https://github.com/flycheck/flycheck/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
-S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="GPL-3+"
SLOT="0"
-KEYWORDS="~amd64"
-RESTRICT="test mirror" # test requires cask and ert-runner which are not packaged yet
+RESTRICT="test" # test requires cask and ert-runner which are not packaged yet
-RDEPEND=">=app-emacs/dash-2.12.1
->=app-emacs/pkg-info-0.4"
+RDEPEND=">=app-emacs/dash-2.12.1"
SITEFILE="50${PN}-gentoo.el"
-DOCS=( README.md )
+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
+}