1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/textproc/p5-xmltv/Makefile
Thomas Zander ba970a5e2a - Fix runtime issue:
The web site from which North American data is obtained has changed
- Bump PORTREVISION
- Pet portlint

PR:		197667
Submitted by:	fbsd@opal.com
MFH:		2015Q2
2015-05-17 07:24:56 +00:00

101 lines
3.3 KiB
Makefile

# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org>
# $FreeBSD$
PORTNAME= xmltv
PORTVERSION= 0.5.65
PORTREVISION= 3
CATEGORIES= textproc perl5
MASTER_SITES= SF
PKGNAMEPREFIX= p5-
MAINTAINER= multimedia@FreeBSD.org
COMMENT= Set of programs to process TV (tvguide) listings in XML format
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
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>=0:${PORTSDIR}/www/p5-CGI \
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 \
p5-File-Slurp>=0:${PORTSDIR}/devel/p5-File-Slurp \
p5-DateTime>=0:${PORTSDIR}/devel/p5-DateTime \
p5-DateTime-Format-Strptime>=0:${PORTSDIR}/devel/p5-DateTime-Format-Strptime \
p5-JSON>=0:${PORTSDIR}/converters/p5-JSON
BUILD_DEPENDS= ${XMLTV_DEPENDS}
RUN_DEPENDS= ${XMLTV_DEPENDS}
USES= perl5 tar:bzip2
USE_PERL5= configure
DOCSDIR= ${PREFIX}/share/doc/${PORTNAME}-${PORTVERSION}
OPTIONS_DEFINE= DOCS
DOCS_EXTRA_PATCHES_OFF= ${FILESDIR}/extra-noportdocs-patch-Makefile.PL
PORTDOCS= COPYING \
QuickStart \
README \
README.tv_check \
README.win32 \
tv_check_doc.html \
tv_check_doc.jpg
# 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} ${STAGEDIR}${PREFIX}/${CGIDIR}
${INSTALL_SCRIPT} ${WRKSRC}/choose/tv_pick/tv_pick_cgi \
${STAGEDIR}${PREFIX}/${CGIDIR}/tv_pick.cgi
.include <bsd.port.mk>