View | Details | Raw Unified | Return to bug 177775 | Differences between
and this patch

Collapse All | Expand All

(-)multimedia/gtk-youtube-viewer/Makefile (-17 / +10 lines)
Lines 3-9 Link Here
3
3
4
PORTNAME=	gtk-youtube-viewer
4
PORTNAME=	gtk-youtube-viewer
5
PORTVERSION=	3.0.7
5
PORTVERSION=	3.0.7
6
PORTREVISION=	1
6
PORTREVISION=	2
7
CATEGORIES=	multimedia perl5
7
CATEGORIES=	multimedia perl5
8
8
9
MAINTAINER=	nemysis@gmx.ch
9
MAINTAINER=	nemysis@gmx.ch
Lines 35-41 Link Here
35
WRKSRC=		${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}/WWW-YoutubeViewer
35
WRKSRC=		${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}/WWW-YoutubeViewer
36
36
37
CONFIGURE_ARGS+=${DATADIR}
37
CONFIGURE_ARGS+=${DATADIR}
38
PERL_MODBUILD=	yes
39
38
40
MAN3=		WWW::YoutubeViewer::RegularExpressions.3 \
39
MAN3=		WWW::YoutubeViewer::RegularExpressions.3 \
41
		WWW::YoutubeViewer.3 \
40
		WWW::YoutubeViewer.3 \
Lines 48-68 Link Here
48
47
49
OPTIONS_DEFINE=	GCAP
48
OPTIONS_DEFINE=	GCAP
50
49
51
OPTIONS_MULTI=	USER_INTERFACE
50
OPTIONS_MULTI=	UI
52
OPTIONS_MULTI_USER_INTERFACE=	CLI GTK2
51
OPTIONS_MULTI_UI=	CLI GTK2
53
52
54
OPTIONS_DEFAULT=	GTK2 GCAP
53
OPTIONS_DEFAULT=	GTK2 GCAP
55
54
56
CLI_DESC=	Enable CLI version
55
CLI_DESC=	CLI version (requires perl5.16)
57
GCAP_DESC=	Enable YouTube captions support
56
GCAP_DESC=	YouTube captions support
58
57
59
.include <bsd.port.options.mk>
58
.include <bsd.port.options.mk>
60
59
61
.if ${PORT_OPTIONS:MCLI}
60
.if ${PORT_OPTIONS:MCLI}
62
MAN1=		youtube-viewer.1
61
MAN1=		youtube-viewer.1
63
PLIST_SUB+=	CLI=""
62
PLIST_SUB+=	CLI=""
63
PERL_MODBUILD=	5.16+
64
USE_PERL5_RUN=	5.16+
65
USE_PERL5_REASON=	Requires Perl 5.16 or later, install lang/perl5.16 and try again. \
66
	Please read ${PORTSDIR}/UPDATING entry from 20120630 after installation.
64
.else
67
.else
65
PLIST_SUB+=	CLI="@comment "
68
PLIST_SUB+=	CLI="@comment "
69
PERL_MODBUILD=	YES
66
.endif
70
.endif
67
71
68
.if ${PORT_OPTIONS:MGTK2}
72
.if ${PORT_OPTIONS:MGTK2}
Lines 78-94 Link Here
78
RUN_DEPENDS+=	${LOCALBASE}/bin/gcap:${PORTSDIR}/multimedia/gcap
82
RUN_DEPENDS+=	${LOCALBASE}/bin/gcap:${PORTSDIR}/multimedia/gcap
79
.endif
83
.endif
80
84
81
post-extract:
82
.if ! exists(${LOCALBASE}/bin/per5.16.2)
83
	@${ECHO_CMD}
84
	@${ECHO_MSG} "GTK Youtube Viewer 3.07 requires lang/perl5.16 to use CLI version"
85
	@${ECHO_MSG}
86
	@${ECHO_MSG} "Please read /usr/ports/UPDATING"
87
	@${ECHO_MSG}
88
	@${ECHO_MSG} "Hit ^c now if you don't wish to do this."
89
	@${ECHO_MSG}
90
.endif
91
92
post-patch:
85
post-patch:
93
	@${REINPLACE_CMD} -n '1,/create_build_script()/p' \
86
	@${REINPLACE_CMD} -n '1,/create_build_script()/p' \
94
			${WRKSRC}/Build.PL
87
			${WRKSRC}/Build.PL
(-)multimedia/gtk-youtube-viewer/pkg-plist (-2 / +2 lines)
Lines 27-32 Link Here
27
@dirrm %%SITE_PERL%%/WWW
27
@dirrm %%SITE_PERL%%/WWW
28
@dirrm %%SITE_PERL%%
28
@dirrm %%SITE_PERL%%
29
@dirrmtry lib/perl5/site_perl
29
@dirrmtry lib/perl5/site_perl
30
@dirrmtry lib/perl5/5.14.2/man
30
@dirrmtry lib/perl5/%%PERL_VER%%/man
31
@dirrmtry lib/perl5/5.14.2
31
@dirrmtry lib/perl5/%%PERL_VER%%
32
@dirrmtry lib/perl5
32
@dirrmtry lib/perl5

Return to bug 177775