Gentoo Archives: gentoo-commits

From: Alessandro Barbieri <lssndrbarbieri@×××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-misc/hollywood/, app-misc/hollywood/files/
Date: Tue, 29 Jun 2021 07:18:14
Message-Id: 1624949969.2cbbc11c9632711a23116e6abae3183ca83fca16.Alessandro-Barbieri@gentoo
1 commit: 2cbbc11c9632711a23116e6abae3183ca83fca16
2 Author: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
3 AuthorDate: Tue Jun 29 06:59:29 2021 +0000
4 Commit: Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
5 CommitDate: Tue Jun 29 06:59:29 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2cbbc11c
7
8 app-misc/hollywood: initial import
9
10 Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>
11
12 app-misc/hollywood/Manifest | 1 +
13 .../hollywood-0_pre20200822-use-libexec.patch | 35 +++++++++++
14 app-misc/hollywood/hollywood-0_pre20200822.ebuild | 73 ++++++++++++++++++++++
15 app-misc/hollywood/metadata.xml | 25 ++++++++
16 4 files changed, 134 insertions(+)
17
18 diff --git a/app-misc/hollywood/Manifest b/app-misc/hollywood/Manifest
19 new file mode 100644
20 index 000000000..5d0e5d602
21 --- /dev/null
22 +++ b/app-misc/hollywood/Manifest
23 @@ -0,0 +1 @@
24 +DIST hollywood-0_pre20200822.tar.gz 16721081 BLAKE2B 9e55bb6734c9f26ada954af69c3da5d83da161ea2c2f2c7483c3a8dcfb42a2a842696d2a8faf736a93a77789c5b181e556dc86da4db3ccacb03906c150131105 SHA512 1b18f7895315f8cfc71642adccc171a45ef15a9f355a4b4cb5d5b094e5d850dd7c2898f495d332279e5b87bbf6104540f101f4c94ce00fc75d30db7b6089ab57
25
26 diff --git a/app-misc/hollywood/files/hollywood-0_pre20200822-use-libexec.patch b/app-misc/hollywood/files/hollywood-0_pre20200822-use-libexec.patch
27 new file mode 100644
28 index 000000000..8521ccbd7
29 --- /dev/null
30 +++ b/app-misc/hollywood/files/hollywood-0_pre20200822-use-libexec.patch
31 @@ -0,0 +1,35 @@
32 +--- a/bin/hollywood
33 ++++ b/bin/hollywood
34 +@@ -18,7 +18,7 @@
35 + # limitations under the License.
36 +
37 + PKG="hollywood"
38 +-trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit 0" INT
39 ++trap "pkill -f -9 libexec/hollywood/ >/dev/null 2>&1; exit 0" INT
40 +
41 + spin_up() {
42 + local w=
43 +@@ -43,7 +43,7 @@
44 + done
45 + }
46 +
47 +-WIDGET_DIR="$(dirname $0)/../lib/$PKG"
48 ++WIDGET_DIR="$(dirname $0)/../libexec/$PKG"
49 + SPLITS=$(ls "$WIDGET_DIR" | wc -l)
50 + DELAY=10
51 + while [ ! -z "$1" ]; do
52 +--- a/bin/wallstreet
53 ++++ b/bin/wallstreet
54 +@@ -19,10 +19,10 @@
55 +
56 + PKG="wallstreet"
57 + [ -n "$TMDIR" ] || export TMPDIR=$(mktemp -d /dev/shm/$PKG.XXXXXXXXX)
58 +-trap "rm -rf $TMPDIR; pkill -f -9 lib/$PKG/ >/dev/null 2>&1; exit 0" EXIT HUP INT QUIT TERM
59 ++trap "rm -rf $TMPDIR; pkill -f -9 libexec/$PKG/ >/dev/null 2>&1; exit 0" EXIT HUP INT QUIT TERM
60 +
61 + dir="-v"
62 +-widget_dir="$(dirname $0)/../lib/$PKG"
63 ++widget_dir="$(dirname $0)/../libexec/$PKG"
64 + widget1=$(ls "$widget_dir/" | sort -R | head -n1)
65 +
66 + if [ -n "$1" ]; then
67
68 diff --git a/app-misc/hollywood/hollywood-0_pre20200822.ebuild b/app-misc/hollywood/hollywood-0_pre20200822.ebuild
69 new file mode 100644
70 index 000000000..635e3a9d3
71 --- /dev/null
72 +++ b/app-misc/hollywood/hollywood-0_pre20200822.ebuild
73 @@ -0,0 +1,73 @@
74 +# Copyright 1999-2021 Gentoo Authors
75 +# Distributed under the terms of the GNU General Public License v2
76 +
77 +EAPI="7"
78 +
79 +inherit optfeature
80 +
81 +COMMIT="35275a68c37bbc39d8b2b0e4664a0c2f5451e5f6"
82 +
83 +DESCRIPTION="Fill your console with Hollywood melodrama technobabble"
84 +HOMEPAGE="
85 + https://hollywood.computer
86 + https://github.com/dustinkirkland/hollywood
87 +"
88 +SRC_URI="https://github.com/dustinkirkland/hollywood/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
89 +S="${WORKDIR}/${PN}-${COMMIT}"
90 +LICENSE="Apache-2.0"
91 +SLOT="0"
92 +KEYWORDS="~amd64"
93 +
94 +RDEPEND="
95 + app-misc/byobu
96 + app-misc/tmux
97 +"
98 +
99 +PATCHES=( "${FILESDIR}/${P}-use-libexec.patch" )
100 +
101 +src_install() {
102 + dobin bin/*
103 + insinto /usr/share
104 + doins -r share/hollywood
105 + doins -r share/wallstreet
106 + doman share/man/man1/hollywood.1
107 + doman share/man/man1/wallstreet.1
108 + exeinto /usr/libexec/hollywood
109 + doexe lib/hollywood/*
110 + exeinto /usr/libexec/wallstreet
111 + doexe lib/wallstreet/*
112 + dodoc README
113 +}
114 +
115 +pkg_postinst() {
116 + optfeature "supported programs" \
117 + "sys-process/atop \
118 + net-analyzer/bmon \
119 + app-misc/cmatrix \
120 + net-dns/dnstop \
121 + sys-process/glances \
122 + sys-process/htop \
123 + net-analyzer/ifstat \
124 + sys-process/iotop \
125 + net-analyzer/iptraf-ng \
126 + net-analyzer/jnettop \
127 + sys-process/latencytop \
128 + net-analyzer/nload \
129 + sys-process/nmon \
130 + sys-power/powertop \
131 + app-admin/sagan \
132 + net-analyzer/slurm \
133 + sys-process/tiptop \
134 + net-analyzer/vnstat \
135 + app-admin/ccze \
136 + media-gfx/jp2a \
137 + sys-apps/mlocate \
138 + app-text/tree \
139 + sys-apps/moreutils \
140 + app-admin/apg \
141 + net-misc/openssh \
142 + net-news/newsboat \
143 + net-news/rsstail \
144 + net-misc/wget \
145 + virtual/w3m"
146 +}
147
148 diff --git a/app-misc/hollywood/metadata.xml b/app-misc/hollywood/metadata.xml
149 new file mode 100644
150 index 000000000..979a382cb
151 --- /dev/null
152 +++ b/app-misc/hollywood/metadata.xml
153 @@ -0,0 +1,25 @@
154 +<?xml version="1.0" encoding="UTF-8"?>
155 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
156 +<pkgmetadata>
157 + <maintainer type="person">
158 + <email>lssndrbarbieri@×××××.com</email>
159 + <name>Alessandro Barbieri</name>
160 + </maintainer>
161 + <upstream>
162 + <remote-id type="github">dustinkirkland/hollywood</remote-id>
163 + </upstream>
164 + <longdescription lang="en">
165 +fill your console with Hollywood melodrama technobabble
166 +This utility will split your console into a multiple panes of genuine
167 +technobabble, perfectly suitable for any Hollywood geek melodrama.
168 +It is particularly suitable on any number of computer consoles in the
169 +background of any excellent schlock technothriller.
170 +
171 +fill your console with Wall Street-like news and stats
172 +This utility will split your console into a multiple panes of news
173 +and statistics, like any good computer screen on Wall Street.
174 + </longdescription>
175 +</pkgmetadata>
176 +
177 +
178 +