xmltv: added some grabbers
authorFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Thu, 12 Nov 2009 21:16:45 +0000 (22:16 +0100)
committerFrans Meulenbroeks <fransmeulenbroeks@gmail.com>
Thu, 12 Nov 2009 21:16:45 +0000 (22:16 +0100)
recipes/xmltv/files/Makefile.PL.patch [new file with mode: 0644]
recipes/xmltv/xmltv_0.5.56.bb

diff --git a/recipes/xmltv/files/Makefile.PL.patch b/recipes/xmltv/files/Makefile.PL.patch
new file mode 100644 (file)
index 0000000..7acc2cb
--- /dev/null
@@ -0,0 +1,14 @@
+Index: xmltv-0.5.56/Makefile.PL
+===================================================================
+--- xmltv-0.5.56.orig/Makefile.PL
++++ xmltv-0.5.56/Makefile.PL
+@@ -777,8 +777,7 @@ END
+               die;
+           }
+       
+-          $info->{install} =
+-            ask(0, $msg, not $missing);
++          $info->{install} = not $missing;
+       }
+     }
+ }
index 70005d7..842ef5f 100644 (file)
@@ -1,14 +1,35 @@
 DESCRIPTION="prerequisites for xmltv"
 
 PARALLEL_MAKE = ""
-SRC_URI="http://downloads.sourceforge.net/xmltv/xmltv-${PV}.tar.bz2"
+SRC_URI="http://downloads.sourceforge.net/xmltv/xmltv-${PV}.tar.bz2 \
+         file://Makefile.PL.patch;patch=1"
 
+RDEPENDS = "perl libxml-parser-perl libwww-perl libdate-manip-perl \
+               libxml-twig-perl libxml-writer-perl libfile-slurp-perl \
+               libtermreadkey-perl libarchive-zip-perl libio-zlib-perl \
+               libdate-manip-perl \
+                libhtml-treebuilder-perl libwww-mechanize-perl"
 DEPENDS = "perl libxml-parser-perl-native libwww-perl-native libdate-manip-perl-native \
                libxml-twig-perl-native libxml-writer-perl-native libfile-slurp-perl-native \
-               libtermreadkey-perl-native"
+               libtermreadkey-perl-native libarchive-zip-perl-native libio-zlib-perl-native \
+               libdate-manip-perl-native \
+                libhtml-treebuilder-perl-native libwww-mechanize-perl-native"
 
-PR = "r0"
+PR = "r1"
 
-EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
+# cpan does not work, it installs things in the perl work dir iso the xmltv work dir
+# root cause are bad definitions in perl/config.sh, but I don't know what they should be
+# so for now commented out the cpan stuff and do the work myself.
+#EXTRA_CPANFLAGS = "EXPATLIBPATH=${STAGING_LIBDIR} EXPATINCPATH=${STAGING_INCDIR}"
 
-inherit cpan
+#inherit cpan
+
+FILES_${PN} += "${libdir}"
+
+do_configure() {
+       perl Makefile.PL PREFIX=/usr 
+}
+
+do_install() {
+       oe_runmake install DESTDIR=${D}
+}