Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 113782

Summary: xmltv-0.5.41 version bump + ebuild (almost finished)
Product: Gentoo Linux Reporter: Matteo Azzali (RETIRED) <mattepiu>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: enhancement    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: working ebuild with use flags

Description Matteo Azzali (RETIRED) gentoo-dev 2005-11-28 05:07:02 UTC
New version of xmltv found in sourceforge.net, ebuild with use flags working
for foreign users (italy works....). I'm NOT sure all the dependancies are
respected for newer grabbers (au br ch is ee re), also spanish_digital was
removed by the package.
Enjoy!

-------------------------------------------------------------------------------
xmltv-0.5.41.ebuild
-------------------------------------------------------------------------------
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/xmltv/xmltv-0.5.39.ebuild,v 1.5
2005/05/29 20:35:49 cardoe Exp $

inherit perl-module

DESCRIPTION="Set of utilities to manage TV listings stored in the XMLTV format."
HOMEPAGE="http://membled.com/work/apps/xmltv/"
SRC_URI="mirror://sourceforge.net/xmltv/${P}.tar.bz2"
IUSE="au br ch uk_rt uk_bleb uk_be is it na_dd na_icons fi es ee re nl nl_wolf
huro dk jp de_tvtoday se se_swedb fr no pt za tv_check tv_pick_cgi"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64 ~ppc"
PREFIX="/usr"

# NOTE: Customization is now done via USE flags.  Simply remove the
#      'tv_grab' portion from the grabber you want to install.
#
#  tv_grab_huro        Alternate Hungarian and Romania grabber      
#  tv_grab_uk_rt:      Alternate Britain listings grabber
#  tv_grab_uk_bleb:    Fast alternative grabber for the UK
#  tv_grab_na_icons:   Downloads icons from Zap2IT
#  tv_grab_na_dd:      Alternate American listings grabber
#  tv_grab_nz:         New Zealand listings grabber
#  tv_grab_fi:         Finland listings grabber
#  tv_grab_es:         Spain listings grabber
#  tv_grab_es_digital: Spain digital satellite listings grabber
#  tv_grab_nl:         Netherlands listings grabber
#  tv_grab_nl_wolf:    Alternate Netherlands listings grabber
#  tv_grab_dk:         Denmark listings grabber
#  tv_grab_jp:         Japan listings grabber
#  tv_grab_de_tvtoday: Germany listings grabber
#  tv_grab_se:         Sweden listings grabber
#  tv_grab_se_swedb:   New grabber for Sweden
#  tv_grab_fr:         France listings grabber
#  tv_check:           Graphical front-end for listings data
#  tv_pick_cgi:        CGI front-end for listings data

RDEPEND=">=dev-perl/libwww-perl-5.65
   >=dev-perl/XML-Parser-2.34
   >=dev-perl/XML-Twig-3.10
   >=dev-perl/DateManip-5.42
   >=dev-perl/XML-Writer-0.4.6
   perl-core/Memoize
   perl-core/Storable
   dev-perl/Lingua-EN-Numbers-Ordinate
   >=dev-perl/Lingua-Preferred-0.2.4
   >=dev-perl/Term-ProgressBar-2.03
   dev-perl/Compress-Zlib
   dev-perl/Unicode-String
   dev-perl/TermReadKey
   >=dev-perl/Class-MethodMaker-2
   >=dev-lang/perl-5.6.1"

DEPEND="${RDEPEND}
   >=sys-apps/portage-2.0.50-r1
   >=sys-apps/sed-4
   de_tvtoday? ( >=dev-perl/HTML-Parser-3.34 dev-perl/HTML-Tree )
   dk? ( dev-perl/HTML-Tree )
   es? ( dev-perl/HTML-Tree )
   fi? ( dev-perl/HTML-Tree )
   fr? ( >=dev-perl/HTML-Parser-3.34 dev-perl/HTML-Tree )
   huro? ( dev-perl/HTML-Tree )
   jp? ( dev-perl/HTML-Tree dev-perl/Text-Kakasi )
   na_dd? ( dev-perl/SOAP-Lite dev-perl/TermReadKey )
   na_icons? ( dev-perl/HTML-TableExtract >=dev-perl/WWW-Mechanize-1.02 )
   nl? ( dev-perl/HTML-Tree )
   nl_wolf? ( dev-perl/HTML-Tree )
   no? ( >=dev-perl/HTML-Parser-3.34 dev-perl/HTML-TableExtract
dev-perl/HTML-LinkExtractor )
   pt? ( dev-perl/HTML-Tree )
   se? ( dev-perl/XML-LibXML )
   se_swedb? ( dev-perl/HTTP-Cache-Transparent )
   tv_check? ( dev-perl/perl-tk dev-perl/Tk-TableMatrix )
   tv_pick_cgi? ( perl-core/CGI )
   uk_bleb? ( dev-perl/Archive-Zip dev-perl/IO-stringy )
   uk_rt? ( >=dev-perl/HTML-Parser-3.34 )
   "

make_config() {
   # Never except default configuration
   echo "no"

        # Enable Australian
        use au && echo "yes" || echo "no"
        # Enable Brazil
        use br && echo "yes" || echo "no"
        # Enable Switzerland
        use ch && echo "yes" || echo "no"
   # Enable Alternate Brittain
   use uk_rt && echo "yes" || echo "no"
   # Enable Alternate Brittain 2
   use uk_bleb && echo "yes" || echo "no"
   # Enable Belgium and Luxemburg
   use uk_be && echo "yes" || echo "no"
        #Enable Iceland
        use is && echo "yes" || echo "no"
   # Enable Italy
   use it && echo "yes" || echo "no"
   # Enable North America using DataDirect
   use na_dd && echo "yes" || echo "no"
   # Enable North America channel icons
   use na_icons  && echo "yes" || echo "no"
   # Enable Finland
   use fi  && echo "yes" || echo "no"
   # Enable Spain
   use es  && echo "yes" || echo "no"
   # Enable Spain Digital
        # use es_digital && echo "yes" || echo "no"
   # Enable Netherlands
   use nl  && echo "yes" || echo "no"
   # Enable Alternate Netherlands
   use nl_wolf  && echo "yes" || echo "no"
   # Enable Hungary and Romania
   use huro  && echo "yes" || echo "no"
   # Enable Denmark
   use dk && echo "yes" || echo "no"
   # Enable Japan
   use jp  && echo "yes" || echo "no"
   # Enable Germany
   use de_tvtoday && echo "yes" || echo "no"
   # Enable Sweden
   use se  && echo "yes" || echo "no"
   # Enable Sweden 2
   use se_swedb  && echo "yes" || echo "no"
   # Enable France
   use fr  && echo "yes" || echo "no"
   # Enable Norway
   use no  && echo "yes" || echo "no"
   # Enable Portugal
   use pt  && echo "yes" || echo "no"
   # Enable South Africa
   use za  && echo "yes" || echo "no"
   # Enable GUI checking.
   use tv_check && echo "yes" || echo "no"
   # Enable CGI support
   use tv_pick_cgi && echo "yes" || echo "no"
        # Enable Estonia
        use ee && echo "yes" || echo "no"
        #Enable Reunion Island
        use re && echo "yes" || echo "no"
}

src_compile() {
   make_config | perl Makefile.PL PREFIX=/usr
}

src_install() {
        make
        make test
        make DESTDIR=${D} install
#perl-module_src_install

   for i in `grep -rl "${D}" "${D}"` ; do
      sed -e "s:${D}::g" -i "${i}"
   done

   use tv_pick_cgi && {
      dobin choose/tv_pick/tv_pick_cgi
   }
}

pkg_postinst() {
   use tv_pick_cgi && {
      einfo "To use tv_pick_cgi, please link it from /usr/bin/tv_pick_cgi"
      einfo "to where the ScriptAlias directive is configured."
   }
} 


Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Matteo Azzali (RETIRED) gentoo-dev 2005-11-28 05:08:07 UTC
Created attachment 73719 [details]
working ebuild with use flags
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2005-11-28 08:16:02 UTC

*** This bug has been marked as a duplicate of 95166 ***