]> jturnerusa.dev Git - ebuilds/commitdiff
app-emacs/eglot: added live ebuild and merged 1.6 and 1.7 with the live build
authorJohn Turner <jturner.usa+gentoo@gmail.com>
Wed, 3 Nov 2021 17:50:11 +0000 (13:50 -0400)
committerJohn Turner <jturner.usa+gentoo@gmail.com>
Wed, 3 Nov 2021 17:50:11 +0000 (13:50 -0400)
app-emacs/eglot/eglot-1.6.ebuild
app-emacs/eglot/eglot-1.7.ebuild
app-emacs/eglot/eglot-9999.ebuild [new file with mode: 0644]

index 913bb955411f6c7f14a882ee6a675da7b9f93dad..17a70f5b33a5fff4143c235d02b7ef4315002ad2 100644 (file)
@@ -7,13 +7,22 @@ NEED_EMACS="26.1"
 
 inherit elisp
 
+if [[ ${PV} = 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/joaotavora/eglot"
+       EGIT_BRANCH="master"
+       EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
+       S="${EGIT_CHECKOUT_DIR}"
+else
+       SRC_URI="https://github.com/joaotavora/eglot/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
 DESCRIPTION="A minimal Emacs LSP client"
 HOMEPAGE="https://github.com/joaotavora/eglot"
-SRC_URI="https://github.com/joaotavora/eglot/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64"
 # test requires internet connection to install several language servers, one of which
 # is not packaged
 RESTRICT="test"
index 913bb955411f6c7f14a882ee6a675da7b9f93dad..17a70f5b33a5fff4143c235d02b7ef4315002ad2 100644 (file)
@@ -7,13 +7,22 @@ NEED_EMACS="26.1"
 
 inherit elisp
 
+if [[ ${PV} = 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/joaotavora/eglot"
+       EGIT_BRANCH="master"
+       EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
+       S="${EGIT_CHECKOUT_DIR}"
+else
+       SRC_URI="https://github.com/joaotavora/eglot/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
 DESCRIPTION="A minimal Emacs LSP client"
 HOMEPAGE="https://github.com/joaotavora/eglot"
-SRC_URI="https://github.com/joaotavora/eglot/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
 
 LICENSE="GPL-3"
 SLOT="0"
-KEYWORDS="~amd64"
 # test requires internet connection to install several language servers, one of which
 # is not packaged
 RESTRICT="test"
diff --git a/app-emacs/eglot/eglot-9999.ebuild b/app-emacs/eglot/eglot-9999.ebuild
new file mode 100644 (file)
index 0000000..17a70f5
--- /dev/null
@@ -0,0 +1,37 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS="26.1"
+
+inherit elisp
+
+if [[ ${PV} = 9999 ]]; then
+       inherit git-r3
+       EGIT_REPO_URI="https://github.com/joaotavora/eglot"
+       EGIT_BRANCH="master"
+       EGIT_CHECKOUT_DIR="${WORKDIR}/${P}"
+       S="${EGIT_CHECKOUT_DIR}"
+else
+       SRC_URI="https://github.com/joaotavora/eglot/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+       KEYWORDS="~amd64"
+fi
+
+DESCRIPTION="A minimal Emacs LSP client"
+HOMEPAGE="https://github.com/joaotavora/eglot"
+
+LICENSE="GPL-3"
+SLOT="0"
+# test requires internet connection to install several language servers, one of which
+# is not packaged
+RESTRICT="test"
+
+SITEFILE="50${PN}-gentoo.el"
+ELISP_REMOVE="eglot-tests.el"
+DOCS=( README.md NEWS.md )
+
+src_install() {
+       elisp-make-autoload-file "${S}"/${PN}-autoload.el "${S}"/
+       elisp_src_install
+}