ChangeLog

# ChangeLog for media-tv/xmltv
# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/xmltv/ChangeLog,v 1.79 2008/03/10 14:56:17 beandog Exp $

10 Mar 2008; Steve Dibb xmltv-0.5.50.ebuild:
amd64 stable, bug 205403

24 Feb 2008; Matteo Azzali xmltv-0.5.50.ebuild:
Added two deps fo na_dtv, as for bug #205403 , sorry.

06 Feb 2008; nixnut xmltv-0.5.50.ebuild:
stable on ppc wrt bug #205403

04 Feb 2008; Markus Meier xmltv-0.5.50.ebuild:
x86 stable, bug #205403

*xmltv-0.5.50 (08 Dec 2007)

08 Dec 2007; Matteo Azzali +xmltv-0.5.50.ebuild:
Version Bump.

*xmltv-0.5.49 (22 Oct 2007)

22 Oct 2007; Matteo Azzali xmltv-0.5.44.ebuild,
-xmltv-0.5.45.ebuild, -xmltv-0.5.47.ebuild, +xmltv-0.5.49.ebuild:
Version Bump and some cleaning.

06 Oct 2007; Tobias Scherbaum xmltv-0.5.46.ebuild:
ppc stable, bug #190238

*xmltv-0.5.48 (26 Aug 2007)

26 Aug 2007; Matteo Azzali +xmltv-0.5.48.ebuild:
Version bump.

25 Aug 2007; Steve Dibb xmltv-0.5.45.ebuild,
xmltv-0.5.46.ebuild:
amd64 stable

*xmltv-0.5.47 (12 Aug 2007)

12 Aug 2007; Matteo Azzali +xmltv-0.5.47.ebuild:
Version Bump

*xmltv-0.5.46 (16 Jul 2007)

16 Jul 2007; Matteo Azzali +xmltv-0.5.46.ebuild:
Version bump and fixing bug #183536 , thanks to Francisco Javier.

01 May 2007; Marius Mauch xmltv-0.5.44.ebuild,
xmltv-0.5.45.ebuild:
Replacing einfo with elog

26 Mar 2007; Alec Warner xmltv-0.5.44.ebuild,
xmltv-0.5.45.ebuild:
Remove dependency on portage: ref bug 162516

12 Mar 2007; Matteo Azzali
+files/xmltv-na_dd-xmltwig.patch, xmltv-0.5.44.ebuild,
xmltv-0.5.45.ebuild:
Fixed na_dd script as per bug #170535 ,na_dd users please re-emerge xmltv.

*xmltv-0.5.45 (23 Dec 2006)

23 Dec 2006; Matteo Azzali +xmltv-0.5.45.ebuild:
Version bump, bug #158545

10 Dec 2006; Matteo Azzali xmltv-0.5.44.ebuild:
Fixed perl dependancies with new virtuals, as per bug #157663 .

21 Sep 2006; xmltv-0.5.44.ebuild:
stable on amd64

03 Sep 2006; Matteo Azzali
-files/tv_grab_de_tvtoday-0.5.43.diff, -xmltv-0.5.43-r4.ebuild:
Removed old ebuild

03 Sep 2006; Matteo Azzali xmltv-0.5.44.ebuild:
Added se_swedb dependancies and support for pm_echovar as per bug
#146020,thanks to Jonas Jonsson

28 Jul 2006; Joshua Jackson xmltv-0.5.44.ebuild:
Stable x86;bug #140447

16 Jul 2006; Matteo Azzali xmltv-0.5.43-r4.ebuild,
xmltv-0.5.44.ebuild:
removed obsolete se grabber dependancy line.

15 Jul 2006; Matteo Azzali -xmltv-0.5.34.ebuild,
-xmltv-0.5.37-r1.ebuild, -xmltv-0.5.39.ebuild:
removed obsoleted ebuilds, for stabilization of the new ones see bug #140447.

13 Jul 2006; Jason Wever xmltv-0.5.44.ebuild:
Added ~sparc keyword wrt bug #139336.

05 Jul 2006; Matteo Azzali xmltv-0.5.44.ebuild:
Corrected na_icons flag to be conditioned by na_dd flag.

03 Jul 2006; Matteo Azzali xmltv-0.5.44.ebuild:
Fixed XML::Write dependancy, bug #138838 , thanks to Pierre Cassimans

01 Jul 2006; Michael Cummings xmltv-0.5.44.ebuild:
Keyworded ~amd64

01 Jul 2006; Michael Cummings
xmltv-0.5.43-r4.ebuild:
Bug 135775, keyworded ~amd64

*xmltv-0.5.44 (01 Jul 2006)

01 Jul 2006; Matteo Azzali +xmltv-0.5.44.ebuild:
Version bump.

01 Jul 2006; Matteo Azzali ChangeLog:
Fixed ebuild for dying on errors.

28 Jun 2006; Matteo Azzali xmltv-0.5.43-r4.ebuild:
fixed use flag for Belgium users.

11 Jun 2006; Matteo Azzali xmltv-0.5.43-r4.ebuild:
Cleaned the ebuild and use of the perl-module functions, thanks to
Anders Hellgren, bug #95166.

07 Jun 2006; xmltv-0.5.43-r4.ebuild:
removed na_dd special MethodMaker dep as per bug #95166.

06 Jun 2006; Matteo Azzali +xmltv-0.5.43-r4:
Implemented new version based on use flag as per topic in gentoo-dev. bug
#95166

1 Jun 2006; Matteo Azzali xmltv-0.5.43-r3.ebuild:
Masked cause XMLTV_OPTS is not accessible anymore. I'll need to mail
gentoo-dev and wait 3 days at least to unmask, wish me luck..

1 Jun 2006; Matteo Azzali xmltv-0.5.43-r3.ebuild:
Added Unicode-UTF8simple dep for pt users, thanks to mcummings.

1 Jun 2006; Matteo Azzali xmltv-0.5.43-r3.ebuild:
Changed de_tvtoday patch and changed ebuild to patch only when needed.

1 Jun 2006; Matteo Azzali +xmltv-0.5.43-r3.ebuild,
Bumped to a more updated, useful verion. bug #95166 and #116612 and #94101

13 Feb 2006; Michael Cummings xmltv-0.5.34.ebuild,
xmltv-0.5.37-r1.ebuild, xmltv-0.5.39.ebuild:
Virtuals for perl-core

29 May 2005; Doug Goldstein xmltv-0.5.39.ebuild:
Lock down the version of Class-MethodMaker to under 2.0 since it
apparently doesn't work. There is a report that pre-2.0.5 works as well,
but none of those exist in the tree.

25 May 2005; Michael Cummings xmltv-0.5.37-r1.ebuild:
dev-perl/Storable => perl-core/Storable migration

25 May 2005; Michael Cummings xmltv-0.5.39.ebuild:
dev-perl/Storable => perl-core/Storable migration

25 May 2005; Michael Cummings xmltv-0.5.34.ebuild:
dev-perl/Storable => perl-core/Storable migration

25 May 2005; Michael Cummings xmltv-0.5.37-r1.ebuild:
dev-perl/Memoize => perl-core/Memoize migration

25 May 2005; Michael Cummings xmltv-0.5.39.ebuild:
dev-perl/Memoize => perl-core/Memoize migration

25 May 2005; Michael Cummings xmltv-0.5.34.ebuild:
dev-perl/Memoize => perl-core/Memoize migration

24 May 2005; Michael Cummings xmltv-0.5.34.ebuild,
xmltv-0.5.37-r1.ebuild, xmltv-0.5.39.ebuild:
dev-perl/CGI => perl-core/CGI

*xmltv-0.5.39 (12 May 2005)

12 May 2005; +xmltv-0.5.39.ebuild:
let's hope this rev bump fixes bug #91439. nuke old ebuilds too

04 May 2005; David Holm xmltv-0.5.37-r1.ebuild:
Readded to ~ppc. Please don't remove it without filing a proper bug report.

*xmltv-0.5.37-r1 (25 Jan 2005)

25 Jan 2005; Doug Goldstein +xmltv-0.5.37-r1.ebuild:
bump to fix depends, bug #63361

21 Jan 2005; Doug Goldstein -xmltv-0.5.23.ebuild:
remove outdated rev

*xmltv-0.5.37 (01 Jan 2005)

01 Jan 2005; Daniel Ahlberg xmltv-0.5.37.ebuild:
Version bump, closing #69314 and #72801.

*xmltv-0.5.35 (29 Sep 2004)

29 Sep 2004; Daniel Ahlberg xmltv-0.5.35.ebuild:
Version bump. Upstream fixed uk_rt, added uk_bleb and disabled pt. Closing
#65658.

*xmltv-0.5.34-r1 (11 Sep 2004)

11 Sep 2004; Daniel Ahlberg xmltv-0.5.34-r1.ebuild:
Changed the dependency creation system, should close #63361.

25 Aug 2004; Daniel Ahlberg xmltv-0.5.34.ebuild:
Change dependency creation to newdepend so that it actually set the correct
dependencies.

13 Jul 2004; Daniel Ahlberg xmltv-0.5.29.ebuild,
xmltv-0.5.30.ebuild, xmltv-0.5.31.ebuild, xmltv-0.5.32.ebuild,
xmltv-0.5.33.ebuild, xmltv-0.5.34.ebuild:
Stable on x86 and amd64, removed a bunch of old ebuilds. Closing #56748.

04 Jun 2004; David Holm xmltv-0.5.34.ebuild:
Added to ~ppc, again. Stop dropping our keywords!

*xmltv-0.5.34 (24 May 2004)

24 May 2004; Daniel Ahlberg xmltv-0.5.34.ebuild:
Version bump, fixed config and dependencies for all grabbers.

*xmltv-0.5.33 (16 May 2004)

16 May 2004; Daniel Ahlberg xmltv-0.5.33.ebuild:
Version bump.

*xmltv-0.5.32 (17 Apr 2004)

17 Apr 2004; Daniel Ahlberg xmltv-0.5.32.ebuild:
Version bump.

*xmltv-0.5.31 (22 Mar 2004)

22 Mar 2004; Daniel Ahlberg xmltv-0.5.31.ebuild:
Version bump.

*xmltv-0.5.30 (09 Mar 2004)

09 Mar 2004; Max Kalika xmltv-0.5.30.ebuild:
Bump to version 0.5.30. Clean up dependencies. Add support for 4 extra
grabbers.

09 Mar 2004; David Holm xmltv-0.5.29.ebuild:
Added to ~ppc.

*xmltv-0.5.29 (07 Mar 2004)

07 Mar 2004; Martin Holzer xmltv-0.5.28.ebuild,
xmltv-0.5.29.ebuild:
VErsion bumped.

07 Mar 2004; Jon Portnoy xmltv-0.5.28.ebuild :
AMD64 keywords.

*xmltv-0.5.28 (07 Feb 2004)

07 Feb 2004; Max Kalika xmltv-0.5.28.ebuild:
Bump to version 0.5.28. This one removes the regular uk grabber. The
alternate, uk_rt, is still available.

*xmltv-0.5.27 (16 Jan 2004)

16 Jan 2004; Max Kalika xmltv-0.5.27.ebuild:
Bump to version 0.5.27.

*xmltv-0.5.25 (11 Dec 2003)

11 Dec 2003; Max Kalika xmltv-0.5.25.ebuild:
Disable tv_grab_sn checking, it is disabled in this release.

*xmltv-0.5.23 (02 Dec 2003)

02 Dec 2003; xmltv-0.5.14-r1.ebuild, xmltv-0.5.16.ebuild,
xmltv-0.5.17.ebuild, xmltv-0.5.18.ebuild, xmltv-0.5.19.ebuild,
xmltv-0.5.20.ebuild, xmltv-0.5.21.ebuild, xmltv-0.5.23.ebuild,
xmltv-0.5.24.ebuild, files/xmltv-0.5.14-code_500.patch,
files/xmltv-0.5.19-newer-MM.patch:
Bump to new stable version 0.5.23 and new experimental version 0.5.24 which
requires new XML-Parser-2.34. Cleanup no-longer working versions.

*xmltv-0.5.21 (08 Nov 2003)

08 Nov 2003; xmltv-0.5.20.ebuild, xmltv-0.5.21.ebuild:
Bump to version 0.5.21 and mark stable on x86.

*xmltv-0.5.20 (03 Nov 2003)

03 Nov 2003; Max Kalika xmltv-0.5.14-r1.ebuild,
xmltv-0.5.16.ebuild, xmltv-0.5.17.ebuild, xmltv-0.5.18.ebuild,
xmltv-0.5.19.ebuild, xmltv-0.5.20.ebuild:
Bump to version 0.5.20. Disable tv_grab_de checking -- disabled upstream. Fix
copy/paste error in all.

12 Oct 2003; Max Kalika xmltv-0.5.19.ebuild,
files/xmltv-0.5.19-newer-MM.patch:
Fix sandbox problems with newer perl/MakeMaker

*xmltv-0.5.19 (01 Oct 2003)

01 Oct 2003; Max Kalika xmltv-0.5.18.ebuild,
xmltv-0.5.19.ebuild:
Bump to version 0.5.19 and mark stable.

*xmltv-0.5.18 (16 Sep 2003)

16 Sep 2003; Max Kalika xmltv-0.5.18.ebuild:
Bump to version 0.5.18 and mark <= 0.5.17 stable.

*xmltv-0.5.17 (02 Sep 2003)

02 Sep 2003; Max Kalika metadata.xml, xmltv-0.5.17.ebuild:
Bump version to 0.5.17 and add metadata.

*xmltv-0.5.14-r1 (19 Aug 2003)

19 Aug 2003; Max Kalika xmltv-0.5.14-r1.ebuild,
xmltv-0.5.14.ebuild, files/xmltv-0.5.14-code_500.patch:
Add patch to handle 500 error codes returned by zap2it. Thanks to Mark Lopes
for the submission. Fixes bug #26515.

*xmltv-0.5.16 (18 Aug 2003)

18 Aug 2003; Max Kalika xmltv-0.5.16.ebuild:
Bump version to 0.5.16.

03 Jul 2003; Max Kalika xmltv-0.5.11.ebuild,
xmltv-0.5.12.ebuild, xmltv-0.5.14.ebuild:
Change DateManip dependency to >= 5.42 which is officially out today and seems
to work with xmltv.

*xmltv-0.5.14 (01 Jul 2003)

01 Jul 2003; Max Kalika xmltv-0.5.13.ebuild,
xmltv-0.5.14.ebuild:
Bump version to 0.5.14 and drop version 0.5.13 as it got pulled upstream.

*xmltv-0.5.13 (01 Jul 2003)

01 Jul 2003; Max Kalika xmltv-0.5.13.ebuild:
Bump version to 0.5.13.

*xmltv-0.5.12 (29 Jun 2003)

29 Jun 2003; Max Kalika xmltv-0.5.12.ebuild:
Bump version to 0.5.12.

*xmltv-0.5.11 (22 Jun 2003)

22 Jun 2003; Max Kalika xmltv-0.5.11.ebuild:
Bump to 0.5.11. This one requires some changes: *ALL* grabbers are optional
now, so enable support for them. Add support for two new grabbers: Hungary and
Denmark. Since there is an option to build everything, simplify the
make_config() routine. Bring up some dependency versions to those
required/recommended by XMLTV. Unfortunately this version requires some fixes
to Date::Manip that are only available in a temporary branch of that code.
This dependency is temporarily marked as >=dev-perl/DateManip-5.40-r3 (which
is not in portage yet).

*xmltv-0.5.10-r4 (18 Jun 2003)

18 Jun 2003; Max Kalika xmltv-0.5.10-r4.ebuild:
Move to media-tv.

*xmltv-0.5.10-r3 (16 Jun 2003)

16 Jun 2003; Max Kalika xmltv-0.5.10-r3.ebuild:
Correctly fix the PREFIX issue. Just setting the PREFIX="${D}/usr" is
insufficient because the resulting executable script contains incorrectly
hard-coded paths to the SHARE_DIR (as pointed out by bug #10536 comment #66).
This update also greatly simplifies the src_compile() routine by calling
perl-module_src_compile() only and adds dependency on >= sed-4 because of
inlined sed usage.

*xmltv-0.5.10-r2 (15 Jun 2003)
13 Jun 2003; Tony Clark xmltv-0.5.10-r2.ebuild:
Fixed minor bug with tv_grab_nl_wolf, had the last underscore missing.
Had access denied when trying to install. Changed PREFIX back the
the way it use to be.

*xmltv-0.5.10-r1 (13 Jun 2003)

13 Jun 2003; Max Kalika xmltv-0.5.10-r1.ebuild:
Drop all the local USE flag, use environment variable (XMLTV_OPTS)
instead. Drop the apache/cgi stuff and install tv_pick_cgi into
/usr/bin with a note on how to procede (until Gentoo has a standard
place for web things -- being discussed on -dev currently). Force
adding required dependencies for ALL grabbers until portage knows
about custom variables in /etc/make.conf during the dependency
checking stage.

*xmltv-0.5.10 (28 Apr 2003)

28 Apr 2003; Max Kalika xmltv-0.5.10.ebuild:
Initial import. Bump to 0.5.10. Add xmltvnonlwolf flag to support
a new grabber. Install tv_pick_cgi file into ScriptAlias if the
xmltvnocgi USE flag is unset.

Manifest

AUX xmltv-na_dd-xmltwig.patch 365 RMD160 6b3d791afa37c5b51b176d28792a6c5af7e6966e SHA1 ac31beb86945fe0979fefda9447f1c1f62350077 SHA256 d8b595ffa31e7fda422065bcb1fb2399e47844c93a1a17fb52aac80f8db39cc3
DIST xmltv-0.5.44.tar.bz2 540060 RMD160 24b68a68a2a81a92748337afcc9b7eb76d68284b SHA1 cdcaff5e5cc27a0097d31110cb60994ee08f54d8 SHA256 396c57f374d1de2c724acdfba97e916e72004686f798bf240575e55cd45982ba
DIST xmltv-0.5.46.tar.bz2 593220 RMD160 aedb87761a052b61f1b374548062aa4c34a3007d SHA1 3e4b70a7d927486ba8d1365d630b338b47178af6 SHA256 c0ec7293b8ad72443027c2e743cf3520172d725dae7b761c07100395437fb3f5
DIST xmltv-0.5.48.tar.bz2 593655 RMD160 ca999777811d61ab9cdb33dcbc78ac9465645571 SHA1 f3bc8b17d7e3fe2c656e34d984edef40d042fb9c SHA256 b893d817c853f5dab797e1e9297f1ded0f55f423b5a66f972bd92e391ab7f572
DIST xmltv-0.5.49.tar.bz2 596809 RMD160 2fdb66121c32e974e2de47ea55bb4961f6700165 SHA1 265a9884d3a38cad4398f19934be2db84d8b8a66 SHA256 2a0e4f8c769788a522cc58938362e95ad46e309bb4fd6790e6983d2bf1d4db56
DIST xmltv-0.5.50.tar.bz2 617384 RMD160 9a9c1e4ca1d4476811dc6b477c3a2c758b31e05e SHA1 305b0b4397e3493b82fd798535843f798c9f4149 SHA256 0ea8a009e987c4245fe34c1b530ca11b3d1c20aac8f2e9637730ec1b2039b535
EBUILD xmltv-0.5.44.ebuild 5473 RMD160 eca1fd6167f501d3732b0ca6dac016afea0f69d1 SHA1 0912eed3840dabcb1ec9130518f2f097dda94aa8 SHA256 350f2626b31f104b5bf1816e2f2799859f3dbaed3a4749db2c1d9c16f818470b
EBUILD xmltv-0.5.46.ebuild 6035 RMD160 1ae5edbd2ea5201f7e4299e429e947027df8714b SHA1 b7dcd051aeb470cc4f968adaf3d0582f5821e90f SHA256 8902ccfa5b9edae97c88770e1611fb468fd5c3572238d8fe6eeb76d5567d490d
EBUILD xmltv-0.5.48.ebuild 6035 RMD160 3a3f78c8b8899fd6ce88228e1575fe66366f929d SHA1 15026fb2c1a16829e5b347fdcf3afdd3a6ffd283 SHA256 7b4ce7e1f90c1d95df9cdc116a0e0f26fefa922a46d7437494abc997d5aa7ed6
EBUILD xmltv-0.5.49.ebuild 6031 RMD160 832252610cd9defbcbbba21a4ff7e317dfdcfc6c SHA1 e7454fdaf1fe707099284ee227fd175e3ac20cc6 SHA256 144819636b6fb7fd04368291305f061865bb42a27cf41146ccb86478c3d5d393
EBUILD xmltv-0.5.50.ebuild 6533 RMD160 e46874f87fbfa9c70b7a18c2cec01f3f1e501096 SHA1 5b900f2f31f311176c2cfc60c351a7e5219df5ab SHA256 bc90e8c4345e20ed1dfc5de71227abf8a67e3477d614d491a216b54de8d08a42
MISC ChangeLog 14472 RMD160 4220e55ce3045f5f87a9cf163a18dc3f0995345d SHA1 c50efe643f3c487d16abfc2ed8b787166718445a SHA256 1d159bf43b56b75befe455d7f05d9dbe3893b10f084dae73852c2cc5927a2848
MISC metadata.xml 253 RMD160 5ef8864f145f7593d909731ad87eeffa4b00dcc7 SHA1 a4e8c0ac9ef9fbe6e4d82ef5131047bb4e187dcc SHA256 8dcec70903c8e22a3a3ff3ba1e2ae5c508d58fe0662ceb53279ae94766b445c4

files

metadata.xml




media-tv

mattepiu@gentoo.org
Matteo Azzali

xmltv-0.5.44.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/xmltv/xmltv-0.5.44.ebuild,v 1.15 2007/10/22 10:59:18 mattepiu Exp $

inherit eutils 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/xmltv//${P}.tar.bz2"
IUSE="be br brnet uk_rt uk_bleb is it na_dd na_icons fi es es_laguiatv ee il re nl nl_wolf huro dk jp de_tvtoday se_swedb fr no pt za tv_pick_cgi tv_check"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc ~sparc x86"
PREFIX="/usr"

# NOTE: you can customize the xmltv installation by
# defining USE FLAGS (custom ones in
# /etc/portage/package.use for example).
#
# Do "equery u media-tv/xmltv" for the complete
# list of the flags you can set, with description.

# EXAMPLES:
# enable just North American grabber
# in /etc/portage/package.use : media-tv/xmltv na_dd
#
# enable graphical front-end, Italy grabber
# in /etc/portage/package.use : media-tv/xmltv tv_check it

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.6
virtual/perl-Memoize
virtual/perl-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}
na_dd? ( na_icons? ( dev-perl/HTML-TableExtract >=dev-perl/WWW-Mechanize-1.02 ) )
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 )
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 dev-perl/Unicode-UTF8simple )
se_swedb? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
uk_bleb? ( dev-perl/Archive-Zip dev-perl/IO-stringy )
tv_check? ( dev-perl/perl-tk dev-perl/Tk-TableMatrix )
tv_pick_cgi? ( virtual/perl-CGI )
"

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 Brazil Cable
use brnet && 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 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 && use na_dd && 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 Israel
use il && echo "yes" || echo "no"
# Enable Spain Alternative
use es_laguiatv && 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_unpack() {
unpack "${A}"

cd "${S}"
epatch "${FILESDIR}/xmltv-na_dd-xmltwig.patch"
}

src_compile() {
sed -i "s:\$VERSION = '${PV}':\$VERSION = '${PVR}':" Makefile.PL || die
pm_echovar=`make_config`
perl-module_src_compile || die "error compiling"
}

src_install() {
# actually make test should be unneede, but if non na grabbers
# start to not install remove comment below
#make test
#make
#make DESTDIR=${D} install
perl-module_src_install || die "error installing"

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

if use tv_pick_cgi ; then
dobin choose/tv_pick/tv_pick_cgi || die "error creating tv_pick_cgi"
fi
}

pkg_postinst() {
if use tv_pick_cgi ; then
elog "To use tv_pick_cgi, please link it from /usr/bin/tv_pick_cgi"
elog "to where the ScriptAlias directive is configured."
fi
if use na_icons ; then
if use na_dd ; then
elog "na_icons set for na_dd grabber user."
else
elog "na_icons works only when na_dd is set, "
elog "otherwise it does nothing."
fi
fi
}

xmltv-0.5.46.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/xmltv/xmltv-0.5.46.ebuild,v 1.3 2007/10/06 20:05:20 dertobi123 Exp $

inherit eutils 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/xmltv//${P}.tar.bz2"
IUSE="ar be br brnet ch dtvla uk_rt uk_bleb is it na_dd na_icons fi es es_laguiatv ee il re nc nl nl_wolf huro dk jp se_swedb hr no_gf fr no pt za tv_combiner tv_pick_cgi tv_check"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ~sparc ~x86"
PREFIX="/usr"

# NOTE: you can customize the xmltv installation by
# defining USE FLAGS (custom ones in
# /etc/portage/package.use for example).
#
# Do "equery u media-tv/xmltv" for the complete
# list of the flags you can set, with description.

# EXAMPLES:
# enable just North American grabber
# in /etc/portage/package.use : media-tv/xmltv na_dd
#
# enable graphical front-end, Italy grabber
# in /etc/portage/package.use : media-tv/xmltv tv_check it

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.6
virtual/perl-Memoize
virtual/perl-Storable
>=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/File-Slurp
>=dev-lang/perl-5.6.1"

DEPEND="${RDEPEND}
brnet? ( dev-perl/IO-stringy >=dev-perl/WWW-Mechanize-1.02 )
na_dd? ( na_icons? ( dev-perl/HTML-TableExtract >=dev-perl/WWW-Mechanize-1.02 ) )
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 )
it? ( dev-perl/XML-Simple )
jp? ( dev-perl/HTML-Tree dev-perl/Text-Kakasi )
na_dd? ( dev-perl/SOAP-Lite dev-perl/TermReadKey )
nl? ( dev-perl/HTML-Tree )
nl_wolf? ( dev-perl/HTML-Tree )
no_gf? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
no? ( >=dev-perl/HTML-Parser-3.34 dev-perl/HTML-TableExtract dev-perl/HTML-LinkExtractor )
pt? ( dev-perl/HTML-Tree dev-perl/Unicode-UTF8simple )
se_swedb? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
hr? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
uk_bleb? ( dev-perl/Archive-Zip dev-perl/IO-stringy )
ee? ( dev-perl/IO-stringy )
re? ( dev-perl/Lingua-EN-Numbers-Ordinate )
tv_combiner? ( dev-perl/XML-LibXML )
tv_check? ( dev-perl/perl-tk dev-perl/Tk-TableMatrix )
tv_pick_cgi? ( virtual/perl-CGI dev-perl/Lingua-EN-Numbers-Ordinate )
"

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

# Enable Australian
#use au && echo "yes" || echo "no"
# Enable Agentina
use ar && echo "yes" || echo "no"
# Enable Brazil
use br && echo "yes" || echo "no"
# Enable Brazil Cable
use brnet && echo "yes" || echo "no"
# Enable Switzerland Search
use ch && echo "yes" || echo "no"
# Enable Latin America
use dtvla && 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 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 && use na_dd && 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 Israel
use il && echo "yes" || echo "no"
# Enable Spain Alternative
use es_laguiatv && 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 Sweden
use se_swedb && echo "yes" || echo "no"
# Enable Croatia
use hr && echo "yes" || echo "no"
# Enable Norway Gfeed
use no_gf && 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 combiner
use tv_combiner && 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"
# Enable Caledonie Island
use nc && echo "yes" || echo "no"
}

src_unpack() {
unpack "${A}"

cd "${S}"
#epatch ${FILESDIR}/xmltv-na_dd-xmltwig.patch
}

src_compile() {
sed -i "s:\$VERSION = '${PV}':\$VERSION = '${PVR}':" Makefile.PL || die
pm_echovar=`make_config`
perl-module_src_compile || die "error compiling"
}

src_install() {
# actually make test should be unneede, but if non na grabbers
# start to not install remove comment below
#make test
#make
#make DESTDIR=${D} install
perl-module_src_install || die "error installing"

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

if use tv_pick_cgi ; then
dobin choose/tv_pick/tv_pick_cgi || die "error creating tv_pick_cgi"
fi
}

pkg_postinst() {
if use tv_pick_cgi ; then
elog "To use tv_pick_cgi, please link it from /usr/bin/tv_pick_cgi"
elog "to where the ScriptAlias directive is configured."
fi
if use na_icons ; then
if use na_dd ; then
elog "na_icons set for na_dd grabber user."
else
elog "na_icons works only when na_dd is set, "
elog "otherwise it does nothing."
fi
fi
}

xmltv-0.5.48.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/xmltv/xmltv-0.5.48.ebuild,v 1.1 2007/08/26 15:27:49 mattepiu Exp $

inherit eutils 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/xmltv//${P}.tar.bz2"
IUSE="ar be br brnet ch dtvla uk_rt uk_bleb is it na_dd na_icons fi es es_laguiatv ee il re nc nl nl_wolf huro dk jp se_swedb hr no_gf fr no pt za tv_combiner tv_pick_cgi tv_check"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
PREFIX="/usr"

# NOTE: you can customize the xmltv installation by
# defining USE FLAGS (custom ones in
# /etc/portage/package.use for example).
#
# Do "equery u media-tv/xmltv" for the complete
# list of the flags you can set, with description.

# EXAMPLES:
# enable just North American grabber
# in /etc/portage/package.use : media-tv/xmltv na_dd
#
# enable graphical front-end, Italy grabber
# in /etc/portage/package.use : media-tv/xmltv tv_check it

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.6
virtual/perl-Memoize
virtual/perl-Storable
>=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/File-Slurp
>=dev-lang/perl-5.6.1"

DEPEND="${RDEPEND}
brnet? ( dev-perl/IO-stringy >=dev-perl/WWW-Mechanize-1.02 )
na_dd? ( na_icons? ( dev-perl/HTML-TableExtract >=dev-perl/WWW-Mechanize-1.02 ) )
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 )
it? ( dev-perl/XML-Simple )
jp? ( dev-perl/HTML-Tree dev-perl/Text-Kakasi )
na_dd? ( dev-perl/SOAP-Lite dev-perl/TermReadKey )
nl? ( dev-perl/HTML-Tree )
nl_wolf? ( dev-perl/HTML-Tree )
no_gf? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
no? ( >=dev-perl/HTML-Parser-3.34 dev-perl/HTML-TableExtract dev-perl/HTML-LinkExtractor )
pt? ( dev-perl/HTML-Tree dev-perl/Unicode-UTF8simple )
se_swedb? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
hr? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
uk_bleb? ( dev-perl/Archive-Zip dev-perl/IO-stringy )
ee? ( dev-perl/IO-stringy )
re? ( dev-perl/Lingua-EN-Numbers-Ordinate )
tv_combiner? ( dev-perl/XML-LibXML )
tv_check? ( dev-perl/perl-tk dev-perl/Tk-TableMatrix )
tv_pick_cgi? ( virtual/perl-CGI dev-perl/Lingua-EN-Numbers-Ordinate )
"

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

# Enable Australian
#use au && echo "yes" || echo "no"
# Enable Agentina
use ar && echo "yes" || echo "no"
# Enable Brazil
use br && echo "yes" || echo "no"
# Enable Brazil Cable
use brnet && echo "yes" || echo "no"
# Enable Switzerland Search
use ch && echo "yes" || echo "no"
# Enable Latin America
use dtvla && 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 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 && use na_dd && 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 Israel
use il && echo "yes" || echo "no"
# Enable Spain Alternative
use es_laguiatv && 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 Sweden
use se_swedb && echo "yes" || echo "no"
# Enable Croatia
use hr && echo "yes" || echo "no"
# Enable Norway Gfeed
use no_gf && 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 combiner
use tv_combiner && 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"
# Enable Caledonie Island
use nc && echo "yes" || echo "no"
}

src_unpack() {
unpack "${A}"

cd "${S}"
#epatch ${FILESDIR}/xmltv-na_dd-xmltwig.patch
}

src_compile() {
sed -i "s:\$VERSION = '${PV}':\$VERSION = '${PVR}':" Makefile.PL || die
pm_echovar=`make_config`
perl-module_src_compile || die "error compiling"
}

src_install() {
# actually make test should be unneede, but if non na grabbers
# start to not install remove comment below
#make test
#make
#make DESTDIR=${D} install
perl-module_src_install || die "error installing"

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

if use tv_pick_cgi ; then
dobin choose/tv_pick/tv_pick_cgi || die "error creating tv_pick_cgi"
fi
}

pkg_postinst() {
if use tv_pick_cgi ; then
elog "To use tv_pick_cgi, please link it from /usr/bin/tv_pick_cgi"
elog "to where the ScriptAlias directive is configured."
fi
if use na_icons ; then
if use na_dd ; then
elog "na_icons set for na_dd grabber user."
else
elog "na_icons works only when na_dd is set, "
elog "otherwise it does nothing."
fi
fi
}

xmltv-0.5.49.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/xmltv/xmltv-0.5.49.ebuild,v 1.1 2007/10/22 10:59:18 mattepiu Exp $

inherit eutils 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/xmltv//${P}.tar.bz2"
IUSE="ar be brnet ch dtvla uk_rt uk_bleb it na_dd na_icons fi es es_laguiatv ee il re nc nl nl_wolf huro dk jp se_swedb hr no_gf fr no pt za tv_combiner tv_pick_cgi tv_check"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
PREFIX="/usr"

# NOTE: you can customize the xmltv installation by
# defining USE FLAGS (custom ones in
# /etc/portage/package.use for example).
#
# Do "equery u media-tv/xmltv" for the complete
# list of the flags you can set, with description.

# EXAMPLES:
# enable just North American grabber
# in /etc/portage/package.use : media-tv/xmltv na_dd
#
# enable graphical front-end, Italy grabber
# in /etc/portage/package.use : media-tv/xmltv tv_check it

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.6
virtual/perl-Memoize
virtual/perl-Storable
>=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/File-Slurp
>=dev-lang/perl-5.6.1"

DEPEND="${RDEPEND}
brnet? ( dev-perl/IO-stringy >=dev-perl/WWW-Mechanize-1.02 )
na_dd? ( na_icons? ( dev-perl/HTML-TableExtract >=dev-perl/WWW-Mechanize-1.02 ) )
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 )
it? ( dev-perl/XML-Simple )
jp? ( dev-perl/HTML-Tree dev-perl/Text-Kakasi )
na_dd? ( dev-perl/SOAP-Lite dev-perl/TermReadKey )
nl? ( dev-perl/HTML-Tree )
nl_wolf? ( dev-perl/HTML-Tree )
no_gf? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
no? ( >=dev-perl/HTML-Parser-3.34 dev-perl/HTML-TableExtract dev-perl/HTML-LinkExtractor )
pt? ( dev-perl/HTML-Tree dev-perl/Unicode-UTF8simple )
se_swedb? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
hr? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
uk_bleb? ( dev-perl/Archive-Zip dev-perl/IO-stringy )
ee? ( dev-perl/IO-stringy )
re? ( dev-perl/Lingua-EN-Numbers-Ordinate )
tv_combiner? ( dev-perl/XML-LibXML )
tv_check? ( dev-perl/perl-tk dev-perl/Tk-TableMatrix )
tv_pick_cgi? ( virtual/perl-CGI dev-perl/Lingua-EN-Numbers-Ordinate )
"

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

# Enable Australian
#use au && echo "yes" || echo "no"
# Enable Agentina
use ar && echo "yes" || echo "no"
# Enable Brazil
#use br && echo "yes" || echo "no"
# Enable Brazil Cable
use brnet && echo "yes" || echo "no"
# Enable Switzerland Search
use ch && echo "yes" || echo "no"
# Enable Latin America
use dtvla && 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 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 && use na_dd && 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 Israel
use il && echo "yes" || echo "no"
# Enable Spain Alternative
use es_laguiatv && 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 Sweden
use se_swedb && echo "yes" || echo "no"
# Enable Croatia
use hr && echo "yes" || echo "no"
# Enable Norway Gfeed
use no_gf && 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 combiner
use tv_combiner && 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"
# Enable Caledonie Island
use nc && echo "yes" || echo "no"
}

src_unpack() {
unpack "${A}"

cd "${S}"
#epatch ${FILESDIR}/xmltv-na_dd-xmltwig.patch
}

src_compile() {
sed -i "s:\$VERSION = '${PV}':\$VERSION = '${PVR}':" Makefile.PL || die
pm_echovar=`make_config`
perl-module_src_compile || die "error compiling"
}

src_install() {
# actually make test should be unneede, but if non na grabbers
# start to not install remove comment below
#make test
#make
#make DESTDIR=${D} install
perl-module_src_install || die "error installing"

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

if use tv_pick_cgi ; then
dobin choose/tv_pick/tv_pick_cgi || die "error creating tv_pick_cgi"
fi
}

pkg_postinst() {
if use tv_pick_cgi ; then
elog "To use tv_pick_cgi, please link it from /usr/bin/tv_pick_cgi"
elog "to where the ScriptAlias directive is configured."
fi
if use na_icons ; then
if use na_dd ; then
elog "na_icons set for na_dd grabber user."
else
elog "na_icons works only when na_dd is set, "
elog "otherwise it does nothing."
fi
fi
}

xmltv-0.5.50.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-tv/xmltv/xmltv-0.5.50.ebuild,v 1.6 2008/03/10 14:56:17 beandog Exp $

inherit eutils 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/xmltv//${P}.tar.bz2"
IUSE="ar be brnet ch dtvla uk_rt uk_bleb it na_dd na_icons fi es es_laguiatv ee re nc nl nl_wolf huro dk jp se_swedb hr no_gf fr no pt za eu_epg tv_combiner tv_pick_cgi tv_check na_dtv"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ~sparc x86"
PREFIX="/usr"

# NOTE: you can customize the xmltv installation by
# defining USE FLAGS (custom ones in
# /etc/portage/package.use for example).
#
# Do "equery u media-tv/xmltv" for the complete
# list of the flags you can set, with description.

# EXAMPLES:
# enable just North American grabber
# in /etc/portage/package.use : media-tv/xmltv na_dd
#
# enable graphical front-end, Italy grabber
# in /etc/portage/package.use : media-tv/xmltv tv_check it

# Care!!!! grab_il is actually missing Text::Bidi
#

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.6
virtual/perl-Memoize
virtual/perl-Storable
>=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/File-Slurp
>=dev-lang/perl-5.6.1"

DEPEND="${RDEPEND}
brnet? ( dev-perl/IO-stringy >=dev-perl/WWW-Mechanize-1.02 )
na_dd? ( na_icons? ( dev-perl/HTML-TableExtract >=dev-perl/WWW-Mechanize-1.02 ) )
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 )
it? ( dev-perl/XML-Simple )
jp? ( dev-perl/HTML-Tree dev-perl/Text-Kakasi )
na_dd? ( dev-perl/SOAP-Lite dev-perl/TermReadKey )
nl? ( dev-perl/HTML-Tree )
nl_wolf? ( dev-perl/HTML-Tree )
no_gf? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
no? ( >=dev-perl/HTML-Parser-3.34 dev-perl/HTML-TableExtract dev-perl/HTML-LinkExtractor )
pt? ( dev-perl/HTML-Tree dev-perl/Unicode-UTF8simple )
eu_epg? ( dev-perl/Archive-Zip )
se_swedb? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
hr? ( dev-perl/HTTP-Cache-Transparent dev-perl/IO-stringy dev-perl/XML-LibXML )
uk_bleb? ( dev-perl/Archive-Zip dev-perl/IO-stringy )
ee? ( dev-perl/IO-stringy )
re? ( dev-perl/Lingua-EN-Numbers-Ordinate )
tv_combiner? ( dev-perl/XML-LibXML )
tv_check? ( dev-perl/perl-tk dev-perl/Tk-TableMatrix )
tv_pick_cgi? ( virtual/perl-CGI dev-perl/Lingua-EN-Numbers-Ordinate )
na_dtv? ( >=dev-perl/WWW-Mechanize-1.02 dev-perl/TimeDate dev-perl/IO-stringy dev-perl/XML-LibXML )
"

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

# Enable Australian
#use au && echo "yes" || echo "no"
# Enable Agentina
use ar && echo "yes" || echo "no"
# Enable Brazil
#use br && echo "yes" || echo "no"
# Enable Brazil Cable
use brnet && echo "yes" || echo "no"
# Enable Switzerland Search
use ch && echo "yes" || echo "no"
# Enable Latin America
use dtvla && 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 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 && use na_dd && 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"
# Israel Temporary Disabled
# use il && echo "yes" || echo "no"
echo "no"
# Enable Spain Alternative
use es_laguiatv && 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 Sweden
use se_swedb && echo "yes" || echo "no"
# Enable Croatia
use hr && echo "yes" || echo "no"
# Enable Norway Gfeed
use no_gf && 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 Europe epg
use eu_epg && echo "yes" || echo "no"
# Enable combiner
use tv_combiner && 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"
# Enable Caledonie Island
use nc && echo "yes" || echo "no"
# Enable North America DirecTV
use na_dtv && echo "yes" || echo "no"
}

src_unpack() {
unpack "${A}"

cd "${S}"
#epatch ${FILESDIR}/xmltv-na_dd-xmltwig.patch
}

src_compile() {
sed -i "s:\$VERSION = '${PV}':\$VERSION = '${PVR}':" Makefile.PL || die
pm_echovar=`make_config`
perl-module_src_compile || die "error compiling"
}

src_install() {
# actually make test should be unneede, but if non na grabbers
# start to not install remove comment below
#make test
#make
#make DESTDIR=${D} install
perl-module_src_install || die "error installing"

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

if use tv_pick_cgi ; then
dobin choose/tv_pick/tv_pick_cgi || die "error creating tv_pick_cgi"
fi
}

pkg_postinst() {
if use tv_pick_cgi ; then
elog "To use tv_pick_cgi, please link it from /usr/bin/tv_pick_cgi"
elog "to where the ScriptAlias directive is configured."
fi
if use na_icons ; then
if use na_dd ; then
elog "na_icons set for na_dd grabber user."
else
elog "na_icons works only when na_dd is set, "
elog "otherwise it does nothing."
fi
fi
elog "Israel (il) support has bee turned on for lack of testers, open a"
elog "bugreport if you want il support and are willing to collaborate/test"
}