From a0c1504c093bc6abe04f9d96018f6252f81cd9ab Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 5 Feb 2023 09:16:05 +0000 Subject: gentoo auto-resync : 05:02:2023 - 09:16:04 --- app-misc/nnn/Manifest | 2 +- app-misc/nnn/nnn-4.7-r1.ebuild | 96 ++++++++++++++++++++++++++++++++++++++++++ app-misc/nnn/nnn-4.7.ebuild | 94 ----------------------------------------- 3 files changed, 97 insertions(+), 95 deletions(-) create mode 100644 app-misc/nnn/nnn-4.7-r1.ebuild delete mode 100644 app-misc/nnn/nnn-4.7.ebuild (limited to 'app-misc/nnn') diff --git a/app-misc/nnn/Manifest b/app-misc/nnn/Manifest index 248910fdff8e..c8c6d73863ec 100644 --- a/app-misc/nnn/Manifest +++ b/app-misc/nnn/Manifest @@ -5,5 +5,5 @@ DIST nnn-4.7.tar.gz 250038 BLAKE2B b63da6ac8a0ac6b8b2bce0ed45c43c9e707f11f99e6b4 EBUILD nnn-4.0.ebuild 1050 BLAKE2B ab4ac86b9c72e0bbb44b3e08ad26b6953bdef7272387cd58019806c4e722a210c19c8afa504b7753fa4905dba70b4bdcf59bb92746a73d515e63de1f76d8c5ba SHA512 8200e20e253a0970859fa53451f7e811fe7dbe8e7d2bf2631e81e58aff97271c325ce36bf1acc62542d96e2baf3fe26a628702516140dce94935e7303ff9e4c6 EBUILD nnn-4.3.ebuild 1050 BLAKE2B f4c3accb8482ebec73a9af0768c20208866f527d4262e8a9127d03b1be42175dfb542ffdb1fc7e67908a57c700912532912029f332562cdc676bb1554d401a4d SHA512 db2c9a11d2a7e6d1fcdbf30e1aa948f180ab48b61d68cfc76f2ae6841b5c44953083fed8dfed7f53fb5c1a709e7f28ec732f7ce4e2b228480c16151c7ca8ac1b EBUILD nnn-4.5.ebuild 1142 BLAKE2B dcb84476bba7d2a15e85ecde4b8690c8044c6166f5d492c2a735994fba8a345f6ad8bcbce0cc666139e9ab89655bf5a131f50b4ff74410c58dcf98e1fc50c60b SHA512 7fe598b02ee9188472aecfc3ff8ff896d9354cc57c563f17a7f8b77244d65ed7886d334a63c81c3c5ff22334eafdc3dc515d789d365e5cc7d386d7331a4f83b7 -EBUILD nnn-4.7.ebuild 2841 BLAKE2B 6e790be0cf37de8ad468b8e13727ffb4c41049b181d2ebc500612dbac02d63adc12d51c7568b522d75a880b6287227244f251378c649203caa46dca5ff73a690 SHA512 f990545eb4f555b3a84b3feb3d4eea113c3eaa64e16125e93752d59fc6f57128d89fe1ecc4adf24157631affb280fbdf47fc2b9783061207cfd98379d66a3251 +EBUILD nnn-4.7-r1.ebuild 2903 BLAKE2B ce7a62b627bb058897648d0f4f3ef839a4ba71b7879ead3eefe8d0536a9c6b1fd7e147b79b6bbaaeea94e3e8d2a8ec048067760347fd96dab255265f081e8235 SHA512 47d9a7991dd9ccec2efb18191d432565e9e55e2f4889a06882ea358293011d8128eb1935664912836eb721ce098b2063f9fe2f44505f7e13b932a1c99c0fa79d MISC metadata.xml 1162 BLAKE2B e3130bf6de99cf4df56a94ce0c0ab6461e256ad06ff0a46aedd44ee5c6bd00f34cb6b38436d07cf43cc4220e11e9542471e8b0bdbf07c3070cebfa7b01ab44e5 SHA512 c9523bc04ced90d835c4e38a6e8991bd4b34a5e379ee9f0f76ead714231e39c6ed7c41c7d81a2f55c4f4308dead7ba72267baffa80d0da0f43c3f081d727d1f5 diff --git a/app-misc/nnn/nnn-4.7-r1.ebuild b/app-misc/nnn/nnn-4.7-r1.ebuild new file mode 100644 index 000000000000..307ace9d8979 --- /dev/null +++ b/app-misc/nnn/nnn-4.7-r1.ebuild @@ -0,0 +1,96 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit bash-completion-r1 flag-o-matic toolchain-funcs xdg-utils + +DESCRIPTION="The missing terminal file browser for X" +HOMEPAGE="https://github.com/jarun/nnn" +SRC_URI="https://github.com/jarun/nnn/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc64 ~x86" +IUSE="+readline pcre 8contexts icons nerdfonts emoji qsort colemak gitstatus namefirst restorepreview" + +DEPEND="sys-libs/ncurses:= + pcre? ( dev-libs/libpcre ) + readline? ( sys-libs/readline:= ) + elibc_musl? ( sys-libs/fts-standalone )" +BDEPEND="virtual/pkgconfig" +RDEPEND="${DEPEND}" +REQUIRED_USE="?? ( icons nerdfonts emoji )" + +src_prepare() { + default + tc-export CC + use elibc_musl && append-flags "-lfts" + # When using nnn's bundled patches, the 'install' target should not depend + # on 'all'. See: https://github.com/jarun/nnn/issues/1493 + sed -i -e 's/install: all/install:/' Makefile || die "sed failed" +} + +src_compile() { + nnn_opts=( + O_NORL=$(usex readline 0 1) + O_PCRE=$(usex pcre 1 0) + O_CTX8=$(usex 8contexts 1 0) + O_ICONS=$(usex icons 1 0) + O_NERD=$(usex nerdfonts 1 0) + O_EMOJI=$(usex emoji 1 0) + O_QSORT=$(usex qsort 1 0) + # nnn's user-submitted patches + O_COLEMAK=$(usex colemak 1 0) + O_GITSTATUS=$(usex gitstatus 1 0) + O_NAMEFIRST=$(usex namefirst 1 0) + O_RESTOREPREVIEW=$(usex restorepreview 1 0) + ) + emake "${nnn_opts[@]}" +} + +src_install() { + emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install + + emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install-desktop + + newbashcomp misc/auto-completion/bash/nnn-completion.bash nnn + + insinto /usr/share/fish/vendor_completions.d + doins misc/auto-completion/fish/nnn.fish + + insinto /usr/share/zsh/site-functions + doins misc/auto-completion/zsh/_nnn + + einstalldocs + + insinto /usr/share/nnn + insopts -m0755 + doins -r plugins + fperms 0644 /usr/share/nnn/plugins/README.md +} + +pkg_postinst() { + xdg_desktop_database_update + + elog "nnn plugins are installed to /usr/share/nnn/plugins/, but nnn does not" + elog "load them fom this directory. You will need to copy/symlink them to" + elog "~/.config/nnn/plugins/ if you want to use them." + elog "Note that some plugins have runtime dependencies that may need to be installed." + elog "Refer to the individual plugin's in-file documentation for more information." + + if use icons; then + elog "In order for file icons to work, your terminal needs to use icons-in-terminal." + elog "See https://github.com/sebastiencs/icons-in-terminal" + elif use nerdfonts; then + elog "In order for file icons to work, your terminal needs to use a patched nerdfont." + elog "See https://www.nerdfonts.com/" + elif use emoji; then + elog "In order for file icons to work, your terminal needs to use a font that" + elog "includes standard unicode emoji." + fi +} + +pkg_postrm() { + xdg_desktop_database_update +} diff --git a/app-misc/nnn/nnn-4.7.ebuild b/app-misc/nnn/nnn-4.7.ebuild deleted file mode 100644 index a6f463c6cf45..000000000000 --- a/app-misc/nnn/nnn-4.7.ebuild +++ /dev/null @@ -1,94 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit bash-completion-r1 flag-o-matic toolchain-funcs xdg-utils - -DESCRIPTION="The missing terminal file browser for X" -HOMEPAGE="https://github.com/jarun/nnn" -SRC_URI="https://github.com/jarun/nnn/archive/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="BSD-2" -SLOT="0" -KEYWORDS="~amd64 ~ppc64 ~x86" -IUSE="+readline pcre 8contexts icons nerdfonts emoji qsort colemak gitstatus namefirst restorepreview" - -DEPEND="sys-libs/ncurses:= - pcre? ( dev-libs/libpcre ) - readline? ( sys-libs/readline:= ) - elibc_musl? ( sys-libs/fts-standalone )" -BDEPEND="virtual/pkgconfig" -RDEPEND="${DEPEND}" -REQUIRED_USE="?? ( icons nerdfonts emoji )" - -src_prepare() { - default - tc-export CC - use elibc_musl && append-flags "-lfts" - # When using nnn's bundled patches, the 'install' target should not depend - # on 'all'. See: https://github.com/jarun/nnn/issues/1493 - sed -i -e 's/install: all/install:/' Makefile || die "sed failed" -} - -src_compile() { - nnn_opts=( - O_NORL=$(usex readline 0 1) - O_PCRE=$(usex pcre 1 0) - O_CTX8=$(usex 8contexts 1 0) - O_ICONS=$(usex icons 1 0) - O_NERD=$(usex nerdfonts 1 0) - O_EMOJI=$(usex emoji 1 0) - O_QSORT=$(usex qsort 1 0) - # nnn's user-submitted patches - O_COLEMAK=$(usex colemak 1 0) - O_GITSTATUS=$(usex gitstatus 1 0) - O_NAMEFIRST=$(usex namefirst 1 0) - O_RESTOREPREVIEW=$(usex restorepreview 1 0) - ) - emake "${nnn_opts[@]}" -} - -src_install() { - emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install - - emake PREFIX="${EPREFIX}/usr" DESTDIR="${D}" install-desktop - - newbashcomp misc/auto-completion/bash/nnn-completion.bash nnn - - insinto /usr/share/fish/vendor_completions.d - doins misc/auto-completion/fish/nnn.fish - - insinto /usr/share/zsh/site-functions - doins misc/auto-completion/zsh/_nnn - - einstalldocs - - insinto /usr/share/nnn - doins -r plugins -} - -pkg_postinst() { - xdg_desktop_database_update - - elog "nnn plugins are installed to /usr/share/nnn/plugins/, but nnn does not" - elog "load them fom this directory. You will need to copy/symlink them to" - elog "~/.config/nnn/plugins/ if you want to use them." - elog "Note that some plugins have runtime dependencies that may need to be installed." - elog "Refer to the individual plugin's in-file documentation for more information." - - if use icons; then - elog "In order for file icons to work, your terminal needs to use icons-in-terminal." - elog "See https://github.com/sebastiencs/icons-in-terminal" - elif use nerdfonts; then - elog "In order for file icons to work, your terminal needs to use a patched nerdfont." - elog "See https://www.nerdfonts.com/" - elif use emoji; then - elog "In order for file icons to work, your terminal needs to use a font that" - elog "includes standard unicode emoji." - fi -} - -pkg_postrm() { - xdg_desktop_database_update -} -- cgit v1.2.3