From 783da4542a9c3e0e1ec703644212707cde610679 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 10 Sep 2023 22:36:46 +0100 Subject: gentoo auto-resync : 10:09:2023 - 22:36:45 --- app-emacs/nerd-icons/nerd-icons-0.1.0.ebuild | 60 ++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 app-emacs/nerd-icons/nerd-icons-0.1.0.ebuild (limited to 'app-emacs/nerd-icons/nerd-icons-0.1.0.ebuild') diff --git a/app-emacs/nerd-icons/nerd-icons-0.1.0.ebuild b/app-emacs/nerd-icons/nerd-icons-0.1.0.ebuild new file mode 100644 index 000000000000..1a235f3d93d0 --- /dev/null +++ b/app-emacs/nerd-icons/nerd-icons-0.1.0.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit elisp font readme.gentoo-r1 + +DESCRIPTION="Emacs Nerd Font Icons Library" +HOMEPAGE="https://github.com/rainstormstudio/nerd-icons.el/" + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/rainstormstudio/${PN}.el.git" +else + SRC_URI="https://github.com/rainstormstudio/${PN}.el/archive/${PV}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}/${PN}.el-${PV}" + + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" + +FONT_PN="NFM" +FONT_S="${S}/fonts" +FONT_SUFFIX="ttf" + +DOC_CONTENTS="You may need to install the required fonts by executing + the \"nerd-icons-install-fonts\" function." +SITEFILE="50${PN}-gentoo.el" + +pkg_setup() { + elisp_pkg_setup + font_pkg_setup +} + +src_compile() { + elisp_src_compile + + elisp-make-autoload-file + elisp-compile data/*.el +} + +src_install() { + elisp_src_install + font_src_install + + elisp-install "${PN}/data" data/*.el{,c} +} + +pkg_postinst() { + elisp_pkg_postinst + font_pkg_postinst +} + +pkg_postrm() { + elisp_pkg_postrm + font_pkg_postrm +} -- cgit v1.2.3