commit:     68782b6ca4bf9610819ac785634c6b6bb30807a4
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 28 12:38:52 2022 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Thu Jul 28 13:01:35 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68782b6c

app-emacs/company-mode: bump to 0.9.13_p20220720

Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>

 app-emacs/company-mode/Manifest                    |  1 +
 .../company-mode-0.9.13_p20220720.ebuild           | 48 ++++++++++++++++++++++
 .../files/company-mode-company-icons-root.patch    | 11 +++++
 3 files changed, 60 insertions(+)

diff --git a/app-emacs/company-mode/Manifest b/app-emacs/company-mode/Manifest
index 3db6c9018d79..e06bef2fc62f 100644
--- a/app-emacs/company-mode/Manifest
+++ b/app-emacs/company-mode/Manifest
@@ -1,2 +1,3 @@
 DIST company-mode-0.9.10.tar.gz 85982 BLAKE2B 
393e8ff31f4a88d1c156418bd0c827572ec078b833e78bd1007779961e9fb852737f12a5c1aeba154ebba53d81058bdc2871f7d88880aaa7dd8cb9692461c8fb
 SHA512 
b6571c55bcf68a5e83e7c92c8b53e0ac6b4e84bce1246331a7da4495f4ee5c3ab38035310fd2eb7a87748db1c034996d99c7ead8aa831d552800642b31cf9fe0
 DIST company-mode-0.9.13.tar.gz 88074 BLAKE2B 
8704d45d0dec15d7fbe39edcdaa3e348263eef4e78a9c55160b4c83df892b73241659dec685e31d7eab5fceaf34a956a7d81d0ec7d3ce134ffda0415a44a7c8c
 SHA512 
d253504e38515335b9a7186c5664e2700ae171e215e8eef1fca28c267d610882dd29c03701efb9d71eac9ec855807aa956411de08a3bd42508f0b0aba38d4dd9
+DIST company-mode-0.9.13_p20220720.tar.gz 2198598 BLAKE2B 
0dad09689e11b613397149fd0f6c16aa0e01a8d79bd7fc79b66b2ad32a48544ba1a1a6488c316477c793218432383b6ba784c171ada15ac6fe90cce07920ba9d
 SHA512 
fea6d572fee0ecbd91fb41427d7e1eec462fd92da426af1011d1f5c590c2b6c793064c5d25aad49728a9fbbd25a010ee2e17a495115e7bd3587092f3cb4b9f8a

diff --git a/app-emacs/company-mode/company-mode-0.9.13_p20220720.ebuild 
b/app-emacs/company-mode/company-mode-0.9.13_p20220720.ebuild
new file mode 100644
index 000000000000..a4fa43142ed0
--- /dev/null
+++ b/app-emacs/company-mode/company-mode-0.9.13_p20220720.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+H=16ffeba5ef96c4c8e0cd39860b5402e25e304601
+NEED_EMACS=25.1
+
+inherit elisp
+
+DESCRIPTION="In-buffer completion front-end"
+HOMEPAGE="https://company-mode.github.io/";
+SRC_URI="https://github.com/${PN}/${PN}/archive/${H}.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}"/${PN}-${H}
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+PATCHES=( "${FILESDIR}"/${PN}-company-icons-root.patch )
+
+SITEFILE="50${PN}-gentoo.el"
+DOCS=( CONTRIBUTING.md README.md NEWS.md )
+
+src_prepare() {
+       elisp_src_prepare
+
+       sed "s|@SITEETC@|${SITEETC}/${PN}|" -i company.el || die
+}
+
+src_compile() {
+       elisp_src_compile
+
+       emake -C doc company.info
+}
+
+src_test() {
+       emake test-batch
+}
+
+src_install() {
+       elisp_src_install
+
+       insinto ${SITEETC}/${PN}
+       doins -r icons
+
+       doinfo doc/company.info
+}

diff --git a/app-emacs/company-mode/files/company-mode-company-icons-root.patch 
b/app-emacs/company-mode/files/company-mode-company-icons-root.patch
new file mode 100644
index 000000000000..69f33323a25d
--- /dev/null
+++ b/app-emacs/company-mode/files/company-mode-company-icons-root.patch
@@ -0,0 +1,11 @@
+--- a/company.el
++++ b/company.el
+@@ -1578,7 +1578,7 @@ end of the match."
+ (defconst company-icons-root
+   (file-name-as-directory
+    (expand-file-name "icons"
+-                     (file-name-directory (or load-file-name 
buffer-file-name)))))
++                     "@SITEETC@")))
+ 
+ (defcustom company-icon-size '(auto-scale . 16)
+   "Size of icons indicating completion kind in the popup."

Reply via email to