From 3e84456d0e9ec790ccd9350f80ea60af92eb7d68 Mon Sep 17 00:00:00 2001 From: Mario Sergio Fujikawa Ferreira Date: Mon, 4 Nov 2002 02:57:48 +0000 Subject: New port p5-xmltv version 0.5.2: Set of programs to process TV (tvguide) listings in XML format --- textproc/Makefile | 1 + textproc/p5-xmltv/Makefile | 80 +++++++++++++++++++++++++++++++++++++++++++++ textproc/p5-xmltv/distinfo | 1 + textproc/p5-xmltv/pkg-descr | 12 +++++++ textproc/p5-xmltv/pkg-plist | 57 ++++++++++++++++++++++++++++++++ 5 files changed, 151 insertions(+) create mode 100644 textproc/p5-xmltv/Makefile create mode 100644 textproc/p5-xmltv/distinfo create mode 100644 textproc/p5-xmltv/pkg-descr create mode 100644 textproc/p5-xmltv/pkg-plist diff --git a/textproc/Makefile b/textproc/Makefile index dbc2f4394c8b..c08ba7b43c3c 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -269,6 +269,7 @@ SUBDIR += p5-dTemplate SUBDIR += p5-libxml SUBDIR += p5-podlators + SUBDIR += p5-xmltv SUBDIR += par SUBDIR += pardiff SUBDIR += pdftohtml diff --git a/textproc/p5-xmltv/Makefile b/textproc/p5-xmltv/Makefile new file mode 100644 index 000000000000..e3cfe1d54b4b --- /dev/null +++ b/textproc/p5-xmltv/Makefile @@ -0,0 +1,80 @@ +# New ports collection makefile for: xmltv +# Date created: Mon Nov 4 02:56:34 UTC 2002 +# Whom: Mario Sergio Fujikawa Ferreira +# +# $FreeBSD$ +# + +PORTNAME= xmltv +PORTVERSION= 0.5.2 +CATEGORIES= textproc perl5 +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= xmltv +PKGNAMEPREFIX= p5- + +MAINTAINER= lioux@FreeBSD.org + +BUILD_DEPENDS= \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Date/Manip.pm:${PORTSDIR}/devel/p5-Date-Manip \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/Simple.pm:${PORTSDIR}/textproc/p5-XML-Simple \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/Twig.pm:${PORTSDIR}/textproc/p5-XML-Twig \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/XML/Writer.pm:${PORTSDIR}/textproc/p5-XML-Writer \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/CGI.pm:${PORTSDIR}/www/p5-CGI.pm \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/HTML/Parser.pm:${PORTSDIR}/www/p5-HTML-Parser \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/HTML/TableExtract.pm:${PORTSDIR}/www/p5-HTML-TableExtract \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/LWP.pm:${PORTSDIR}/www/p5-libwww \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Tk/TableMatrix.pm:${PORTSDIR}/x11-toolkits/p5-Tk-TableMatrix +BUILD_DEPENDS+= \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Lingua/Preferred.pm:${PORTSDIR}/textproc/p5-Lingua-Preferred \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Memoize.pm:${PORTSDIR}/devel/p5-Memoize \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Compress/Zlib.pm:${PORTSDIR}/archivers/p5-Compress-Zlib \ + ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/Unicode/CharName.pm:${PORTSDIR}/converters/p5-Unicode-String +RUN_DEPENDS= ${BUILD_DEPENDS} + +PORTCOMMENT="Set of programs to process TV (tvguide) listings in XML format" + +IS_INTERACTIVE= yes +USE_REINPLACE= yes +PERL_CONFIGURE= yes +PLIST_SUB= VERSION="${PORTVERSION}" + +MAN1= tv_cat.1 tv_extractinfo_en.1 tv_grab_de.1 tv_grab_na.1 \ + tv_grab_sn.1 tv_grab_uk.1 tv_grab_uk_rt.1 tv_grep.1 tv_sort.1 \ + tv_to_latex.1 +MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} +MAN3= XMLTV.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: + @${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} + +pre-configure: + @${ECHO_MSG} + @${ECHO_MSG} '====> Please answer yes to all configure questions' + @${ECHO_MSG} '====> The port is assuming that you have answered yes to all of them' + @${ECHO_MSG} + +post-install: + @${MKDIR} ${PREFIX}/${CGIDIR} + @${INSTALL_SCRIPT} ${WRKSRC}/choose/tv_pick/tv_pick_cgi ${PREFIX}/${CGIDIR}/tv_pick.cgi +.if defined(PACKAGE_BUILDING) + @${ECHO_CMD} "@unexec rmdir -p %D/${CGIDIR} 2>/dev/null || true" >> ${TMPPLIST} +.endif + +.include diff --git a/textproc/p5-xmltv/distinfo b/textproc/p5-xmltv/distinfo new file mode 100644 index 000000000000..a5cd100d78e5 --- /dev/null +++ b/textproc/p5-xmltv/distinfo @@ -0,0 +1 @@ +MD5 (xmltv-0.5.2.tar.gz) = fb2a2fd7a68149846da008dcec3bfc40 diff --git a/textproc/p5-xmltv/pkg-descr b/textproc/p5-xmltv/pkg-descr new file mode 100644 index 000000000000..2f71323e161a --- /dev/null +++ b/textproc/p5-xmltv/pkg-descr @@ -0,0 +1,12 @@ +[ excerpt from developer's website ] + +XMLTV is a set of programs to process TV (tvguide) listings and +manage your TV viewing. It stores the listings in an XML-based +format. + +The idea is to separate out the backend (getting the listings) from +the frontend (displaying them for the user), and to implement useful +operations like picking out your favourite programmes as filters +that read and write XML documents. + +WWW: http://xmltv.sourceforge.net/ diff --git a/textproc/p5-xmltv/pkg-plist b/textproc/p5-xmltv/pkg-plist new file mode 100644 index 000000000000..9ee4c8ece8fb --- /dev/null +++ b/textproc/p5-xmltv/pkg-plist @@ -0,0 +1,57 @@ +%%CGIDIR%%/tv_pick.cgi +bin/tv_cat +bin/tv_check +bin/tv_extractinfo_en +bin/tv_grab_de +bin/tv_grab_na +bin/tv_grab_sn +bin/tv_grab_uk +bin/tv_grab_uk_rt +bin/tv_grep +bin/tv_sort +bin/tv_to_latex +lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/XMLTV/.packlist +lib/perl5/site_perl/%%PERL_VER%%/XMLTV.pm +lib/perl5/site_perl/%%PERL_VER%%/XMLTV/Ananova_Channel.pm +lib/perl5/site_perl/%%PERL_VER%%/XMLTV/Ask.pm +lib/perl5/site_perl/%%PERL_VER%%/XMLTV/Clumps.pm +lib/perl5/site_perl/%%PERL_VER%%/XMLTV/Memoize.pm +lib/perl5/site_perl/%%PERL_VER%%/XMLTV/TZ.pm +lib/perl5/site_perl/%%PERL_VER%%/XMLTV/UK_TZ.pm +lib/perl5/site_perl/%%PERL_VER%%/XMLTV/Usage.pm +lib/perl5/site_perl/%%PERL_VER%%/XMLTV/ZapListings.pm +share/doc/xmltv-%%VERSION%%/COPYING +share/doc/xmltv-%%VERSION%%/QuickStart +share/doc/xmltv-%%VERSION%%/README +share/doc/xmltv-%%VERSION%%/README.tv_check +share/doc/xmltv-%%VERSION%%/tv_check_doc.html +share/doc/xmltv-%%VERSION%%/tv_check_doc.jpg +share/xmltv/tv_grab_uk/channel_ids +share/xmltv/tv_grab_uk/channel_pkgs/adult +share/xmltv/tv_grab_uk/channel_pkgs/arts +share/xmltv/tv_grab_uk/channel_pkgs/asia +share/xmltv/tv_grab_uk/channel_pkgs/children +share/xmltv/tv_grab_uk/channel_pkgs/classics +share/xmltv/tv_grab_uk/channel_pkgs/comedy +share/xmltv/tv_grab_uk/channel_pkgs/entertainment +share/xmltv/tv_grab_uk/channel_pkgs/factual +share/xmltv/tv_grab_uk/channel_pkgs/film +share/xmltv/tv_grab_uk/channel_pkgs/gratis +share/xmltv/tv_grab_uk/channel_pkgs/lifestyle +share/xmltv/tv_grab_uk/channel_pkgs/misc +share/xmltv/tv_grab_uk/channel_pkgs/music +share/xmltv/tv_grab_uk/channel_pkgs/musicchoice +share/xmltv/tv_grab_uk/channel_pkgs/news +share/xmltv/tv_grab_uk/channel_pkgs/religion +share/xmltv/tv_grab_uk/channel_pkgs/scifi +share/xmltv/tv_grab_uk/channel_pkgs/shop +share/xmltv/tv_grab_uk/channel_pkgs/sport +share/xmltv/tv_grab_uk/channel_pkgs/travel +share/xmltv/tv_grab_uk_rt/channel_ids +@dirrm share/xmltv/tv_grab_uk_rt +@dirrm share/xmltv/tv_grab_uk/channel_pkgs +@dirrm share/xmltv/tv_grab_uk +@dirrm share/xmltv +@dirrm share/doc/xmltv-%%VERSION%% +@dirrm lib/perl5/site_perl/%%PERL_VER%%/XMLTV +@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/XMLTV -- cgit v1.2.3