diff options
author | Maciej Barć <xgqt@gentoo.org> | 2023-04-03 01:49:51 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2023-04-03 01:49:51 +0200 |
commit | e34155ed9f521e0956a94b9d2fb52ded88b55475 (patch) | |
tree | 38539643d24fc363f7275ca4a8e9be24188d1502 /app-emacs/all-the-icons | |
parent | dev-ruby/async: Keyword 2.2.1 ppc64, #903708 (diff) | |
download | gentoo-e34155ed9f521e0956a94b9d2fb52ded88b55475.tar.gz gentoo-e34155ed9f521e0956a94b9d2fb52ded88b55475.tar.bz2 gentoo-e34155ed9f521e0956a94b9d2fb52ded88b55475.zip |
app-emacs/all-the-icons: bump to 5.0.0_p20230316
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'app-emacs/all-the-icons')
-rw-r--r-- | app-emacs/all-the-icons/Manifest | 1 | ||||
-rw-r--r-- | app-emacs/all-the-icons/all-the-icons-5.0.0_p20230316.ebuild | 80 |
2 files changed, 81 insertions, 0 deletions
diff --git a/app-emacs/all-the-icons/Manifest b/app-emacs/all-the-icons/Manifest index 3049ed4d9f57..8beda625e264 100644 --- a/app-emacs/all-the-icons/Manifest +++ b/app-emacs/all-the-icons/Manifest @@ -1,2 +1,3 @@ DIST all-the-icons-5.0.0.tar.gz 805496 BLAKE2B c5d81d2ff534bb7ab0000c21fb32107f307d96b1bf09b9227be5900e8160b133cfdc7ea4d4b31a982abb55e29bcf35626af91e3bd9ecbfba00b9b5ed85496a7f SHA512 865db191900dbeb207220df8d91220179dfbbb37e983e9e306ba0a4be576055002beb7335de20327736e8be678056699e8385aa37de766fadc11f4688f99471e DIST all-the-icons-5.0.0_p20220325.tar.gz 806105 BLAKE2B bc035ee726bf1d2f9839231ddd3bbaaca93b76c30026a3fcef4579f28f7f9677b37fa8b2652e82ae710f23272b56c884cb9454d54d8c2962f20e0fe9cf3c0bdd SHA512 3e45f208b46e7b1b596b6beb41cc11145db49e3e60e7a42593db94000f226e197b30580ba46d490b456f90349e7db2e49027a572b90f32048bcf0e68af9f22bf +DIST all-the-icons-5.0.0_p20230316.tar.gz 807075 BLAKE2B 29ca4c92a61894eab422548de0be3375de866115d95c76c4cf92a1570df0ec5ed67a74fdcd6bf365660a08300aead96efed3d0282966373543d09f2bc775a599 SHA512 160d727233e7cccffcf8a020968f9294f0574ee1267b66565991f46abaaf10c4582bb543f01bdf4f4ab5fc15aee8e2414db785370d13dcd6ca84ad819964696b diff --git a/app-emacs/all-the-icons/all-the-icons-5.0.0_p20230316.ebuild b/app-emacs/all-the-icons/all-the-icons-5.0.0_p20230316.ebuild new file mode 100644 index 000000000000..c75ee6389247 --- /dev/null +++ b/app-emacs/all-the-icons/all-the-icons-5.0.0_p20230316.ebuild @@ -0,0 +1,80 @@ +# 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="Various icon fonts propertized for Emacs" +HOMEPAGE="https://github.com/domtronn/all-the-icons.el/" + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/domtronn/${PN}.el.git" +else + if [[ ${PV} == *_p20230316 ]] ; then + COMMIT=d922aff57ac8308d3ed067f9151cc76d342855f2 + SRC_URI="https://github.com/domtronn/${PN}.el/archive/${COMMIT}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}"/${PN}.el-${COMMIT} + else + SRC_URI="https://github.com/domtronn/${PN}.el/archive/${PV}.tar.gz + -> ${P}.tar.gz" + S="${WORKDIR}"/${PN}.el-${PV} + fi + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="MIT" +SLOT="0" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( app-emacs/f )" + +DOC_CONTENTS="You may need to install the required fonts by executing + the \"all-the-icons-install-fonts\" function." +DOCS=( README.md logo.png ) +SITEFILE="50${PN}-gentoo.el" + +pkg_setup() { + elisp_pkg_setup + font_pkg_setup +} + +src_compile() { + elisp_src_compile + elisp-compile data/*.el +} + +src_test() { + ${EMACS} ${EMACSFLAGS} ${BYTECOMPFLAGS} \ + -L . -L data -L test -l test/all-the-icons-test.el \ + -f ert-run-tests-batch-and-exit || die "tests failed" +} + +src_install() { + elisp_src_install + elisp-install ${PN}/data data/*.el{,c} + + # Install all-the-icons.ttf, special font made explicitly for this library. + # NOTICE: "fonts" directory also contains some bundled fonts, + # that is why we need this small re-implementation of font eclass, + # to suit this specific use case. + pushd "${S}"/fonts >/dev/null || die + insinto ${FONTDIR} + doins ${PN}.ttf + font_xfont_config + font_fontconfig + popd >/dev/null || die +} + +pkg_postinst() { + elisp_pkg_postinst + font_pkg_postinst +} + +pkg_postrm() { + elisp_pkg_postrm + font_pkg_postrm +} |