blob: 7af92089c5367d2f642ad0866b31a0dd5f0d2fc9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# New ports collection makefile for: xmltv
# Date created: Mon Nov 4 02:56:34 UTC 2002
# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= xmltv
PORTVERSION= 0.5.36
CATEGORIES= textproc perl5
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= xmltv
PKGNAMEPREFIX= p5-
MAINTAINER= lioux@FreeBSD.org
COMMENT= Set of programs to process TV (tvguide) listings in XML format
BUILD_DEPENDS= \
${SITE_PERL}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
${SITE_PERL}/XML/Twig.pm:${PORTSDIR}/textproc/p5-XML-Twig \
${SITE_PERL}/XML/Writer.pm:${PORTSDIR}/textproc/p5-XML-Writer \
${SITE_PERL}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \
${SITE_PERL}/LWP.pm:${PORTSDIR}/www/p5-libwww \
${SITE_PERL}/HTML/TreeBuilder.pm:${PORTSDIR}/www/p5-HTML-Tree \
${SITE_PERL}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \
${SITE_PERL}/${PERL_ARCH}/Tk/TableMatrix.pm:${PORTSDIR}/x11-toolkits/p5-Tk-TableMatrix \
${SITE_PERL}/${PERL_ARCH}/Text/Kakasi.pm:${PORTSDIR}/japanese/p5-Text-Kakasi \
${SITE_PERL}/${PERL_ARCH}/XML/LibXML.pm:${PORTSDIR}/textproc/p5-XML-LibXML \
${SITE_PERL}/SOAP/Lite.pm:${PORTSDIR}/net/p5-SOAP-Lite \
${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \
${SITE_PERL}/HTML/TableExtract.pm:${PORTSDIR}/www/p5-HTML-TableExtract \
${SITE_PERL}/HTML/LinkExtractor.pm:${PORTSDIR}/www/p5-HTML-LinkExtractor \
${SITE_PERL}/WWW/Mechanize.pm:${PORTSDIR}/www/p5-WWW-Mechanize \
${SITE_PERL}/Term/ProgressBar.pm:${PORTSDIR}/devel/p5-Term-ProgressBar \
${SITE_PERL}/Lingua/Preferred.pm:${PORTSDIR}/textproc/p5-Lingua-Preferred \
${SITE_PERL}/${PERL_ARCH}/Unicode/String.pm:${PORTSDIR}/converters/p5-Unicode-String \
${SITE_PERL}/Lingua/EN/Numbers/Ordinate.pm:${PORTSDIR}/textproc/p5-Lingua-EN-Numbers-Ordinate \
${SITE_PERL}/Archive/Zip.pm:${PORTSDIR}/archivers/p5-Archive-Zip
RUN_DEPENDS= ${BUILD_DEPENDS}
USE_BZIP2= yes
USE_REINPLACE= yes
PERL_CONFIGURE= yes
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
.ifdef(NOPORTDOCS)
EXTRA_PATCHES+= ${FILESDIR}/extra-noportdocs-patch-Makefile.PL
.else
PORTDOCS= COPYING \
QuickStart \
README \
README.tv_check \
README.win32 \
tv_check_doc.html \
tv_check_doc.jpg
.endif
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} <= 500600
IGNORE= "perl 5.6 or higher is required to build this port"
.endif
.if ${PERL_LEVEL} < 500800
BUILD_DEPENDS+= \
${SITE_PERL}/Memoize.pm:${PORTSDIR}/devel/p5-Memoize \
${SITE_PERL}/Storable.pm:${PORTSDIR}/devel/p5-Storable
RUN_DEPENDS+= \
${SITE_PERL}/Memoize.pm:${PORTSDIR}/devel/p5-Memoize \
${SITE_PERL}/Storable.pm:${PORTSDIR}/devel/p5-Storable
.endif
MAN1= tv_cat.1 tv_check.1 tv_extractinfo_en.1 \
tv_grab_de_tvtoday.1 tv_grab_dk.1 tv_grab_es.1 \
tv_grab_es_digital.1 tv_grab_fi.1 tv_grab_fr.1 tv_grab_huro.1 \
tv_grab_it.1 tv_grab_jp.1 tv_grab_na_dd.1 tv_grab_na_icons.1 \
tv_grab_nl.1 tv_grab_nl_wolf.1 tv_grab_no.1 \
tv_grab_se.1 tv_grab_uk_bleb.1 tv_grab_uk_rt.1 tv_grep.1 \
tv_imdb.1 tv_remove_some_overlapping.1 tv_sort.1 tv_split.1 \
tv_to_latex.1 tv_to_text.1
MAN3= GUI.3 XMLTV.3 XMLTV::Date.3 XMLTV::Grab_XML.3 XMLTV::Gunzip.3 \
XMLTV::Summarize.3
# idea taken from devel/cvsweb port
# Specify these directories in relative paths to ${PREFIX}.
.if !exists(${PREFIX}/www) && exists(${PREFIX}/share/apache)
CGIDIR?= share/apache/cgi-bin
ICONSDIR?= share/apache/icons
.else
CGIDIR?= www/cgi-bin
ICONSDIR?= www/icons
.endif
#
PLIST_SUB+= CGIDIR="${CGIDIR}"
post-patch:
# fix man install location
@${REINPLACE_CMD} -e \
's|share/man|man|' \
${WRKSRC}/Makefile.PL
@${FIND} ${WRKSRC} -type f | \
${XARGS} -n 10 ${REINPLACE_CMD} \
-e 's|/usr/bin/perl|${PERL}|'
@${FIND} ${WRKSRC} -type f \
-name "*.bak" | \
${XARGS} -n 10 ${RM}
post-install:
@${MKDIR} ${PREFIX}/${CGIDIR}
@${INSTALL_SCRIPT} ${WRKSRC}/choose/tv_pick/tv_pick_cgi ${PREFIX}/${CGIDIR}/tv_pick.cgi
.include <bsd.port.post.mk>
|