diff options
Diffstat (limited to 'app-emacs/emacsql')
-rw-r--r-- | app-emacs/emacsql/Manifest | 2 | ||||
-rw-r--r-- | app-emacs/emacsql/emacsql-4.1.0.ebuild | 72 |
2 files changed, 74 insertions, 0 deletions
diff --git a/app-emacs/emacsql/Manifest b/app-emacs/emacsql/Manifest index 111a89aa0902..7fee422f236c 100644 --- a/app-emacs/emacsql/Manifest +++ b/app-emacs/emacsql/Manifest @@ -1,3 +1,5 @@ DIST emacsql-4.0.3.tar.gz 2398435 BLAKE2B 3c66b922b63a1265660e59cf0319583f98bb6d51347fb6abd76e12d1ff0d9bb92501fb1e35bb4cbe83f8338d6b03e25d3a0536e78998f252ad210d80971e701a SHA512 a8ea07ddae35f993bfd9b19f4d0964ae3128d362e1e377e917a715d5c1dfb0c2dda0fd7ad17664f0e7e70342deeb780f99c5cd66be9b80aff46dd11a91c20984 +DIST emacsql-4.1.0.tar.gz 32308 BLAKE2B b5022c9312057949fe243ae696860da26060ccd2df0103fa6298c9613135e0b4bd246eb57c276d33ee39d348230a5648e70f077feb0b97e07c06af5778d5905d SHA512 a43c5dd1bdca451b91a4a0dbf771b138cb55ee69a950e37507d109b3dbe5522a01ba57e2ac6ec8678dbb21c002fb72bf69068f014883bac660d1a824a4eecafc EBUILD emacsql-4.0.3.ebuild 1448 BLAKE2B d5b819dede266c70ddb11ac1daf3f4a47bf2336cdb9ee3bebc5e3e41fd2fe1812f03ea08e4c1c69cb083461adf7ef90afb019a6b3db16424676c5ccadb4fcafc SHA512 4512ec40fc51cd914334c9bbb3aa0338d48f809c5cb357a29507016cc85faa3346ea49a12ed5831e6774b2353c60c6f52789af3b7159b929e9f2a448b2febc81 +EBUILD emacsql-4.1.0.ebuild 1383 BLAKE2B bb23bfbc6b3fbb01e1fcfe3edf3e6854358fca18ae6fd6829a1d82c9f93dab32b70864a89029e02ab96f3c8b2de504eca853f45658dba75a32d30dd9a6cdf4f6 SHA512 34b80e586b5a09b2cb8554a509ef93807c169d416f78a0770d0296a671e6c0bbe001a7185777d376d6b57a4a8d51d9c8317f103d3560654e3c76008a0f0d377a MISC metadata.xml 479 BLAKE2B a51c34e3703652d2e5f8f7e220ab7993b849c88cc55a1ae8f631da0196399985996588e13814f7d52c13bb7f57771e95f436c6cd4fe196476a2bdbe18d5db718 SHA512 9d137ba2b6ed1807116101dc5a8e3c131a5d1dc23e285704aa3344afb608725fe29700d1b946dbc523dba3d80899c08ca4e7a64bd4a89c9250abacd155e61d18 diff --git a/app-emacs/emacsql/emacsql-4.1.0.ebuild b/app-emacs/emacsql/emacsql-4.1.0.ebuild new file mode 100644 index 000000000000..dd61788c8ae3 --- /dev/null +++ b/app-emacs/emacsql/emacsql-4.1.0.ebuild @@ -0,0 +1,72 @@ +# Copyright 2023-2024 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 +} + +pkg_postinst() { + [[ ${REPLACING_VERSIONS} ]] || return; + elog "${P} removes the SQLite connector in favor of sqlite-builtin" + elog "or sqlite-module. If you use org-roam and you were using" + elog " (org-roam-database-connector 'sqlite)" + elog "... consider using app-editors/emacs[sqlite] and " + elog " (org-roam-database-connector 'sqlite-builtin)" + elog "... instead" +} |