FreeBSD Bugzilla – Attachment 133320 Details for
Bug 177775
multimedia/gtk-youtube-viewer: properly support dependency for CLI option
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
gtk-youtube-viewer.diff
gtk-youtube-viewer.diff (text/x-patch), 3.87 KB, created by
nemysis
on 2013-04-11 11:49:48 UTC
(
hide
)
Description:
gtk-youtube-viewer.diff
Filename:
MIME Type:
Creator:
nemysis
Created:
2013-04-11 11:49:48 UTC
Size:
3.87 KB
patch
obsolete
>===> Generating patch >===> Viewing diff with more >diff -ruN --exclude=CVS /usr/ports/multimedia/gtk-youtube-viewer/Makefile ./Makefile >--- /usr/ports/multimedia/gtk-youtube-viewer/Makefile 2013-03-23 02:42:29.000000000 +0100 >+++ ./Makefile 2013-04-11 12:46:41.000000000 +0200 >@@ -3,7 +3,7 @@ > > PORTNAME= gtk-youtube-viewer > PORTVERSION= 3.0.7 >-PORTREVISION= 1 >+PORTREVISION= 2 > CATEGORIES= multimedia perl5 > > MAINTAINER= nemysis@gmx.ch >@@ -46,10 +46,13 @@ > > PORTDOCS= Changes README > >+SUB_FILES= pkg-message \ >+ yv_5.16_to_5.10.pl >+ > OPTIONS_DEFINE= GCAP > >-OPTIONS_MULTI= USER_INTERFACE >-OPTIONS_MULTI_USER_INTERFACE= CLI GTK2 >+OPTIONS_MULTI= UI >+OPTIONS_MULTI_UI= CLI GTK2 > > OPTIONS_DEFAULT= GTK2 GCAP > >@@ -78,17 +81,6 @@ > RUN_DEPENDS+= ${LOCALBASE}/bin/gcap:${PORTSDIR}/multimedia/gcap > .endif > >-post-extract: >-.if ! exists(${LOCALBASE}/bin/per5.16.2) >- @${ECHO_CMD} >- @${ECHO_MSG} "GTK Youtube Viewer 3.07 requires lang/perl5.16 to use CLI version" >- @${ECHO_MSG} >- @${ECHO_MSG} "Please read /usr/ports/UPDATING" >- @${ECHO_MSG} >- @${ECHO_MSG} "Hit ^c now if you don't wish to do this." >- @${ECHO_MSG} >-.endif >- > post-patch: > @${REINPLACE_CMD} -n '1,/create_build_script()/p' \ > ${WRKSRC}/Build.PL >@@ -120,6 +112,14 @@ > ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} > .endif > >+.if ${PORT_OPTIONS:MCLI} >+ @(cd ${WRKDIR} && ${PERL} ./yv_5.16_to_5.10.pl ${WRKSRC}/bin/youtube-viewer > youtube-viewer-perl-v5.10+) >+ ${INSTALL_SCRIPT} ${WRKDIR}/youtube-viewer-perl-v5.10+ ${PREFIX}/bin >+ @${ECHO_CMD} >+ @${CAT} ${PKGMESSAGE} >+ @${ECHO_CMD} >+.endif >+ > regression-test: build > cd ${WRKSRC} && ${PERL} ./Build test > >diff -ruN --exclude=CVS /usr/ports/multimedia/gtk-youtube-viewer/files/pkg-message.in ./files/pkg-message.in >--- /usr/ports/multimedia/gtk-youtube-viewer/files/pkg-message.in 1970-01-01 01:00:00.000000000 +0100 >+++ ./files/pkg-message.in 2013-04-11 10:17:45.000000000 +0200 >@@ -0,0 +1,20 @@ >+=============================================================================== >+ >+GTK Youtube Viewer has been installed. >+ >+This package needs Perl 5.16 or Perl 5.14. >+ >+Please read UPDATING entry from 20120630 after installation. >+ >+ >+Youtube Viewer (CLI Version) can use either Perl version, please use >+ >+for Perl 5.16 >+ >+ %%PREFIX%%/bin/youtube-viewer >+ >+for Perl 5.14 >+ >+ %%PREFIX%%/bin/youtube-viewer-perl-v5.10+ >+ >+=============================================================================== >diff -ruN --exclude=CVS /usr/ports/multimedia/gtk-youtube-viewer/files/yv_5.16_to_5.10.pl.in ./files/yv_5.16_to_5.10.pl.in >--- /usr/ports/multimedia/gtk-youtube-viewer/files/yv_5.16_to_5.10.pl.in 1970-01-01 01:00:00.000000000 +0100 >+++ ./files/yv_5.16_to_5.10.pl.in 2012-12-16 16:59:39.000000000 +0100 >@@ -0,0 +1,12 @@ >+#!/usr/bin/perl >+ >+# usage: ./script.pl /usr/bin/youtube-viewer > new-youtube-viewer >+ >+my $sub = ''; >+while(<>){ >+ s{^use 5.01\K\d}{0}; >+ $sub = $1 if /^sub\s+(\w+)/; >+ s{^\s+(?:or)?\s*\K__SUB__->\(}{$sub(}; >+ s{\b__SUB__\b}{\\&$sub}; >+ print; >+} >diff -ruN --exclude=CVS /usr/ports/multimedia/gtk-youtube-viewer/pkg-plist ./pkg-plist >--- /usr/ports/multimedia/gtk-youtube-viewer/pkg-plist 2013-03-23 02:42:29.000000000 +0100 >+++ ./pkg-plist 2013-04-11 11:14:37.000000000 +0200 >@@ -1,5 +1,6 @@ > %%GTK2%%bin/gtk-youtube-viewer > %%CLI%%bin/youtube-viewer >+%%CLI%%bin/youtube-viewer-perl-v5.10+ > %%SITE_PERL%%/WWW/YoutubeViewer.pm > %%SITE_PERL%%/WWW/YoutubeViewer/GetCaption.pm > %%SITE_PERL%%/WWW/YoutubeViewer/Itags.pm >@@ -20,13 +21,4 @@ > %%GTK2%%@dirrm %%DATADIR%% > %%GTK2%%@dirrmtry share/applications > %%GTK2%%@dirrm %%SITE_PERL%%/mach/auto/WWW/YoutubeViewer >-%%GTK2%%@dirrm %%SITE_PERL%%/mach/auto/WWW >-%%GTK2%%@dirrm %%SITE_PERL%%/mach/auto >-%%GTK2%%@dirrm %%SITE_PERL%%/mach > @dirrm %%SITE_PERL%%/WWW/YoutubeViewer >-@dirrm %%SITE_PERL%%/WWW >-@dirrm %%SITE_PERL%% >-@dirrmtry lib/perl5/site_perl >-@dirrmtry lib/perl5/5.14.2/man >-@dirrmtry lib/perl5/5.14.2 >-@dirrmtry lib/perl5 >===> Done
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 177775
:
133319
| 133320 |
133321