pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/get_iplayer Import get_iplayer-2.90 as net/get_ipl...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f5960dc5ed9c
branches:  trunk
changeset: 641573:f5960dc5ed9c
user:      shattered <shattered%pkgsrc.org@localhost>
date:      Tue Nov 11 21:49:01 2014 +0000

description:
Import get_iplayer-2.90 as net/get_iplayer.

This tool allows you to search, index and record/stream:

    * BBC iPlayer TV
    * BBC iPlayer TV subtitles
    * BBC iPlayer Radio
    * BBC Live TV
    * BBC Live Radio
    * BBC Podcasts

diffstat:

 net/get_iplayer/DESCR                                       |   8 ++
 net/get_iplayer/MESSAGE                                     |   7 ++
 net/get_iplayer/Makefile                                    |  41 +++++++++++++
 net/get_iplayer/PLIST                                       |   4 +
 net/get_iplayer/distinfo                                    |   7 ++
 net/get_iplayer/files/options.default                       |   2 +
 net/get_iplayer/patches/patch-aa                            |  28 ++++++++
 net/get_iplayer/patches/patch-windows_get_iplayer_setup.cgi |  15 ++++
 8 files changed, 112 insertions(+), 0 deletions(-)

diffs (144 lines):

diff -r c03f2705a00e -r f5960dc5ed9c net/get_iplayer/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/get_iplayer/DESCR     Tue Nov 11 21:49:01 2014 +0000
@@ -0,0 +1,8 @@
+This tool allows you to search, index and record/stream:
+
+    * BBC iPlayer TV
+    * BBC iPlayer TV subtitles
+    * BBC iPlayer Radio
+    * BBC Live TV
+    * BBC Live Radio
+    * BBC Podcasts
diff -r c03f2705a00e -r f5960dc5ed9c net/get_iplayer/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/get_iplayer/MESSAGE   Tue Nov 11 21:49:01 2014 +0000
@@ -0,0 +1,7 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1 2014/11/11 21:49:01 shattered Exp $
+
+This tool can use an external player (mplayer, vlc or xine) and transcoder
+(ffmpeg).  These are optional and thus not included in dependencies.
+
+===========================================================================
diff -r c03f2705a00e -r f5960dc5ed9c net/get_iplayer/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/get_iplayer/Makefile  Tue Nov 11 21:49:01 2014 +0000
@@ -0,0 +1,41 @@
+# $NetBSD: Makefile,v 1.1 2014/11/11 21:49:01 shattered Exp $
+
+DISTNAME=      get_iplayer-2.90
+CATEGORIES=    net multimedia
+MASTER_SITES=  ftp://ftp.infradead.org/pub/get_iplayer/
+
+MAINTAINER=    shattered%NetBSD.org@localhost
+HOMEPAGE=      http://www.infradead.org/get_iplayer/html/get_iplayer.html
+COMMENT=       Search, index, record or stream BBC iPlayer broadcasts
+LICENSE=       gnu-gpl-v3
+
+DEPENDS+=      p5-HTML-Parser>=3.0:../../www/p5-HTML-Parser
+DEPENDS+=      p5-HTTP-Cookies>=6.0:../../www/p5-HTTP-Cookies
+DEPENDS+=      p5-HTTP-Date>=6.0:../../www/p5-HTTP-Date
+DEPENDS+=      p5-libwww>=6.0:../../www/p5-libwww
+DEPENDS+=      rtmpdump>=1.8:../../net/rtmpdump
+DEPENDS+=      flvstreamer>=1.8:../../wip/flvstreamer
+
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+
+USE_LANGUAGES= # none
+NO_BUILD=      yes
+REPLACE_PERL=  get_iplayer
+
+SUBST_CLASSES+=                prefix
+SUBST_STAGE.prefix=    post-patch
+SUBST_MESSAGE.prefix=  Fixup config and plugin paths
+SUBST_FILES.prefix=    get_iplayer
+SUBST_SED.prefix=      -e s:@PREFIX@:${PREFIX}:
+
+PKG_SYSCONFSUBDIR=     get_iplayer
+EGDIR=                 ${PREFIX}/share/examples/get_iplayer
+CONF_FILES=            ${EGDIR}/options ${PKG_SYSCONFDIR}/options
+INSTALLATION_DIRS+=    ${EGDIR}
+
+do-install:
+       ${INSTALL_SCRIPT} ${WRKSRC}/get_iplayer ${DESTDIR}${PREFIX}/bin/
+       ${INSTALL_MAN} ${WRKSRC}/get_iplayer.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/
+       ${INSTALL_DATA} ${FILESDIR}/options.default ${DESTDIR}${EGDIR}/options
+
+.include "../../mk/bsd.pkg.mk"
diff -r c03f2705a00e -r f5960dc5ed9c net/get_iplayer/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/get_iplayer/PLIST     Tue Nov 11 21:49:01 2014 +0000
@@ -0,0 +1,4 @@
+@comment $NetBSD: PLIST,v 1.1 2014/11/11 21:49:01 shattered Exp $
+bin/get_iplayer
+man/man1/get_iplayer.1
+share/examples/get_iplayer/options
diff -r c03f2705a00e -r f5960dc5ed9c net/get_iplayer/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/get_iplayer/distinfo  Tue Nov 11 21:49:01 2014 +0000
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1 2014/11/11 21:49:01 shattered Exp $
+
+SHA1 (get_iplayer-2.90.tar.gz) = 59b9330886fa8352b84e05214933439ac917228e
+RMD160 (get_iplayer-2.90.tar.gz) = e409cbfff138375d0efaefd080d44b925cba8cb1
+Size (get_iplayer-2.90.tar.gz) = 263109 bytes
+SHA1 (patch-aa) = c2988b800c3d46b38195c53d266737df0517cd46
+SHA1 (patch-windows_get_iplayer_setup.cgi) = 1f87f0bb74c5883e875cb7676dfd61461dc2cbd0
diff -r c03f2705a00e -r f5960dc5ed9c net/get_iplayer/files/options.default
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/get_iplayer/files/options.default     Tue Nov 11 21:49:01 2014 +0000
@@ -0,0 +1,2 @@
+packagemanager = disable
+
diff -r c03f2705a00e -r f5960dc5ed9c net/get_iplayer/patches/patch-aa
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/get_iplayer/patches/patch-aa  Tue Nov 11 21:49:01 2014 +0000
@@ -0,0 +1,28 @@
+$NetBSD: patch-aa,v 1.1 2014/11/11 21:49:01 shattered Exp $
+
+- Sort out directories
+
+--- get_iplayer.orig   2014-10-18 11:39:56.000000000 +0000
++++ get_iplayer
+@@ -407,10 +407,10 @@ if ( defined $ENV{GETIPLAYERSYSPREFS} ) 
+       $optfile_system = $ENV{ALLUSERSPROFILE}.'/get_iplayer/options';
+ # System options on unix-like systems
+ } else {
+-      $optfile_system = '/etc/get_iplayer/options';
++      $optfile_system = '@PREFIX@/etc/get_iplayer/options';
+       # Show warning if this deprecated location exists and is not a symlink
+       if ( -f '/var/lib/get_iplayer/options' && ! -l '/var/lib/get_iplayer/options' ) {
+-              logger "WARNING: System-wide options file /var/lib/get_iplayer/options will be deprecated in future, please use /etc/get_iplayer/options instead\n";
++              logger "WARNING: System-wide options file /var/lib/get_iplayer/options will be deprecated in future, please use @PREFIX@/etc/get_iplayer/options instead\n";
+       }
+ }
+ # Make profile dir if it doesnt exist
+@@ -422,7 +422,7 @@ my $plugin_dir_system;
+ if ( defined $ENV{ALLUSERSPROFILE} ) {
+     $plugin_dir_system = $ENV{ALLUSERSPROFILE}.'/get_iplayer/plugins';
+ } else {
+-    $plugin_dir_system = '/usr/share/get_iplayer/plugins';
++    $plugin_dir_system = '@PREFIX@/share/get_iplayer/plugins';
+ }
+ my $plugin_dir_user = "$profile_dir/plugins";
+ for my $plugin_dir ( ( $plugin_dir_user, $plugin_dir_system ) ) {
diff -r c03f2705a00e -r f5960dc5ed9c net/get_iplayer/patches/patch-windows_get_iplayer_setup.cgi
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/get_iplayer/patches/patch-windows_get_iplayer_setup.cgi       Tue Nov 11 21:49:01 2014 +0000
@@ -0,0 +1,15 @@
+$NetBSD: patch-windows_get_iplayer_setup.cgi,v 1.1 2014/11/11 21:49:01 shattered Exp $
+
+test(1) uses = for string comparison.
+
+--- windows/get_iplayer_setup.cgi.orig 2012-06-02 16:37:17.000000000 +0000
++++ windows/get_iplayer_setup.cgi
+@@ -32,7 +32,7 @@ case "$QUERY_STRING" in
+     ;;
+ esac
+ 
+-if [ "$TARGET" == "" ]; then
++if [ "$TARGET" = "" ]; then
+     cat <<EOF
+ Content-Type: text/html
+ 



Home | Main Index | Thread Index | Old Index