commit:     16cd2bc70b62105e0e07b5e989a189b608ec8c71
Author:     Arsen Arsenović <arsen <AT> gentoo <DOT> org>
AuthorDate: Wed Apr  9 08:37:47 2025 +0000
Commit:     Arsen Arsenović <arsen <AT> gentoo <DOT> org>
CommitDate: Wed Apr  9 08:44:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16cd2bc7

app-emacs/jinx: add 2.1

Signed-off-by: Arsen Arsenović <arsen <AT> gentoo.org>

 app-emacs/jinx/Manifest        |  1 +
 app-emacs/jinx/jinx-2.1.ebuild | 55 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 56 insertions(+)

diff --git a/app-emacs/jinx/Manifest b/app-emacs/jinx/Manifest
index ed6997b743c2..b48132209ac5 100644
--- a/app-emacs/jinx/Manifest
+++ b/app-emacs/jinx/Manifest
@@ -1,2 +1,3 @@
 DIST jinx-1.12.tar.gz 36050 BLAKE2B 
978259fb5e36ba86b97e035b2d128e19ef961146fa71a139bdbcf978cb360ca56fdf76bb43b1e9dfaf47c8acbf9082982f4e90e5c2e65adcea969787f61c8a44
 SHA512 
7336965a2fe3fb8c9e8f1ae6c4e7cd05a9bafda7476f1264b8bb584d8f3f81dca7085a5cc5befe686d56e2e43945e5b04c53ef8028886b2a46d0fa52afac8ee4
 DIST jinx-2.0.tar.gz 36458 BLAKE2B 
aa9ba5b6cdb96a1764cc84e0f1f51b1058e872d68b5613b416241930b1d65bb81f9d32f6de3527f6b8dec3e587fe0d57f4b295e87746ba12c30f117288b0e4c1
 SHA512 
da34d1f055f108f5abb3984978841b7bd9e19d4ded88c8e37192cb6a523ad04910ab5e9875aceb2cf6c7eb6486fc6166eaf5fb21f47cf0bcdfb943646f555a5a
+DIST jinx-2.1.tar.gz 36669 BLAKE2B 
ca88c0e5c05c5bf554d129db0794fed4c794f535c2d420ed1692dd3378102aa41ce4c4f0322d84d235b0c66961db85f05f23f7f5a1376f46511a33a2d6fb5b21
 SHA512 
3f49c771629c5d6bab5130d3b2fa6a6237fe2a09292610838af8da519733957fc8ea603939e983d54e2e15bfc0cf0d736e8a45e5a86d5cdfaa2f8eb2d621f98b

diff --git a/app-emacs/jinx/jinx-2.1.ebuild b/app-emacs/jinx/jinx-2.1.ebuild
new file mode 100644
index 000000000000..fcd7f6074591
--- /dev/null
+++ b/app-emacs/jinx/jinx-2.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS=28.1
+
+inherit edo elisp toolchain-funcs
+
+DESCRIPTION="Enchanted Spell Checker for GNU Emacs"
+HOMEPAGE="https://github.com/minad/jinx";
+
+if [[ "${PV}" == *9999* ]] ; then
+       inherit git-r3
+
+       EGIT_REPO_URI="https://github.com/minad/${PN}.git";
+else
+       SRC_URI="https://github.com/minad/${PN}/archive/refs/tags/${PV}.tar.gz
+               -> ${P}.tar.gz"
+
+       KEYWORDS="~amd64 ~x86"
+fi
+
+LICENSE="GPL-3+"
+SLOT="0"
+
+RDEPEND="
+       app-text/enchant:2
+       >=app-emacs/compat-29.1.4.0
+"
+DEPEND="
+       ${RDEPEND}
+"
+BDEPEND="
+       virtual/pkgconfig
+"
+
+ELISP_TEXINFO="${PN}.texi"
+SITEFILE="50${PN}-gentoo.el"
+
+src_compile() {
+       edo $(tc-getCC) -fPIC -Wall -Wextra -shared \
+               $($(tc-getPKG_CONFIG) --cflags --libs enchant-2) \
+               ${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o jinx-mod.so jinx-mod.c
+       elisp-org-export-to texinfo README.org
+       elisp_src_compile
+}
+
+src_install() {
+       elisp-make-autoload-file
+       elisp_src_install
+
+       elisp-modules-install "${PN}" jinx-mod.so
+       doinfo jinx.info
+}

Reply via email to