summaryrefslogtreecommitdiff
path: root/app-emacs/treemacs
diff options
context:
space:
mode:
authorJohn Turner <jturner.usa+gentoo@gmail.com>2021-09-29 21:37:25 -0400
committerJohn Turner <jturner.usa+gentoo@gmail.com>2021-09-29 21:37:25 -0400
commit8c8025d9f6c93e757a94e2f75b824ff4a8706029 (patch)
treef7f501eff311d01fd371425af073e24c13f0e248 /app-emacs/treemacs
downloadebuilds-8c8025d9f6c93e757a94e2f75b824ff4a8706029.tar.gz
init
Diffstat (limited to 'app-emacs/treemacs')
-rw-r--r--app-emacs/treemacs/Manifest1
-rw-r--r--app-emacs/treemacs/files/50treemacs-gentoo.el2
-rw-r--r--app-emacs/treemacs/metadata.xml28
-rw-r--r--app-emacs/treemacs/treemacs-2.9.ebuild57
4 files changed, 88 insertions, 0 deletions
diff --git a/app-emacs/treemacs/Manifest b/app-emacs/treemacs/Manifest
new file mode 100644
index 0000000..16dfd9b
--- /dev/null
+++ b/app-emacs/treemacs/Manifest
@@ -0,0 +1 @@
+DIST treemacs-2.9.tar.gz 4094484 BLAKE2B 7dbbc3fd152dbc3e06a34a03528c45bc6641a8fd1455331d46589c5ffaca07185fedbdefebaf0b3b1d460ff30b4770660e8e938d375e41b0d3f2d0c6e789b3b7 SHA512 22d6bc0f74c057143e3b740a05d4201c94a7b30ec2aa3b8a24e8bb339472c368c1c4e2b1623cea6f1c36d3bb40ac33ddde1e92af93a9743c5f8b81002078f92c
diff --git a/app-emacs/treemacs/files/50treemacs-gentoo.el b/app-emacs/treemacs/files/50treemacs-gentoo.el
new file mode 100644
index 0000000..94d5f75
--- /dev/null
+++ b/app-emacs/treemacs/files/50treemacs-gentoo.el
@@ -0,0 +1,2 @@
+(add-to-list 'load-path "@SITELISP@")
+(load "@SITELISP@/treemacs-autoload.el" nil t)
diff --git a/app-emacs/treemacs/metadata.xml b/app-emacs/treemacs/metadata.xml
new file mode 100644
index 0000000..1c1e92c
--- /dev/null
+++ b/app-emacs/treemacs/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person" proxied="yes">
+ <email>jturner.usa+gentoo@gmail.com</email>
+ <name>John Turner</name>
+ </maintainer>
+ <maintainer type="project" proxied="proxy">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">Alexander-Miller/treemacs</remote-id>
+ <doc>https://github.com/Alexander-Miller/treemacs/blob/master/README.org</doc>
+ </upstream>
+ <longdescription>
+ A file and project explorer similar to NeoTree or vim’s NerdTree,
+ but largely inspired by the Project Explorer in Eclipse.
+ It shows the file system outlines of your projects in a
+ simple tree layout allowing quick navigation and exploration,
+ while also possessing basic file management utilities.
+ </longdescription>
+ <use>
+ <flag name="evil">Enable support for evil-mode keybinds and navagation</flag>
+ <flag name="magit">Enable treemacs to be informed of git state changes applied from magit</flag>
+ <flag name="icons-dired">Enable treemacs icons in dired buffers</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-emacs/treemacs/treemacs-2.9.ebuild b/app-emacs/treemacs/treemacs-2.9.ebuild
new file mode 100644
index 0000000..83605d1
--- /dev/null
+++ b/app-emacs/treemacs/treemacs-2.9.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+NEED_EMACS="26.1"
+
+inherit elisp
+
+DESCRIPTION="A tree layout file explorer for Emacs"
+HOMEPAGE="https://github.com/Alexander-Miller/treemacs"
+SRC_URI="https://github.com/Alexander-Miller/treemacs/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="evil magit icons-dired" # some flags need packages not yet in gentoo
+
+RDEPEND=">=app-emacs/ace-window-0.10.0_p20200706
+ >=app-emacs/ht-2.3
+ >=app-emacs/hydra-0.15.0
+ >=app-emacs/pfuture-1.9
+ >=app-emacs/cfrs-1.3.2
+ evil? ( app-emacs/evil )
+ magit? ( app-emacs/magit )"
+DEPEND="${RDEPEND}"
+
+RESTRICT="test" # test requires cask and buttercup.el which are not packaged
+SITEFILE="50treemacs-gentoo.el"
+DOCS=( README.org Changelog.org Extensions.org )
+
+src_unpack() {
+ elisp_src_unpack
+ mv "${S}"/src/{elisp,scripts}/* "${S}/" || die
+ if use evil; then
+ mv "${S}/src/extra/treemacs-evil.el" "${S}/" || die
+ fi
+ if use magit; then
+ mv "${S}/src/extra/treemacs-magit.el" "${S}/" || die
+ fi
+ if use icons-dired; then
+ mv "${S}/src/extra/treemacs-icons-dired.el" "${S}/" || die
+ fi
+}
+
+src_compile() {
+ elisp-make-autoload-file "${S}/${PN}-autoload.el" "${S}/"
+ elisp_src_compile
+}
+
+src_install() {
+ elisp_src_install
+ mkdir -p "${D}/usr/share/${PN}/icons/" || die
+ cp -r "${S}/icons/default/" "${D}/usr/share/${PN}/icons/" || die
+ ln -s "/usr/share/${PN}/icons/" "${D}/${SITELISP}/${PN}/icons" || die
+ cp "${S}"/*.py "${D}/${SITELISP}/${PN}/"
+}