From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 982E115808E for ; Tue, 26 Apr 2022 01:33:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 96F6FE07B3; Tue, 26 Apr 2022 01:32:57 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5E96CE079E for ; Tue, 26 Apr 2022 01:32:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6D9FB34160A for ; Tue, 26 Apr 2022 01:32:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8665042F for ; Tue, 26 Apr 2022 01:32:52 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1650936701.2c2a902ccb64bcbc53303c5522d79c5d0cfb79d2.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emacs/treemacs/, app-emacs/treemacs/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emacs/treemacs/Manifest app-emacs/treemacs/files/50treemacs-gentoo.el app-emacs/treemacs/files/treemacs-icons-icon-directory.patch app-emacs/treemacs/metadata.xml app-emacs/treemacs/treemacs-2.9.5.ebuild X-VCS-Directories: app-emacs/treemacs/files/ app-emacs/treemacs/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: 2c2a902ccb64bcbc53303c5522d79c5d0cfb79d2 X-VCS-Branch: master Date: Tue, 26 Apr 2022 01:32:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 0fd2d149-bee0-43b9-bbf9-217ca53fe43f X-Archives-Hash: 092fe5a9e3c9e230cb3372b6da8617a9 commit: 2c2a902ccb64bcbc53303c5522d79c5d0cfb79d2 Author: Maciej Barć gentoo org> AuthorDate: Tue Apr 26 00:09:07 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Tue Apr 26 01:31:41 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2c2a902c app-emacs/treemacs: new package; add version 2.9.5 Signed-off-by: Maciej Barć gentoo.org> app-emacs/treemacs/Manifest | 1 + app-emacs/treemacs/files/50treemacs-gentoo.el | 1 + .../files/treemacs-icons-icon-directory.patch | 12 +++++ app-emacs/treemacs/metadata.xml | 13 +++++ app-emacs/treemacs/treemacs-2.9.5.ebuild | 61 ++++++++++++++++++++++ 5 files changed, 88 insertions(+) diff --git a/app-emacs/treemacs/Manifest b/app-emacs/treemacs/Manifest new file mode 100644 index 000000000000..6ce00e3b55f9 --- /dev/null +++ b/app-emacs/treemacs/Manifest @@ -0,0 +1 @@ +DIST treemacs-2.9.5.tar.gz 4134227 BLAKE2B 1fbdb278e9524fdb14cbc7699bc787ab694b00d37a91ec3e91e106079bc02f6b8b39207608873d45c70fd6355a22553bf1a0636a948b79df77adfe0b4a3f799f SHA512 adc026d7ad459418fae531c5a1a7df7f9308e63dec82240c1c5e278eb00fdf8d6dff1ee2112ea73d5a05c4266efe24623bb84f8819a6f07fbb4fde6e644ca9ad diff --git a/app-emacs/treemacs/files/50treemacs-gentoo.el b/app-emacs/treemacs/files/50treemacs-gentoo.el new file mode 100644 index 000000000000..431f7e90ae73 --- /dev/null +++ b/app-emacs/treemacs/files/50treemacs-gentoo.el @@ -0,0 +1 @@ +(add-to-list 'load-path "@SITELISP@") diff --git a/app-emacs/treemacs/files/treemacs-icons-icon-directory.patch b/app-emacs/treemacs/files/treemacs-icons-icon-directory.patch new file mode 100644 index 000000000000..d1ac5022064a --- /dev/null +++ b/app-emacs/treemacs/files/treemacs-icons-icon-directory.patch @@ -0,0 +1,12 @@ +index 2cd9baf..e6ea521 100644 +--- a/src/elisp/treemacs-icons.el ++++ b/src/elisp/treemacs-icons.el +@@ -273,7 +273,7 @@ Necessary since root icons are not rectangular." + (ht-set! tui-icons it tui-icon)))) + + (treemacs-create-theme "Default" +- :icon-directory (treemacs-join-path treemacs-dir "icons/default") ++ :icon-directory "@SITEETC@/icons/default" + :config + (progn + ;; directory and other icons diff --git a/app-emacs/treemacs/metadata.xml b/app-emacs/treemacs/metadata.xml new file mode 100644 index 000000000000..2b59c18813b9 --- /dev/null +++ b/app-emacs/treemacs/metadata.xml @@ -0,0 +1,13 @@ + + + + + + gnu-emacs@gentoo.org + Gentoo GNU Emacs project + + + https://github.com/Alexander-Miller/treemacs/issues/ + Alexander-Miller/treemacs + + diff --git a/app-emacs/treemacs/treemacs-2.9.5.ebuild b/app-emacs/treemacs/treemacs-2.9.5.ebuild new file mode 100644 index 000000000000..ea3b8ab8544a --- /dev/null +++ b/app-emacs/treemacs/treemacs-2.9.5.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +NEED_EMACS=26.1 + +inherit elisp + +DESCRIPTION="Tree style project file explorer" +HOMEPAGE="https://github.com/Alexander-Miller/treemacs/" +SRC_URI="https://github.com/Alexander-Miller/${PN}/archive/${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="GPL-3+" +KEYWORDS="~amd64" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-emacs/ace-window + app-emacs/cfrs + app-emacs/dash + app-emacs/ht + app-emacs/hydra + app-emacs/pfuture + app-emacs/s +" +BDEPEND=" + ${RDEPEND} + test? ( app-emacs/buttercup ) +" + +DOCS=( Changelog.org Extensions.org README.org screenshots ) +PATCHES=( "${FILESDIR}"/${PN}-icons-icon-directory.patch ) + +BYTECOMPFLAGS="-L . -L src/elisp" +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + elisp_src_prepare + + sed "s|@SITEETC@|${SITEETC}/${PN}|" -i src/elisp/${PN}-icons.el || die +} + +src_compile() { + elisp-compile src/elisp/*.el +} + +src_test() { + buttercup ${BYTECOMPFLAGS} -L test --traceback full || die +} + +src_install() { + elisp-install ${PN} src/elisp/*.el{,c} + elisp-site-file-install "${FILESDIR}/${SITEFILE}" + + insinto ${SITEETC}/${PN} + doins -r icons +}