diff options
Diffstat (limited to 'app-emacs')
-rw-r--r-- | app-emacs/Manifest.gz | bin | 72583 -> 73067 bytes | |||
-rw-r--r-- | app-emacs/emacsql/Manifest | 4 | ||||
-rw-r--r-- | app-emacs/emacsql/emacsql-3.1.1.ebuild | 80 | ||||
-rw-r--r-- | app-emacs/emacsql/files/emacsql-3.1.1-fix-utf8-bom-writing.patch | 52 | ||||
-rw-r--r-- | app-emacs/emacsql/metadata.xml | 15 | ||||
-rw-r--r-- | app-emacs/indent-bars/Manifest | 4 | ||||
-rw-r--r-- | app-emacs/indent-bars/files/50indent-bars-gentoo.el | 3 | ||||
-rw-r--r-- | app-emacs/indent-bars/indent-bars-0.2.ebuild | 21 | ||||
-rw-r--r-- | app-emacs/indent-bars/metadata.xml | 11 | ||||
-rw-r--r-- | app-emacs/org-roam/Manifest | 5 | ||||
-rw-r--r-- | app-emacs/org-roam/files/50org-roam-gentoo.el | 3 | ||||
-rw-r--r-- | app-emacs/org-roam/metadata.xml | 15 | ||||
-rw-r--r-- | app-emacs/org-roam/org-roam-2.2.2.ebuild | 37 | ||||
-rw-r--r-- | app-emacs/org-roam/org-roam-9999.ebuild | 37 |
14 files changed, 287 insertions, 0 deletions
diff --git a/app-emacs/Manifest.gz b/app-emacs/Manifest.gz Binary files differindex 92e228973833..f59a7b29b8ee 100644 --- a/app-emacs/Manifest.gz +++ b/app-emacs/Manifest.gz diff --git a/app-emacs/emacsql/Manifest b/app-emacs/emacsql/Manifest new file mode 100644 index 000000000000..7ab03e5f897e --- /dev/null +++ b/app-emacs/emacsql/Manifest @@ -0,0 +1,4 @@ +AUX emacsql-3.1.1-fix-utf8-bom-writing.patch 2164 BLAKE2B 8e2a4be8cb6f4ef77a4da1dd5b0328a381800404e4c29861e4b9507055c64f6854da01178150804889aad8753e0ce33e0e17588c7bcd9c1ff55b738e27935dbc SHA512 a1307f072d26651e32e202cb70790d58019ee542c4cb1753a912913edd41eeb6f645f564a31d309737748ce6aaa278c206fb9b666ff87073df76bf4451fcc1cf +DIST emacsql-3.1.1.tar.gz 2392710 BLAKE2B 7281c9630c26363d9e88463a3ead8b241a3fc1a5e87cbf855eb233ef6b295ca6ba4ea4a79b5137b27f9eed33012dfaa183dab7be8e76b240305ee921edebe874 SHA512 0ec3890cfa014a0afef23e2e38bcd844527b0a497bbfe6f89cbbb090811d43996074e642f83f7f49b27659fc51a901645a54aac600e9988dcb40fffe86a06fbf +EBUILD emacsql-3.1.1.ebuild 1490 BLAKE2B 7b8945b85f58513844d72cc4f2ffec1ea68b252bfa7ba4a63fc5315e28675367564cf92a56beecb3042a8c496f25db0bda8c39ee91586e2f4a6bc6cc9dca76af SHA512 102c7b2bb78bfe043692cf347d69b6f0aae98ae7ddfa143ebc904448cb350521a93abc338fb5331d1b05c16afc3b49450ad1669d7cc55950ddb4a8a55938f3e1 +MISC metadata.xml 479 BLAKE2B a51c34e3703652d2e5f8f7e220ab7993b849c88cc55a1ae8f631da0196399985996588e13814f7d52c13bb7f57771e95f436c6cd4fe196476a2bdbe18d5db718 SHA512 9d137ba2b6ed1807116101dc5a8e3c131a5d1dc23e285704aa3344afb608725fe29700d1b946dbc523dba3d80899c08ca4e7a64bd4a89c9250abacd155e61d18 diff --git a/app-emacs/emacsql/emacsql-3.1.1.ebuild b/app-emacs/emacsql/emacsql-3.1.1.ebuild new file mode 100644 index 000000000000..3ba6d2c8d2a6 --- /dev/null +++ b/app-emacs/emacsql/emacsql-3.1.1.ebuild @@ -0,0 +1,80 @@ +# Copyright 2023 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/${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" + +PATCHES=( + "${FILESDIR}/${PN}-3.1.1-fix-utf8-bom-writing.patch" +) + +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 +} diff --git a/app-emacs/emacsql/files/emacsql-3.1.1-fix-utf8-bom-writing.patch b/app-emacs/emacsql/files/emacsql-3.1.1-fix-utf8-bom-writing.patch new file mode 100644 index 000000000000..ffa30dec85cb --- /dev/null +++ b/app-emacs/emacsql/files/emacsql-3.1.1-fix-utf8-bom-writing.patch @@ -0,0 +1,52 @@ +From 3cec7dcb201568a09ee9cebf0ea1e43cba9d334a Mon Sep 17 00:00:00 2001 +From: Jonas Bernoulli <jonas@bernoul.li> +Date: Tue, 17 Jan 2023 17:33:37 +0100 +Subject: [PATCH] Use utf-8 coding-system instead of utf-8-auto +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +This fixes an issue that was merely triggered by a change in Emacs +[1]. [2: 127bb98] started binding `coding-system-for-write' and +`coding-system-for-read' to `utf-8-auto'. As Eli points out at [3] +`utf-8-auto' was probably a mistake and `utf-8' should have been +used instead. + +1: https://github.com/emacsmirror/emacs/commit/cfd2b3504ab5de6eb5 + +2: 2014-02-02 127bb98df20d84117d34822f50ea584af81b19c3 + Set coding system to utf-8-auto for sqlite. + +3: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60872#11. + + > Setting coding-system-for-write to utf-8-auto makes no sense; + > that coding-system's _only_ raison d'être is for using in + > coding-system-for-read, i.e. when decoding stuff that may or + > may not start with a BOM. + +Since EmacSQL is not a general-purpose database but instead stores +data encoded by Emacs for later retrieval by Emacs only, we do not +have to with the unlikely appearance of a BOM, so we can use `utf-8' +instead of `utf-8-auto' for writes *and* reads. + +Re #104, #106, magit/forge#533, magit/forge#535, bug#60872. +--- + emacsql-sqlite.el | 5 +++-- + 1 file changed, 3 insertions(+), 2 deletions(-) + +diff --git a/emacsql-sqlite.el b/emacsql-sqlite.el +index 1193147..7b8876f 100644 +--- a/emacsql-sqlite.el ++++ b/emacsql-sqlite.el +@@ -73,8 +73,9 @@ used.") + ((connection emacsql-sqlite-connection) &rest _rest) + (emacsql-sqlite-ensure-binary) + (let* ((process-connection-type nil) ; use a pipe +- (coding-system-for-write 'utf-8-auto) +- (coding-system-for-read 'utf-8-auto) ++ ;; See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=60872#11. ++ (coding-system-for-write 'utf-8) ++ (coding-system-for-read 'utf-8) + (file (slot-value connection 'file)) + (buffer (generate-new-buffer " *emacsql-sqlite*")) + (fullfile (if file (expand-file-name file) ":memory:")) diff --git a/app-emacs/emacsql/metadata.xml b/app-emacs/emacsql/metadata.xml new file mode 100644 index 000000000000..0b03e24c9c24 --- /dev/null +++ b/app-emacs/emacsql/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>arsen@gentoo.org</email> + <description>Arsen Arsenović</description> + </maintainer> + <maintainer type="project"> + <email>gnu-emacs@gentoo.org</email> + <name>Gentoo GNU Emacs project</name> + </maintainer> + <upstream> + <remote-id type="github">magit/emacsql</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-emacs/indent-bars/Manifest b/app-emacs/indent-bars/Manifest new file mode 100644 index 000000000000..df5754f1f809 --- /dev/null +++ b/app-emacs/indent-bars/Manifest @@ -0,0 +1,4 @@ +AUX 50indent-bars-gentoo.el 87 BLAKE2B 2f7c9c919be0a3165187fd99d11ec7dc848b09363dbf399150f3f4f3f828d262aa57a7be2b94915605e4646a4720863dc3e7499231dba949b7f61ab3677e07f6 SHA512 12c51ca505120d3cc5e5f71d35c10bdb80eeea53143dcd3a68a10f14ba3ff55c9a92ff3a421b7cd77f1c050ec37ecdf9c2a3d593eaf47edd361c3a4bf6f2e5a5 +DIST indent-bars-0.2.tar.gz 33072 BLAKE2B b5f0b80f1b4291c19fec603a5610ae020ae1cd1531278c5eedf814c3aae4be76d5731b553220314ef67f785f1822c7861e088a5ec163505d9303e9ec2c5fda5c SHA512 e5eab37d5963855948efdd9739a44306c60fafef0cd589edcb6550ff52a4e6a0e403bde8124838d250c1bb78aff0bfbfa1e45275458af3e0ae00472628981b1b +EBUILD indent-bars-0.2.ebuild 471 BLAKE2B e8daefeed01fa16530070cb73d485af34555970d4029b637277108f6c07894fad0815e4fa1f4e68a9430be91b3cae0e3ea87a8980425793692a7c63f58ea86ee SHA512 38ccd641a726d4436f0489f2f7aa95c802cc3cfa4770b5259e6ab1a1cf039e766e4dba13920e3ff95b46a6062855ed66cdd7c2ffaa560184832896756cace06e +MISC metadata.xml 360 BLAKE2B f8f3e9c9350a90db3540b41a9bba9720402a0f0529baf0f31dc90a7a6e7a0d302ea6fe3da642b9f7536f31b44dc5da20a11b54f9ecf3b7e53243bbe310a9f93b SHA512 fa8d016d6434ed6ee2048fa36fc1f11b97315d63e0efd16580b9780db7854a2bb670493f28a2c84c5cb5899ba0349ee203ab4ca45436f3f32409aed4f63626b9 diff --git a/app-emacs/indent-bars/files/50indent-bars-gentoo.el b/app-emacs/indent-bars/files/50indent-bars-gentoo.el new file mode 100644 index 000000000000..b824a0f5f34a --- /dev/null +++ b/app-emacs/indent-bars/files/50indent-bars-gentoo.el @@ -0,0 +1,3 @@ +(add-to-list 'load-path "@SITELISP@") + +(autoload 'indent-bars-mode "indent-bars" "" t) diff --git a/app-emacs/indent-bars/indent-bars-0.2.ebuild b/app-emacs/indent-bars/indent-bars-0.2.ebuild new file mode 100644 index 000000000000..2f46c530c735 --- /dev/null +++ b/app-emacs/indent-bars/indent-bars-0.2.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +NEED_EMACS=27.1 + +inherit elisp + +IUSE="" + +DESCRIPTION="Fast, configurable indentation guide-bars for Emacs" +HOMEPAGE="https://github.com/jdtsmith/indent-bars" +SRC_URI="https://github.com/jdtsmith/indent-bars/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" + +SITEFILE="50${PN}-gentoo.el" + +DOCS="examples.md README.md" diff --git a/app-emacs/indent-bars/metadata.xml b/app-emacs/indent-bars/metadata.xml new file mode 100644 index 000000000000..407b662f5696 --- /dev/null +++ b/app-emacs/indent-bars/metadata.xml @@ -0,0 +1,11 @@ +<?xml version = '1.0' encoding = 'UTF-8'?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>gnu-emacs@gentoo.org</email> + <name>Gentoo GNU Emacs project</name> + </maintainer> + <upstream> + <remote-id type="github">jdtsmith/indent-bars</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-emacs/org-roam/Manifest b/app-emacs/org-roam/Manifest new file mode 100644 index 000000000000..4b9e73e3227a --- /dev/null +++ b/app-emacs/org-roam/Manifest @@ -0,0 +1,5 @@ +AUX 50org-roam-gentoo.el 157 BLAKE2B a4a973745d2bfac6a90f490becbfd96f3332403ed8330ab48eae3078cc9d42cd13c042b72e1c7d9a11a6c775709eb2335da066c41d88989566f6f8265b4665e6 SHA512 ce2df5b2a95063ea6a77a9ba5e96155f2097dd11d27551b3a037d2c5cb3423bb3010c77f0366d1b3e8fa352d6985ba375f8d07914be8e7941d22b30080f08235 +DIST org-roam-2.2.2.tar.gz 37466184 BLAKE2B f929d765493a640f5df0417dfd37618049d7af24ac78fd1dc00ef79bc7576ca856d6cc926a30bcd0f69c27595bf1ce517e49fe9e592dd208f08b83d03544d80a SHA512 737baff1b3ab7a3008ed3bf1816f8cf1ce461dccfe8e195e8ac11ba50c2c983573d62c364c75a119facf3131f90764842bfe121cdad0a4c2add606aa806aef10 +EBUILD org-roam-2.2.2.ebuild 649 BLAKE2B e2365fbe4072ef2a5c3df96c16467155ac77a927cde5d6021aac40f09c7725f814c6ef4f6ed1c33e8e67a6ff821572d63c261b28b253a4e0e7b69704d6d5c6c6 SHA512 a419d6f263aae942e7fa19c5c938a880805d40fe02ff43c1d408466123d4371de2c07ec2b9a1f2acd3bde06587b82c1cace1a90e69d17a02170984355ffaefb5 +EBUILD org-roam-9999.ebuild 649 BLAKE2B e2365fbe4072ef2a5c3df96c16467155ac77a927cde5d6021aac40f09c7725f814c6ef4f6ed1c33e8e67a6ff821572d63c261b28b253a4e0e7b69704d6d5c6c6 SHA512 a419d6f263aae942e7fa19c5c938a880805d40fe02ff43c1d408466123d4371de2c07ec2b9a1f2acd3bde06587b82c1cace1a90e69d17a02170984355ffaefb5 +MISC metadata.xml 483 BLAKE2B ac9a6e359aa5c9f409cfbee54b874f7132cb3836603ede39693a228ce62fa27e3bb20bd7675c2c6f2722c1a8001dde1c1516c3d9447b8f5318ebb1b062734b03 SHA512 ddbe4ba5fdee246fd5d2a979719bcc9680f53a0799525fc966506edf30a4b4589057ea8c127b0bec4c0959ec00f4f674999b82f10349605e0a67db87bf15c473 diff --git a/app-emacs/org-roam/files/50org-roam-gentoo.el b/app-emacs/org-roam/files/50org-roam-gentoo.el new file mode 100644 index 000000000000..ac1c52bf5855 --- /dev/null +++ b/app-emacs/org-roam/files/50org-roam-gentoo.el @@ -0,0 +1,3 @@ +;;; app-emacs/org-roam site configuration -*- lexical-binding: t; -*- +(add-to-list 'load-path "@SITELISP@") +(load "@SITELISP@/org-roam-autoloads.el" nil t) diff --git a/app-emacs/org-roam/metadata.xml b/app-emacs/org-roam/metadata.xml new file mode 100644 index 000000000000..a88691fba13b --- /dev/null +++ b/app-emacs/org-roam/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>arsen@gentoo.org</email> + <description>Arsen Arsenović</description> + </maintainer> + <maintainer type="project"> + <email>gnu-emacs@gentoo.org</email> + <name>Gentoo GNU Emacs project</name> + </maintainer> + <upstream> + <remote-id type="github">org-roam/org-roam</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-emacs/org-roam/org-roam-2.2.2.ebuild b/app-emacs/org-roam/org-roam-2.2.2.ebuild new file mode 100644 index 000000000000..961a5abd416c --- /dev/null +++ b/app-emacs/org-roam/org-roam-2.2.2.ebuild @@ -0,0 +1,37 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=26.1 +inherit elisp + +DESCRIPTION="Rudimentary Roam replica with Org-mode" +HOMEPAGE="https://github.com/org-roam/org-roam" + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" +else + SRC_URI=" + https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + " + + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3+" +SLOT="0" + +RDEPEND=" + app-emacs/dash + app-emacs/magit + app-emacs/emacsql[sqlite] +" +BDEPEND="${RDEPEND}" + +src_install() { + elisp-make-autoload-file + elisp_src_install +} diff --git a/app-emacs/org-roam/org-roam-9999.ebuild b/app-emacs/org-roam/org-roam-9999.ebuild new file mode 100644 index 000000000000..961a5abd416c --- /dev/null +++ b/app-emacs/org-roam/org-roam-9999.ebuild @@ -0,0 +1,37 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=26.1 +inherit elisp + +DESCRIPTION="Rudimentary Roam replica with Org-mode" +HOMEPAGE="https://github.com/org-roam/org-roam" + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" +else + SRC_URI=" + https://github.com/${PN}/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz + " + + KEYWORDS="~amd64" +fi + +LICENSE="GPL-3+" +SLOT="0" + +RDEPEND=" + app-emacs/dash + app-emacs/magit + app-emacs/emacsql[sqlite] +" +BDEPEND="${RDEPEND}" + +src_install() { + elisp-make-autoload-file + elisp_src_install +} |