commit:     2cbbc11c9632711a23116e6abae3183ca83fca16
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Tue Jun 29 06:59:29 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Tue Jun 29 06:59:29 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=2cbbc11c

app-misc/hollywood: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 app-misc/hollywood/Manifest                        |  1 +
 .../hollywood-0_pre20200822-use-libexec.patch      | 35 +++++++++++
 app-misc/hollywood/hollywood-0_pre20200822.ebuild  | 73 ++++++++++++++++++++++
 app-misc/hollywood/metadata.xml                    | 25 ++++++++
 4 files changed, 134 insertions(+)

diff --git a/app-misc/hollywood/Manifest b/app-misc/hollywood/Manifest
new file mode 100644
index 000000000..5d0e5d602
--- /dev/null
+++ b/app-misc/hollywood/Manifest
@@ -0,0 +1 @@
+DIST hollywood-0_pre20200822.tar.gz 16721081 BLAKE2B 
9e55bb6734c9f26ada954af69c3da5d83da161ea2c2f2c7483c3a8dcfb42a2a842696d2a8faf736a93a77789c5b181e556dc86da4db3ccacb03906c150131105
 SHA512 
1b18f7895315f8cfc71642adccc171a45ef15a9f355a4b4cb5d5b094e5d850dd7c2898f495d332279e5b87bbf6104540f101f4c94ce00fc75d30db7b6089ab57

diff --git a/app-misc/hollywood/files/hollywood-0_pre20200822-use-libexec.patch 
b/app-misc/hollywood/files/hollywood-0_pre20200822-use-libexec.patch
new file mode 100644
index 000000000..8521ccbd7
--- /dev/null
+++ b/app-misc/hollywood/files/hollywood-0_pre20200822-use-libexec.patch
@@ -0,0 +1,35 @@
+--- a/bin/hollywood
++++ b/bin/hollywood
+@@ -18,7 +18,7 @@
+ # limitations under the License.
+ 
+ PKG="hollywood"
+-trap "pkill -f -9 lib/hollywood/ >/dev/null 2>&1; exit 0" INT
++trap "pkill -f -9 libexec/hollywood/ >/dev/null 2>&1; exit 0" INT
+ 
+ spin_up() {
+       local w=
+@@ -43,7 +43,7 @@
+       done
+ }
+ 
+-WIDGET_DIR="$(dirname $0)/../lib/$PKG"
++WIDGET_DIR="$(dirname $0)/../libexec/$PKG"
+ SPLITS=$(ls "$WIDGET_DIR" | wc -l)
+ DELAY=10
+ while [ ! -z "$1" ]; do
+--- a/bin/wallstreet
++++ b/bin/wallstreet
+@@ -19,10 +19,10 @@
+ 
+ PKG="wallstreet"
+ [ -n "$TMDIR" ] || export TMPDIR=$(mktemp -d /dev/shm/$PKG.XXXXXXXXX)
+-trap "rm -rf $TMPDIR; pkill -f -9 lib/$PKG/ >/dev/null 2>&1; exit 0" EXIT HUP 
INT QUIT TERM
++trap "rm -rf $TMPDIR; pkill -f -9 libexec/$PKG/ >/dev/null 2>&1; exit 0" EXIT 
HUP INT QUIT TERM
+ 
+ dir="-v"
+-widget_dir="$(dirname $0)/../lib/$PKG"
++widget_dir="$(dirname $0)/../libexec/$PKG"
+ widget1=$(ls "$widget_dir/" | sort -R | head -n1)
+ 
+ if [ -n "$1" ]; then

diff --git a/app-misc/hollywood/hollywood-0_pre20200822.ebuild 
b/app-misc/hollywood/hollywood-0_pre20200822.ebuild
new file mode 100644
index 000000000..635e3a9d3
--- /dev/null
+++ b/app-misc/hollywood/hollywood-0_pre20200822.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="7"
+
+inherit optfeature
+
+COMMIT="35275a68c37bbc39d8b2b0e4664a0c2f5451e5f6"
+
+DESCRIPTION="Fill your console with Hollywood melodrama technobabble"
+HOMEPAGE="
+       https://hollywood.computer
+       https://github.com/dustinkirkland/hollywood
+"
+SRC_URI="https://github.com/dustinkirkland/hollywood/archive/${COMMIT}.tar.gz 
-> ${P}.tar.gz"
+S="${WORKDIR}/${PN}-${COMMIT}"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="
+       app-misc/byobu
+       app-misc/tmux
+"
+
+PATCHES=( "${FILESDIR}/${P}-use-libexec.patch" )
+
+src_install() {
+       dobin bin/*
+       insinto /usr/share
+       doins -r share/hollywood
+       doins -r share/wallstreet
+       doman share/man/man1/hollywood.1
+       doman share/man/man1/wallstreet.1
+       exeinto /usr/libexec/hollywood
+       doexe lib/hollywood/*
+       exeinto /usr/libexec/wallstreet
+       doexe lib/wallstreet/*
+       dodoc README
+}
+
+pkg_postinst() {
+       optfeature "supported programs" \
+       "sys-process/atop \
+       net-analyzer/bmon \
+       app-misc/cmatrix \
+       net-dns/dnstop \
+       sys-process/glances \
+       sys-process/htop \
+       net-analyzer/ifstat \
+       sys-process/iotop \
+       net-analyzer/iptraf-ng \
+       net-analyzer/jnettop \
+       sys-process/latencytop \
+       net-analyzer/nload \
+       sys-process/nmon \
+       sys-power/powertop \
+       app-admin/sagan \
+       net-analyzer/slurm \
+       sys-process/tiptop \
+       net-analyzer/vnstat \
+       app-admin/ccze \
+       media-gfx/jp2a \
+       sys-apps/mlocate \
+       app-text/tree \
+       sys-apps/moreutils \
+       app-admin/apg \
+       net-misc/openssh \
+       net-news/newsboat \
+       net-news/rsstail \
+       net-misc/wget \
+       virtual/w3m"
+}

diff --git a/app-misc/hollywood/metadata.xml b/app-misc/hollywood/metadata.xml
new file mode 100644
index 000000000..979a382cb
--- /dev/null
+++ b/app-misc/hollywood/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Alessandro Barbieri</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">dustinkirkland/hollywood</remote-id>
+       </upstream>
+       <longdescription lang="en">
+fill your console with Hollywood melodrama technobabble
+This utility will split your console into a multiple panes of genuine
+technobabble, perfectly suitable for any Hollywood geek melodrama.
+It is particularly suitable on any number of computer consoles in the
+background of any excellent schlock technothriller.
+
+fill your console with Wall Street-like news and stats
+This utility will split your console into a multiple panes of news
+and statistics, like any good computer screen on Wall Street.
+       </longdescription>
+</pkgmetadata>
+
+
+

Reply via email to