aboutsummaryrefslogtreecommitdiff
path: root/textproc/p5-xmltv/Makefile
blob: c316f829eeb05d376e93afd0c16d2e6c54249a3c (plain) (blame)
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
# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$

PORTNAME=	xmltv
PORTVERSION=	0.5.61
PORTREVISION=	1
CATEGORIES=	textproc perl5
MASTER_SITES=	SF
PKGNAMEPREFIX=	p5-

MAINTAINER=	multimedia@FreeBSD.org
COMMENT=	Set of programs to process TV (tvguide) listings in XML format

XMLTV_DEPENDS=	\
	p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \
	p5-XML-Twig>=0:${PORTSDIR}/textproc/p5-XML-Twig \
	p5-XML-Writer>=0:${PORTSDIR}/textproc/p5-XML-Writer \
	p5-Date-Manip>=0:${PORTSDIR}/devel/p5-Date-Manip \
	p5-PerlIO-gzip>=0:${PORTSDIR}/archivers/p5-PerlIO-gzip \
	p5-CGI.pm>=0:${PORTSDIR}/www/p5-CGI.pm \
	p5-IO-Compress>=0:${PORTSDIR}/archivers/p5-IO-Compress \
	p5-Data-Dumper>=0:${PORTSDIR}/devel/p5-Data-Dumper \
	p5-libwww>=0:${PORTSDIR}/www/p5-libwww \
	p5-Parse-RecDescent>=0:${PORTSDIR}/devel/p5-Parse-RecDescent \
	p5-HTML-Tree>=0:${PORTSDIR}/www/p5-HTML-Tree \
	p5-HTML-Parser>=0:${PORTSDIR}/www/p5-HTML-Parser \
	p5-Tk-TableMatrix>=0:${PORTSDIR}/x11-toolkits/p5-Tk-TableMatrix \
	ja-p5-Text-Kakasi>=0:${PORTSDIR}/japanese/p5-Text-Kakasi \
	p5-XML-LibXML>=0:${PORTSDIR}/textproc/p5-XML-LibXML \
	p5-SOAP-Lite>=0:${PORTSDIR}/net/p5-SOAP-Lite \
	p5-Term-ReadKey>=0:${PORTSDIR}/devel/p5-Term-ReadKey \
	p5-HTML-TableExtract>=0:${PORTSDIR}/www/p5-HTML-TableExtract \
	p5-WWW-Mechanize>=0:${PORTSDIR}/www/p5-WWW-Mechanize \
	p5-Term-ProgressBar>=0:${PORTSDIR}/devel/p5-Term-ProgressBar \
	p5-Lingua-Preferred>=0:${PORTSDIR}/textproc/p5-Lingua-Preferred \
	p5-Unicode-String>=0:${PORTSDIR}/converters/p5-Unicode-String \
	p5-Unicode-UTF8simple>=0:${PORTSDIR}/converters/p5-Unicode-UTF8simple \
	p5-Lingua-EN-Numbers-Ordinate>=0:${PORTSDIR}/textproc/p5-Lingua-EN-Numbers-Ordinate \
	p5-Archive-Zip>=0:${PORTSDIR}/archivers/p5-Archive-Zip \
	p5-HTTP-Cache-Transparent>=0:${PORTSDIR}/www/p5-HTTP-Cache-Transparent \
	p5-IO-stringy>=0:${PORTSDIR}/devel/p5-IO-stringy \
	p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate
BUILD_DEPENDS=	${XMLTV_DEPENDS}
RUN_DEPENDS=	${XMLTV_DEPENDS}

USES=		perl5
USE_BZIP2=	yes
USE_PERL5=	configure

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

MAN1=	tv_cat.1 tv_check.1 tv_extractinfo_ar.1 tv_extractinfo_en.1 \
	tv_find_grabbers.1 \
	tv_grab_ar.1 tv_grab_ch_search.1 tv_grab_combiner.1 tv_grab_dk_dr.1 \
	tv_grab_ee.1 tv_grab_es_laguiatv.1 tv_grab_es_miguiatv.1 tv_grab_fi.1 \
	tv_grab_fi_sv.1 tv_grab_fr_kazer.1 tv_grab_fr.1 tv_grab_hr.1 \
	tv_grab_huro.1 tv_grab_il.1 tv_grab_in.1 tv_grab_it.1 tv_grab_it_dvb.1 \
	tv_grab_is.1 tv_grab_na_dd.1 tv_grab_na_icons.1 tv_grab_nl.1 \
	tv_grab_no_gfeed.1 tv_grab_pt.1 tv_grab_pt_meo.1 tv_grab_se_swedb.1 \
	tv_grab_uk_bleb.1 tv_grab_uk_rt.1 tv_grab_za.1 tv_grep.1 tv_imdb.1 \
	tv_remove_some_overlapping.1 tv_sort.1 tv_split.1 tv_to_latex.1 \
	tv_to_potatoe.1 tv_to_text.1 tv_validate_file.1 \
	tv_validate_grabber.1 tv_grab_eu_epgdata.1 tv_grab_dtv_la.1
MAN3=	Configure.3 Configure::Writer.3 Lineup.3 Options.3 PreferredMethod.3 \
	ValidateFile.3 ValidateGrabber.3 Version.3 \
	XMLTV.3 XMLTV::Date.3 XMLTV::Grab_XML.3 XMLTV::Gunzip.3 \
	XMLTV::GUI.3 XMLTV::Summarize.3 XMLTV::Supplement.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.mk>