# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit perl-module IUSE="" DESCRIPTION="Set of utilities to manage TV listings stored in the XMLTV format" HOMEPAGE="http://membled.com/work/apps/xmltv/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="x86" # NOTE: you can customize the xmltv installation by # defining a XMLTV_OPTS variable which contains # a space-separated list of optional features. # # none: Don't enable any of the features below # tv_check: Graphical front-end for listings data # tv_pick_cgi: CGI front-end for listings data # tv_grap_na: North America listings grabber # tv_grab_sn: Sweden and Norway listings grabber # tv_grab_nz: New Zealand listings grabber # tv_grab_fi: Finland listings grabber # tv_grab_es: Spain listings grabber # tv_grab_nl: Netherlands listings grabber # tv_grab_nl_wolf: Alternate Netherlands listings grabber # NOTE: tv_grab_uk, tv_grab_de, tv_grab_it are always built # so if you just want either of those set your # XMLTV_OPTS to none. # EXAMPLES: # enable just North American, UK, IT, and DE grabbers # XMLTV_OPTS="tv_grab_na" # # enable graphical front-end, New Zealand, UK, IT, and DE grabbers # XMLTV_OPTS="tv_check tv_grab_nz" # # just UK, IT, and DE grabbers and no other bells or whistles # XMLTV_OPTS="none" DEPEND=">=sys-apps/sed-4 dev-perl/libwww-perl dev-perl/XML-Twig dev-perl/XML-Writer dev-perl/DateManip dev-perl/Memoize dev-perl/Term-ProgressBar dev-perl/Compress-Zlib dev-perl/Lingua-EN-Numbers-Ordinate dev-perl/Lingua-Preferred dev-perl/Unicode-String" # for tv_check DEPEND="${DEPEND} dev-perl/perl-tk dev-perl/Tk-TableMatrix dev-perl/XML-Simple" # for tv_grab_na DEPEND="${DEPEND} dev-perl/HTML-Parser" # for tv_grab_sn DEPEND="${DEPEND} >=dev-perl/HTML-TableExtract-1.0.8" # for tv_grab_nz DEPEND="${DEPEND} >=dev-lang/python-1.5.1" # for tv_grab_fi tv_grab_es tv_grab_nl tv_grab_nl_wolf DEPEND="${DEPEND} dev-perl/HTML-Tree" ### disabled until portage dependecy checker has notions of things ### other then incrementals that are in /etc/make.conf ### 6/13/2003 Max Kalika #[ -z "${XMLTV_OPTS}" -o "`has tv_check ${XMLTV_OPTS}`" ] \ # && DEPEND="${DEPEND} dev-perl/perl-tk dev-perl/Tk-TableMatrix dev-perl/XML-Simple" #[ -z "${XMLTV_OPTS}" -o "`has tv_grab_na ${XMLTV_OPTS}`" ] \ # && DEPEND="${DEPEND} dev-perl/HTML-Parser" #[ -z "${XMLTV_OPTS}" -o "`has tv_grab_sn ${XMLTV_OPTS}`" ] \ # && DEPEND="${DEPEND} >=dev-perl/HTML-TableExtract-1.0.8" #[ -z "${XMLTV_OPTS}" -o "`has tv_grab_nz ${XMLTV_OPTS}`" ] \ # && DEPEND="${DEPEND} >=dev-lang/python-1.5.1" #[ -z "${XMLTV_OPTS}" -o "`has tv_grab_fi ${XMLTV_OPTS}`" ] \ # && DEPEND="${DEPEND} dev-perl/HTML-Tree" #[ -z "${XMLTV_OPTS}" -o "`has tv_grab_es ${XMLTV_OPTS}`" ] \ # && DEPEND="${DEPEND} dev-perl/HTML-Tree" #[ -z "${XMLTV_OPTS}" -o "`has tv_grab_nl ${XMLTV_OPTS}`" ] \ # && DEPEND="${DEPEND} dev-perl/HTML-Tree" #[ -z "${XMLTV_OPTS}" -o "`has tv_grab_nl_wolf ${XMLTV_OPTS}`" ] \ # && DEPEND="${DEPEND} dev-perl/HTML-Tree" make_config() { # Enable GUI checking. [ -z "${XMLTV_OPTS}" -o "`has tv_check ${XMLTV_OPTS}`" ] \ && echo "yes" || echo "no" # Enable CGI support [ -z "${XMLTV_OPTS}" -o "`has tv_pick_cgi ${XMLTV_OPTS}`" ] \ && echo "yes" || echo "no" # Enable North America [ -z "${XMLTV_OPTS}" -o "`has tv_grab_na ${XMLTV_OPTS}`" ] \ && echo "yes" || echo "no" # Enable Sweden and Norway [ -z "${XMLTV_OPTS}" -o "`has tv_grab_sn ${XMLTV_OPTS}`" ] \ && echo "yes" || echo "no" # Enable New Zealand [ -z "${XMLTV_OPTS}" -o "`has tv_grab_nz ${XMLTV_OPTS}`" ] \ && echo "yes" || echo "no" # Enable Finland [ -z "${XMLTV_OPTS}" -o "`has tv_grab_fi ${XMLTV_OPTS}`" ] \ && echo "yes" || echo "no" # Enable Spain [ -z "${XMLTV_OPTS}" -o "`has tv_grab_es ${XMLTV_OPTS}`" ] \ && echo "yes" || echo "no" # Enable Netherlands [ -z "${XMLTV_OPTS}" -o "`has tv_grab_nl ${XMLTV_OPTS}`" ] \ && echo "yes" || echo "no" # Enable Alternate Netherlands [ -z "${XMLTV_OPTS}" -o "`has tv_grab_nl_wolf ${XMLTV_OPTS}`" ] \ && echo "yes" || echo "no" } src_compile() { make_config | perl-module_src_compile } src_install() { perl-module_src_install for i in `grep -rl "${D}" "${D}"` ; do sed -e "s:${D}::g" -i "${i}" done if [ -z "${XMLTV_OPTS}" -o "`has tv_pick_cgi ${XMLTV_OPTS}`" ] ; then dobin choose/tv_pick/tv_pick_cgi einfo einfo "To use tv_pick_cgi, please link it from /usr/bin/tv_pick_cgi" einfo "to where the ScriptAlias directive is configured." einfo fi }