app-emacs/emacsql: drop old 4.0.0

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2024-10-31 18:51:08 +01:00
parent 2bcb4d73a2
commit 74d495e2f7
2 changed files with 0 additions and 88 deletions

View File

@@ -1,2 +1 @@
DIST emacsql-4.0.0.tar.gz 2398791 BLAKE2B 55a67c5da79e290ba1024a8704113276d6db9d05e539eba79bded01d4092c3565a50c48608cb0932ad0e06d0b1a378e61cceffc8bb910c03da717c6f0a70e62b SHA512 040d8fc9a28505102791ea203d8cb58520ea871b2abc937a128e7d26eba62e89886094874c69806a3e6e5e01cafff5d9caf699438693b03ccd383aa5f94ae949
DIST emacsql-4.0.3.tar.gz 2398435 BLAKE2B 3c66b922b63a1265660e59cf0319583f98bb6d51347fb6abd76e12d1ff0d9bb92501fb1e35bb4cbe83f8338d6b03e25d3a0536e78998f252ad210d80971e701a SHA512 a8ea07ddae35f993bfd9b19f4d0964ae3128d362e1e377e917a715d5c1dfb0c2dda0fd7ad17664f0e7e70342deeb780f99c5cd66be9b80aff46dd11a91c20984

View File

@@ -1,87 +0,0 @@
# Copyright 2023-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
NEED_EMACS=25.1
inherit edo elisp toolchain-funcs
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="+sqlite postgres mysql"
DEPEND="
sqlite? (
dev-db/sqlite:3
)
"
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=(
[sqlite]=sqlite
[postgres]=psql
[mysql]=mysql
)
for useflag in "${!backends[@]}"; do
if ! use "${useflag}"; then
rm emacsql-"${backends[${useflag}]}".el || die
fi
done
}
src_compile() {
if use sqlite; then
edo $(tc-getCC) -fPIC -Wall -Wextra \
$($(tc-getPKG_CONFIG) --cflags --libs sqlite3) \
${CPPFLAGS} ${CFLAGS} ${LDFLAGS} -o emacsql-sqlite \
sqlite/emacsql.c
fi
elisp_src_compile
}
src_install() {
elisp_src_install
if use sqlite; then
exeinto "${SITELISP}"/emacsql/sqlite
doexe emacsql-sqlite
fi
}