public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-emacs/gptel/, app-emacs/gptel/files/
@ 2024-09-28 20:23 Maciej Barć
  0 siblings, 0 replies; only message in thread
From: Maciej Barć @ 2024-09-28 20:23 UTC (permalink / raw
  To: gentoo-commits

commit:     e5c5e9c60228c3adf81781480a3767358bdf3160
Author:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 28 20:15:23 2024 +0000
Commit:     Maciej Barć <xgqt <AT> gentoo <DOT> org>
CommitDate: Sat Sep 28 20:23:36 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5c5e9c6

app-emacs/gptel: new package; add 0.9.0

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

 app-emacs/gptel/Manifest                |  1 +
 app-emacs/gptel/files/50gptel-gentoo.el |  2 ++
 app-emacs/gptel/gptel-0.9.0.ebuild      | 43 +++++++++++++++++++++++++++++++++
 app-emacs/gptel/metadata.xml            | 19 +++++++++++++++
 4 files changed, 65 insertions(+)

diff --git a/app-emacs/gptel/Manifest b/app-emacs/gptel/Manifest
new file mode 100644
index 000000000000..0ccb968c75de
--- /dev/null
+++ b/app-emacs/gptel/Manifest
@@ -0,0 +1 @@
+DIST gptel-0.9.0.tar.gz 75974 BLAKE2B 51bf6ebe754a8fecaa2645d9dba77b844dbc65fbfd430ff67dcaa6b4893c66960f83c8e4344d0fa8b294ba8b468c8ce744fa0f284ed4e87b6e694edb07d2dd14 SHA512 6b7030bc87ef5a9edac547efe62c3392cbca08973eec5f7ace4358b0ad8c25049b69309beec100e6604ed35935468f531f0e0325df65d771819f80826b6b419d

diff --git a/app-emacs/gptel/files/50gptel-gentoo.el b/app-emacs/gptel/files/50gptel-gentoo.el
new file mode 100644
index 000000000000..9fd7e1939754
--- /dev/null
+++ b/app-emacs/gptel/files/50gptel-gentoo.el
@@ -0,0 +1,2 @@
+(add-to-list 'load-path "@SITELISP@")
+(load "@SITELISP@/gptel-autoloads.el" nil t)

diff --git a/app-emacs/gptel/gptel-0.9.0.ebuild b/app-emacs/gptel/gptel-0.9.0.ebuild
new file mode 100644
index 000000000000..783dad3ec302
--- /dev/null
+++ b/app-emacs/gptel/gptel-0.9.0.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS="27.1"
+
+inherit elisp
+
+DESCRIPTION="Simple Large Language Model chat client for GNU Emacs"
+HOMEPAGE="https://github.com/karthink/gptel/"
+
+if [[ "${PV}" == *9999* ]] ; then
+	inherit git-r3
+
+	EGIT_REPO_URI="https://github.com/karthink/${PN}.git"
+else
+	SRC_URI="https://github.com/karthink/${PN}/archive/refs/tags/v${PV}.tar.gz
+		-> ${P}.tar.gz"
+
+	KEYWORDS="~amd64 ~arm64"
+fi
+
+LICENSE="GPL-3"
+SLOT="0"
+
+RDEPEND="
+	>=app-emacs/compat-30.0.0.0
+	app-emacs/transient
+"
+BDEPEND="
+	${RDEPEND}
+"
+
+DOCS=( README.org )
+SITEFILE="50${PN}-gentoo.el"
+
+elisp-enable-tests ert test -l gptel-org -l gptel-org-test
+
+src_compile() {
+	elisp_src_compile
+	elisp-make-autoload-file
+}

diff --git a/app-emacs/gptel/metadata.xml b/app-emacs/gptel/metadata.xml
new file mode 100644
index 000000000000..6181815e9abe
--- /dev/null
+++ b/app-emacs/gptel/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+  <maintainer type="project">
+    <email>gnu-emacs@gentoo.org</email>
+    <name>Gentoo GNU Emacs project</name>
+  </maintainer>
+  <longdescription>
+    gptel is a simple Large Language Model chat client for Emacs, with
+    support for multiple models and backends. It works in the spirit of
+    Emacs, available at any time and uniformly in any buffer.
+  </longdescription>
+  <upstream>
+    <bugs-to>https://github.com/karthink/gptel/issues/</bugs-to>
+    <remote-id type="github">karthink/gptel</remote-id>
+  </upstream>
+  <stabilize-allarches />
+</pkgmetadata>


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-09-28 20:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-28 20:23 [gentoo-commits] repo/gentoo:master commit in: app-emacs/gptel/, app-emacs/gptel/files/ Maciej Barć

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox