Lines 2-8
Link Here
|
2 |
# $FreeBSD: head/multimedia/gtk-youtube-viewer/Makefile 307424 2012-11-14 19:10:45Z jhale $ |
2 |
# $FreeBSD: head/multimedia/gtk-youtube-viewer/Makefile 307424 2012-11-14 19:10:45Z jhale $ |
3 |
|
3 |
|
4 |
PORTNAME= gtk-youtube-viewer |
4 |
PORTNAME= gtk-youtube-viewer |
5 |
PORTVERSION= 3.0.3 |
5 |
PORTVERSION= 3.0.7 |
6 |
CATEGORIES= multimedia perl5 |
6 |
CATEGORIES= multimedia perl5 |
7 |
|
7 |
|
8 |
MAINTAINER= nemysis@gmx.ch |
8 |
MAINTAINER= nemysis@gmx.ch |
Lines 10-21
Link Here
|
10 |
|
10 |
|
11 |
LICENSE= GPLv3 |
11 |
LICENSE= GPLv3 |
12 |
|
12 |
|
|
|
13 |
# According to Build.PL |
13 |
BUILD_DEPENDS= p5-Data-Dump>=0:${PORTSDIR}/devel/p5-Data-Dump \ |
14 |
BUILD_DEPENDS= p5-Data-Dump>=0:${PORTSDIR}/devel/p5-Data-Dump \ |
14 |
p5-ReadLine-Gnu>=0:${PORTSDIR}/devel/p5-ReadLine-Gnu \ |
15 |
p5-libwww>=0:${PORTSDIR}/www/p5-libwww \ |
15 |
p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey \ |
16 |
p5-Term-ANSIColor>=0:${PORTSDIR}/devel/p5-Term-ANSIColor \ |
16 |
p5-XML-Fast>=0:${PORTSDIR}/net/p5-XML-Fast \ |
17 |
p5-URI>=0:${PORTSDIR}/net/p5-URI \ |
|
|
18 |
p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser \ |
17 |
p5-LWP-Protocol-https>=0:${PORTSDIR}/www/p5-LWP-Protocol-https \ |
19 |
p5-LWP-Protocol-https>=0:${PORTSDIR}/www/p5-LWP-Protocol-https \ |
18 |
p5-libwww>=0:${PORTSDIR}/www/p5-libwww |
20 |
p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey \ |
|
|
21 |
p5-ReadLine-Gnu>=0:${PORTSDIR}/devel/p5-ReadLine-Gnu \ |
22 |
p5-XML-Fast>=0:${PORTSDIR}/net/p5-XML-Fast |
19 |
RUN_DEPENDS:= ${BUILD_DEPENDS} \ |
23 |
RUN_DEPENDS:= ${BUILD_DEPENDS} \ |
20 |
mplayer:${PORTSDIR}/multimedia/mplayer |
24 |
mplayer:${PORTSDIR}/multimedia/mplayer |
21 |
TEST_DEPENDS= p5-Test-More-UTF8>=0:${PORTSDIR}/devel/p5-Test-More-UTF8 |
25 |
TEST_DEPENDS= p5-Test-More-UTF8>=0:${PORTSDIR}/devel/p5-Test-More-UTF8 |
Lines 25-47
Link Here
|
25 |
USE_GITHUB= yes |
29 |
USE_GITHUB= yes |
26 |
GH_ACCOUNT= trizen |
30 |
GH_ACCOUNT= trizen |
27 |
GH_PROJECT= youtube-viewer |
31 |
GH_PROJECT= youtube-viewer |
28 |
GH_COMMIT= c4496ed |
32 |
GH_COMMIT= c26d9a7 |
29 |
|
33 |
|
30 |
WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}/WWW-YoutubeViewer |
34 |
WRKSRC= ${WRKDIR}/${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT}/WWW-YoutubeViewer |
31 |
|
35 |
|
32 |
PERL_MODBUILD= yes |
36 |
PERL_MODBUILD= yes |
33 |
|
37 |
|
34 |
MAN1= youtube-viewer.1 |
38 |
MAN1= youtube-viewer.1 |
35 |
MAN3= WWW::YoutubeViewer.3 |
39 |
MAN3= WWW::YoutubeViewer::RegularExpressions.3 \ |
|
|
40 |
WWW::YoutubeViewer.3 \ |
41 |
WWW::YoutubeViewer::Itags.3 \ |
42 |
WWW::YoutubeViewer::Utils.3 \ |
43 |
WWW::YoutubeViewer::GetCaption.3 \ |
44 |
WWW::YoutubeViewer::ParseXML.3 |
36 |
|
45 |
|
37 |
PORTDOCS= Changes README |
46 |
PORTDOCS= Changes README |
38 |
|
47 |
|
39 |
OPTIONS_DEFINE= GTK2 GCAP |
48 |
OPTIONS_DEFINE= DOCS GTK2 GCAP |
40 |
OPTIONS_DEFAULT=GTK2 GCAP |
49 |
OPTIONS_DEFAULT=GTK2 GCAP |
41 |
GCAP_DESC= Enable YouTube captions support |
50 |
GCAP_DESC= Enable YouTube captions support |
42 |
|
51 |
|
43 |
.include <bsd.port.options.mk> |
52 |
.include <bsd.port.options.mk> |
44 |
|
53 |
|
|
|
54 |
.if ${PORT_OPTIONS:MDOCS} |
55 |
PLIST_SUB+= PORTDOCS="" |
56 |
.else |
57 |
PLIST_SUB+= PORTDOCS="@comment " |
58 |
.endif |
59 |
|
45 |
.if ${PORT_OPTIONS:MGTK2} |
60 |
.if ${PORT_OPTIONS:MGTK2} |
46 |
BUILD_DEPENDS+= p5-Gtk2>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2 |
61 |
BUILD_DEPENDS+= p5-Gtk2>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2 |
47 |
RUN_DEPENDS+= p5-Gtk2>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2 |
62 |
RUN_DEPENDS+= p5-Gtk2>=0:${PORTSDIR}/x11-toolkits/p5-Gtk2 |
Lines 56-78
Link Here
|
56 |
.endif |
71 |
.endif |
57 |
|
72 |
|
58 |
post-patch: |
73 |
post-patch: |
59 |
cd ${WRKSRC} && ${REINPLACE_CMD} -n '1,/create_build_script()/p' \ |
74 |
@${REINPLACE_CMD} \ |
60 |
Build.PL |
75 |
-e 's|usr share|${PREFIX}|' \ |
61 |
cd ${WRKSRC}/bin && ${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \ |
76 |
-e 's|5.016|0|' \ |
|
|
77 |
${WRKSRC}/Build.PL |
78 |
@cd ${WRKSRC}/bin && ${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g' \ |
62 |
gtk-youtube-viewer youtube-viewer |
79 |
gtk-youtube-viewer youtube-viewer |
63 |
|
80 |
|
64 |
post-install: |
81 |
post-install: |
65 |
.if ${PORT_OPTIONS:MGTK2} |
82 |
.if ${PORT_OPTIONS:MGTK2} |
66 |
${MKDIR} ${PREFIX}/share/applications |
83 |
@${MKDIR} ${PREFIX}/share/applications |
67 |
${INSTALL_DATA} ${WRKSRC}/share/gtk-youtube-viewer.desktop ${PREFIX}/share/applications |
84 |
${INSTALL_DATA} ${WRKSRC}/share/gtk-youtube-viewer.desktop ${PREFIX}/share/applications |
68 |
${MKDIR} ${DATADIR}/icons |
85 |
@${MKDIR} ${DATADIR}/icons |
69 |
${INSTALL_DATA} ${WRKSRC}/share/gtk-youtube-viewer.glade ${DATADIR} |
86 |
${INSTALL_DATA} ${WRKSRC}/share/gtk-youtube-viewer.glade ${DATADIR} |
70 |
${INSTALL_DATA} ${WRKSRC}/share/gtk-youtube-viewer-icons/* ${DATADIR}/icons |
87 |
${INSTALL_DATA} ${WRKSRC}/share/gtk-youtube-viewer-icons/* ${DATADIR}/icons |
71 |
${INSTALL_DATA} ${WRKSRC}/share/icons/gtk-youtube-viewer.png ${PREFIX}/share/pixmaps |
88 |
${INSTALL_DATA} ${WRKSRC}/share/icons/gtk-youtube-viewer.png ${PREFIX}/share/pixmaps |
72 |
.endif |
89 |
.endif |
73 |
|
90 |
|
74 |
.if ${PORT_OPTIONS:MDOCS} |
91 |
.if ${PORT_OPTIONS:MDOCS} |
75 |
${MKDIR} ${DOCSDIR} |
92 |
@${MKDIR} ${DOCSDIR} |
76 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} |
93 |
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} |
77 |
.endif |
94 |
.endif |
78 |
|
95 |
|