xmltv Makefile.PL,1.468,1.469

Nick Morrott <[email protected]> Mon, 06 Mar 2017 14:33:41 +0000
Newsgroups gmane.comp.tv.xmltv.cvs
Message-ID <[email protected]>
Update of /cvsroot/xmltv/xmltv
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv26750

Modified Files:
	Makefile.PL 
Log Message:
Do not hardcode usage of JSON::XS when depending on JSON

tv_grab_huro declares a runtime dependency on JSON, but hardcodes calls to
JSON::XS in the actual code. JSON::XS is not declared as a build-time dependency
so there is not guarantee is will be installed.

Therefore, we declare a build-time dependency on JSON and change calls to use
the JSON wrapper, which will use either JSON::PP or JSON::XS if available.


Index: Makefile.PL
===================================================================
RCS file: /cvsroot/xmltv/xmltv/Makefile.PL,v
retrieving revision 1.468
retrieving revision 1.469
diff -C2 -d -r1.468 -r1.469
*** Makefile.PL	6 Mar 2017 12:55:16 -0000	1.468
--- Makefile.PL	6 Mar 2017 14:33:39 -0000	1.469
***************
*** 543,547 ****
                   => [ 'grab/huro/tv_grab_huro.in' ] ],
         grab_need_share => [ 'huro' ],
!        prereqs => { 'HTML::TreeBuilder' => 0 },
       },
  
--- 543,548 ----
                   => [ 'grab/huro/tv_grab_huro.in' ] ],
         grab_need_share => [ 'huro' ],
!        prereqs => { 'HTML::TreeBuilder' => 0,
!                     'JSON' => 0, },
       },
  


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot