summaryrefslogtreecommitdiff
path: root/app-emacs/emacsql/emacsql-4.3.0.ebuild
diff options
context:
space:
mode:
authorArsen Arsenović <arsen@gentoo.org>2025-04-09 10:35:16 +0200
committerArsen Arsenović <arsen@gentoo.org>2025-04-09 10:44:07 +0200
commit7ccc38b083e97046d12413dc232d431bd7fa4f92 (patch)
tree5f6712481e2c8d2a28c131de4dacb8dc8eea053a /app-emacs/emacsql/emacsql-4.3.0.ebuild
parentbba7382fec795440d2db0a682855e95189c9991d (diff)
downloadgentoo-7ccc38b083e97046d12413dc232d431bd7fa4f92.tar.gz
gentoo-7ccc38b083e97046d12413dc232d431bd7fa4f92.tar.bz2
gentoo-7ccc38b083e97046d12413dc232d431bd7fa4f92.zip
app-emacs/emacsql: add 4.3.0
Signed-off-by: Arsen Arsenović <arsen@gentoo.org>
Diffstat (limited to 'app-emacs/emacsql/emacsql-4.3.0.ebuild')
-rw-r--r--app-emacs/emacsql/emacsql-4.3.0.ebuild62
1 files changed, 62 insertions, 0 deletions
diff --git a/app-emacs/emacsql/emacsql-4.3.0.ebuild b/app-emacs/emacsql/emacsql-4.3.0.ebuild
new file mode 100644
index 000000000000..d29de3468233
--- /dev/null
+++ b/app-emacs/emacsql/emacsql-4.3.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS=26.1
+
+inherit elisp
+
+DESCRIPTION="A high-level Emacs Lisp RDBMS front-end"
+HOMEPAGE="https://github.com/magit/emacsql"
+
+if [[ "${PV}" == *9999* ]]; then
+ inherit git-r3
+
+ EGIT_REPO_URI="https://github.com/magit/${PN}.git"
+else
+ SRC_URI="
+ https://github.com/magit/${PN}/archive/refs/tags/v${PV}.tar.gz
+ -> ${P}.tar.gz
+ "
+
+ KEYWORDS="~amd64"
+fi
+
+LICENSE="Unlicense"
+SLOT="0"
+# TODO(arsen): postgres-pg using app-emacs/pg (unpackaged as of yet)
+IUSE="postgres mysql"
+
+RDEPEND="
+ ${DEPEND}
+ postgres? (
+ dev-db/postgresql
+ )
+ mysql? (
+ virtual/mysql
+ )
+"
+BDEPEND="
+ virtual/pkgconfig
+"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ default
+
+ # Not packaged.
+ rm emacsql-pg.el || die
+
+ local -A backends=(
+ [postgres]=psql
+ [mysql]=mysql
+ )
+
+ for useflag in "${!backends[@]}"; do
+ if ! use "${useflag}"; then
+ rm emacsql-"${backends[${useflag}]}".el || die
+ fi
+ done
+}