multimedia/straw-viewer: Updated for version 0.0.2+20200307_9089523.

Signed-off-by: B. Watson <yalhcru@gmail.com>
This commit is contained in:
B. Watson 2020-03-10 19:23:05 -04:00 committed by Willy Sudiarto Raharjo
parent 1745a7eadd
commit 0de06789f5
No known key found for this signature in database
GPG key ID: 887B8374D7333381
4 changed files with 14 additions and 32 deletions

View file

@ -7,6 +7,11 @@ early development stages and some features are not implemented yet.
straw-viewer is a fork of youtube-viewer that does not require a Google
API key. Usage and user interface are identical to youtube-viewer.
For playing videos, this uses mplayer, vlc, or mpv. However, the mplayer
that ships with Slackware 14.2 has some issues with straw-viewer (or
actually with youtube: the audio stream cuts out randomly). Using vlc
or mpv is highly recommended.
Optional dependencies:
perl-Gtk3, perl-File-ShareDir - for gtk-straw-viewer.

View file

@ -1,18 +0,0 @@
diff -Naur straw-viewer-0.0.1/bin/gtk-straw-viewer straw-viewer-0.0.1.patched/bin/gtk-straw-viewer
--- straw-viewer-0.0.1/bin/gtk-straw-viewer 2020-02-26 05:17:22.000000000 -0500
+++ straw-viewer-0.0.1.patched/bin/gtk-straw-viewer 2020-02-28 17:04:39.723002906 -0500
@@ -643,11 +643,11 @@
undef $history{lc($line)};
}
- require List::Util;
+ require List::MoreUtils;
# Keep only the most recent non-duplicated entries
- @history = reverse(List::Util::uniq(reverse(@history)));
- @search_history = List::Util::uniq(@search_history);
+ @history = reverse(List::MoreUtils::uniq(reverse(@history)));
+ @search_history = List::MoreUtils::uniq(@search_history);
# Set entry completion
$completion = Gtk3::EntryCompletion->new;

View file

@ -6,13 +6,18 @@
# Licensed under the WTFPL. See http://www.wtfpl.net/txt/copying/ for details.
# 20200310 bkw: update to not-quite-latest git. Next commit after 9089523
# removes mplayer support, which kinda sucks for Slackware users since
# mplayer ships with the OS (but mpv and vlc don't). My next update will
# likely re-add mplayer support, unless it's totally broken.
# 20200302 bkw: new build, based on youtube-viewer, of which straw-viewer
# is a fork. See https://github.com/trizen/youtube-viewer/issues/308 for
# why. Packaging a git commit because the latest (only) release has some
# issues that have been fixed.
PRGNAM=straw-viewer
VERSION=${VERSION:-0.0.1+20200227_ad7ec17}
VERSION=${VERSION:-0.0.2+20200307_9089523}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@ -75,16 +80,6 @@ echo "=== GTK=$GTK BUILD_GTK=$BUILD_GTK GTKOPT=$GTKOPT"
# actually works fine with 14.2's 3.18. So:
sed -i 's,"3.20","3.18",' share/gtk-$PRGNAM.glade
# 20200228 bkw: 14.2's perl package has List::Util 1.4.1, which lacks
# the uniq() function. However, SBo's perl-List-MoreUtils provides it.
# This means we can ignore the build warning:
# ! List::Util (1.41) is installed, but we need version >= 1.43
patch -p1 < $CWD/list-moreutils.diff
# 20200306 bkw: upstream must not have ever run 'make test' in a clean
# environment...
sed -i 's,Youtube,Straw,g' t/*.t
perl Build.PL prefix=/usr installdirs=vendor --destdir="$PKG" $GTKOPT
./Build
./Build test

View file

@ -1,8 +1,8 @@
PRGNAM="straw-viewer"
VERSION="0.0.1+20200227_ad7ec17"
VERSION="0.0.2+20200307_9089523"
HOMEPAGE="https://github.com/trizen/straw-viewer/"
DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/straw-viewer-0.0.1+20200227_ad7ec17.tar.xz"
MD5SUM="405dd0bc791b9a970c8b09dbde909fe3"
DOWNLOAD="http://urchlay.naptime.net/~urchlay/src/straw-viewer-0.0.2+20200307_9089523.tar.xz"
MD5SUM="60675a74c96dd9d7fa0f1096f32977c5"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES="perl-data-dump perl-LWP-Protocol-https perl-JSON perl-Module-Build perl-List-MoreUtils"