From bae18a85ed88656819e75a67bb01812c3fc06937 Mon Sep 17 00:00:00 2001 From: John Turner Date: Sun, 3 Oct 2021 23:52:23 -0400 Subject: [PATCH] app-emacs/treemacs: added python-single-r1 eclass inherit, changed regular commands to built ins (doins, dodir, etc) where possible and some other minor style improvments --- app-emacs/treemacs/treemacs-2.9.ebuild | 28 +++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/app-emacs/treemacs/treemacs-2.9.ebuild b/app-emacs/treemacs/treemacs-2.9.ebuild index 9686a3a..54311a0 100644 --- a/app-emacs/treemacs/treemacs-2.9.ebuild +++ b/app-emacs/treemacs/treemacs-2.9.ebuild @@ -5,7 +5,9 @@ EAPI=8 NEED_EMACS="26.1" -inherit elisp +PYTHON_COMPAT=( python3_9 ) + +inherit elisp python-single-r1 DESCRIPTION="A tree layout file explorer for Emacs" HOMEPAGE="https://github.com/Alexander-Miller/treemacs" @@ -15,13 +17,15 @@ LICENSE="GPL-3+" SLOT="0" KEYWORDS="~amd64" IUSE="evil magit icons-dired" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" # TODO: extra flags that need packages not yet in gentoo # all-the-icons: app-emacs/all-the-icons -# persp: app-emacs/persp -# perspective: app-emacs/perspective -# projectile: app-emacs/projectile +# persp: app-emacs/persp +# perspective: app-emacs/perspective +# projectile: app-emacs/projectile -RDEPEND=">=app-emacs/ace-window-0.10.0_p20200706 +RDEPEND="${PYTHON_DEPS} + >=app-emacs/ace-window-0.10.0_p20200706 >=app-emacs/ht-2.3 >=app-emacs/hydra-0.15.0 >=app-emacs/pfuture-1.9 @@ -55,8 +59,14 @@ 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}/" || die + + dodir "/usr/share/${PN}/" + dodir "/usr/share/${PN}/icons" + insinto "/usr/share/${PN}/icons/" + doins -r "${S}/icons/default" + dosym \ + "${EPREFIX}/usr/share/${PN}/icons" \ + "${EPREFIX}/${SITELISP}/${PN}/icons" + insinto "${SITELISP}/${PN}/" + doins "${S}"/*.py } -- 2.39.5