Gentoo Archives: gentoo-commits

From: "Maciej Barć" <xgqt@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/fmawk/
Date: Sun, 28 Nov 2021 17:23:22
Message-Id: 1638119996.03ccd4575abb0c9e3f7af84c4092fdde0444e6de.xgqt@gentoo
1 commit: 03ccd4575abb0c9e3f7af84c4092fdde0444e6de
2 Author: Maciej Barć <xgqt <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 28 17:19:56 2021 +0000
4 Commit: Maciej Barć <xgqt <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 28 17:19:56 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03ccd457
7
8 app-misc/fmawk: new package; add version 1.2 and live
9
10 Package-Manager: Portage-3.0.28, Repoman-3.0.3
11 Signed-off-by: Maciej Barć <xgqt <AT> gentoo.org>
12
13 app-misc/fmawk/Manifest | 1 +
14 app-misc/fmawk/fmawk-1.2.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++
15 app-misc/fmawk/fmawk-9999.ebuild | 38 ++++++++++++++++++++++++++++++++++++
16 app-misc/fmawk/metadata.xml | 18 +++++++++++++++++
17 4 files changed, 99 insertions(+)
18
19 diff --git a/app-misc/fmawk/Manifest b/app-misc/fmawk/Manifest
20 new file mode 100644
21 index 000000000000..05308c04d54f
22 --- /dev/null
23 +++ b/app-misc/fmawk/Manifest
24 @@ -0,0 +1 @@
25 +DIST fmawk-1.2.tar.gz 23399 BLAKE2B f4c20c8f1569a6715710a5cef02a767152694ef7e216c9fe707c7ac57c20dd012189db14777d47a980008255c7f51b5c165cdf086c41835a7ce550b758a8f350 SHA512 86d56e1cc893c385a0bb338957a9ef698c0edef4587e6d3a21aa316fd996fa3b1416220e5c235d613876a3d19650e8e7a20bf991a4ce67ce9759a362d2aaac30
26
27 diff --git a/app-misc/fmawk/fmawk-1.2.ebuild b/app-misc/fmawk/fmawk-1.2.ebuild
28 new file mode 100644
29 index 000000000000..2247b8c0dff1
30 --- /dev/null
31 +++ b/app-misc/fmawk/fmawk-1.2.ebuild
32 @@ -0,0 +1,42 @@
33 +# Copyright 1999-2021 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=8
37 +
38 +inherit optfeature
39 +
40 +DESCRIPTION="File manager written in awk"
41 +HOMEPAGE="https://github.com/huijunchen9260/fm.awk/"
42 +
43 +if [[ "${PV}" == *9999* ]]; then
44 + inherit git-r3
45 + EGIT_REPO_URI="https://github.com/huijunchen9260/fm.awk.git"
46 +else
47 + SRC_URI="https://github.com/huijunchen9260/fm.awk/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
48 + S="${WORKDIR}/fm.awk-${PV}"
49 + KEYWORDS="~amd64 ~x86"
50 +fi
51 +
52 +LICENSE="GPL-3+"
53 +SLOT="0"
54 +
55 +RDEPEND="virtual/awk"
56 +
57 +src_compile() {
58 + :
59 +}
60 +
61 +src_install() {
62 + local bin
63 + for bin in fm.awk fmawk fmawk-previewer; do
64 + dobin ${bin}
65 + done
66 +
67 + einstalldocs
68 +}
69 +
70 +pkg_postinst() {
71 + optfeature "PDFs preview" app-text/poppler
72 + optfeature "images preview" media-gfx/chafa
73 + optfeature "videos preview" media-video/ffmpegthumbnailer
74 +}
75
76 diff --git a/app-misc/fmawk/fmawk-9999.ebuild b/app-misc/fmawk/fmawk-9999.ebuild
77 new file mode 100644
78 index 000000000000..9500af6a4ee7
79 --- /dev/null
80 +++ b/app-misc/fmawk/fmawk-9999.ebuild
81 @@ -0,0 +1,38 @@
82 +# Copyright 1999-2021 Gentoo Authors
83 +# Distributed under the terms of the GNU General Public License v2
84 +
85 +EAPI=8
86 +
87 +inherit optfeature
88 +
89 +DESCRIPTION="File manager written in awk"
90 +HOMEPAGE="https://github.com/huijunchen9260/fm.awk/"
91 +
92 +if [[ "${PV}" == *9999* ]]; then
93 + inherit git-r3
94 + EGIT_REPO_URI="https://github.com/huijunchen9260/fm.awk.git"
95 +else
96 + SRC_URI="https://github.com/huijunchen9260/fm.awk/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
97 + S="${WORKDIR}/fm.awk-${PV}"
98 + KEYWORDS="~amd64 ~x86"
99 +fi
100 +
101 +LICENSE="GPL-3+"
102 +SLOT="0"
103 +
104 +RDEPEND="virtual/awk"
105 +
106 +src_compile() {
107 + :
108 +}
109 +
110 +src_install() {
111 + emake DESTDIR="${D}" install
112 + einstalldocs
113 +}
114 +
115 +pkg_postinst() {
116 + optfeature "PDFs preview" app-text/poppler
117 + optfeature "images preview" media-gfx/chafa
118 + optfeature "videos preview" media-video/ffmpegthumbnailer
119 +}
120
121 diff --git a/app-misc/fmawk/metadata.xml b/app-misc/fmawk/metadata.xml
122 new file mode 100644
123 index 000000000000..a2080c646539
124 --- /dev/null
125 +++ b/app-misc/fmawk/metadata.xml
126 @@ -0,0 +1,18 @@
127 +<?xml version="1.0" encoding="UTF-8"?>
128 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
129 +
130 +<pkgmetadata>
131 + <maintainer type="person">
132 + <email>xgqt@g.o</email>
133 + <name>Maciej Barć</name>
134 + </maintainer>
135 + <longdescription lang="en">
136 + FMAWK is a experimental file manager written almost entirely
137 + in the awk programming language. Thought written in awk it is comparable
138 + with features to ranger or nnn.
139 + </longdescription>
140 + <upstream>
141 + <bugs-to>https://github.com/huijunchen9260/fm.awk/issues</bugs-to>
142 + <remote-id type="github">huijunchen9260/fm.awk</remote-id>
143 + </upstream>
144 +</pkgmetadata>