diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-09-10 22:36:46 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-09-10 22:36:46 +0100 |
commit | 783da4542a9c3e0e1ec703644212707cde610679 (patch) | |
tree | 3e0cf56ac37ddf9d5fdc6ff0ced9135b1c7fc5e0 /app-emacs/nerd-icons/nerd-icons-0.1.0.ebuild | |
parent | d0041c590ed45bbfeae458ea926e36bc64e41dd7 (diff) |
gentoo auto-resync : 10:09:2023 - 22:36:45
Diffstat (limited to 'app-emacs/nerd-icons/nerd-icons-0.1.0.ebuild')
-rw-r--r-- | app-emacs/nerd-icons/nerd-icons-0.1.0.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
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 +} |