diff options
Diffstat (limited to 'app-misc/fmawk')
-rw-r--r-- | app-misc/fmawk/Manifest | 4 | ||||
-rw-r--r-- | app-misc/fmawk/fmawk-1.2.ebuild | 42 | ||||
-rw-r--r-- | app-misc/fmawk/fmawk-9999.ebuild | 38 | ||||
-rw-r--r-- | app-misc/fmawk/metadata.xml | 18 |
4 files changed, 102 insertions, 0 deletions
diff --git a/app-misc/fmawk/Manifest b/app-misc/fmawk/Manifest new file mode 100644 index 000000000000..924b86411b60 --- /dev/null +++ b/app-misc/fmawk/Manifest @@ -0,0 +1,4 @@ +DIST fmawk-1.2.tar.gz 23399 BLAKE2B f4c20c8f1569a6715710a5cef02a767152694ef7e216c9fe707c7ac57c20dd012189db14777d47a980008255c7f51b5c165cdf086c41835a7ce550b758a8f350 SHA512 86d56e1cc893c385a0bb338957a9ef698c0edef4587e6d3a21aa316fd996fa3b1416220e5c235d613876a3d19650e8e7a20bf991a4ce67ce9759a362d2aaac30 +EBUILD fmawk-1.2.ebuild 850 BLAKE2B 0c6584dbd70262c35e3a222d9d5903ab36058dc2328a9f5f90c470372f53476763500fded2b88c9143fbc75f487c95e751ce99f3bd6c8882c2704695114e39f3 SHA512 4623d9646449ea2ce4008b57b97d72d849ba25fedaf2ccbda99903113ad6ea6915f744082488e36465bb9211659f4152d390ed6302d1b433c1c3bdfc251d9ca4 +EBUILD fmawk-9999.ebuild 802 BLAKE2B 84f180c464d968452f9309242fa389548c1f48b316695494b2b6701d9721aa5568e22ce20c12e994ce1df6ffa2796e2855b46749efc2d50b0f6f4ef1f7c3b8a4 SHA512 c48247f94508f53520f0b0f065ac09ab2337255c3134d3f24faad1347802d1cb8cf9adbffa982345a11b0c4150701be062f28f686ee065ea8c9858834d6bdaf3 +MISC metadata.xml 689 BLAKE2B 91a0995c189c1ac4fd6852d1f49746faa8405c57476f6d6e3ea0aff99f36be3305e99b89185e102cb7ee1022bcee4c2645ff69a657ab7dd6ceed3f5dca4e2108 SHA512 893f05e792b8db41364c4a2accade8199f1f569bc521e2c078dbf2dc26f9f6d4b047d2208ed12c36f9b1e1d2a2e0ead9a3ecedd88d23f9d7eaf341d00aab41ff diff --git a/app-misc/fmawk/fmawk-1.2.ebuild b/app-misc/fmawk/fmawk-1.2.ebuild new file mode 100644 index 000000000000..2247b8c0dff1 --- /dev/null +++ b/app-misc/fmawk/fmawk-1.2.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature + +DESCRIPTION="File manager written in awk" +HOMEPAGE="https://github.com/huijunchen9260/fm.awk/" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/huijunchen9260/fm.awk.git" +else + SRC_URI="https://github.com/huijunchen9260/fm.awk/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/fm.awk-${PV}" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" + +RDEPEND="virtual/awk" + +src_compile() { + : +} + +src_install() { + local bin + for bin in fm.awk fmawk fmawk-previewer; do + dobin ${bin} + done + + einstalldocs +} + +pkg_postinst() { + optfeature "PDFs preview" app-text/poppler + optfeature "images preview" media-gfx/chafa + optfeature "videos preview" media-video/ffmpegthumbnailer +} diff --git a/app-misc/fmawk/fmawk-9999.ebuild b/app-misc/fmawk/fmawk-9999.ebuild new file mode 100644 index 000000000000..9500af6a4ee7 --- /dev/null +++ b/app-misc/fmawk/fmawk-9999.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit optfeature + +DESCRIPTION="File manager written in awk" +HOMEPAGE="https://github.com/huijunchen9260/fm.awk/" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/huijunchen9260/fm.awk.git" +else + SRC_URI="https://github.com/huijunchen9260/fm.awk/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/fm.awk-${PV}" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" + +RDEPEND="virtual/awk" + +src_compile() { + : +} + +src_install() { + emake DESTDIR="${D}" install + einstalldocs +} + +pkg_postinst() { + optfeature "PDFs preview" app-text/poppler + optfeature "images preview" media-gfx/chafa + optfeature "videos preview" media-video/ffmpegthumbnailer +} diff --git a/app-misc/fmawk/metadata.xml b/app-misc/fmawk/metadata.xml new file mode 100644 index 000000000000..88a2b065e2a2 --- /dev/null +++ b/app-misc/fmawk/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="person"> + <email>xgqt@gentoo.org</email> + <name>Maciej Barć</name> + </maintainer> + <longdescription lang="en"> + FMAWK is a experimental file manager written almost entirely in the awk + programming language. Though written in awk, in terms of features it is + comparable to other terminal file managers such as fff, nnn or ranger. + </longdescription> + <upstream> + <bugs-to>https://github.com/huijunchen9260/fm.awk/issues</bugs-to> + <remote-id type="github">huijunchen9260/fm.awk</remote-id> + </upstream> +</pkgmetadata> |