summaryrefslogtreecommitdiff
path: root/recipes/xmltv/xmltv_0.5.56.bb
blob: 3b27b828186a9c7980c33d3e4768b2f51861b35f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
DESCRIPTION="prerequisites for xmltv"

PARALLEL_MAKE = ""
SRC_URI="http://downloads.sourceforge.net/xmltv/xmltv-${PV}.tar.bz2 \
         file://Makefile.PL.patch;patch=1"

RDEPENDS = "perl \
            libarchive-zip-perl \
            libdate-manip-perl \
            libdatetime-format-strptime-perl \
            libfile-slurp-perl \
            libhtml-parser-perl \
            libhtml-treebuilder-perl \
            libio-stringy-perl libxml-dom-perl \
            libio-zlib-perl \
            libsoap-lite-perl \
            libtermreadkey-perl \
            libtimedate-perl \
            libwww-mechanize-perl \
            libwww-perl \
            libxml-parser-perl \
            libxml-twig-perl \
            libxml-writer-perl \
            perl-module-exporter-heavy \
            perl-module-file-glob \
            perl-module-getopt-long \
            "

DEPENDS = "perl \
           libarchive-zip-perl-native \
           libdate-manip-perl-native \
           libdatetime-format-strptime-perl-native \
           libfile-slurp-perl-native \
           libhtml-parser-perl-native \
           libhtml-treebuilder-perl-native \
           libio-stringy-perl-native \
           libio-zlib-perl-native \
           libsoap-lite-perl-native \
           libtermreadkey-perl-native \
           libtimedate-perl-native \
           libwww-mechanize-perl-native \
           libwww-perl-native \
           libxml-dom-perl-native \
           libxml-parser-perl-native \
           libxml-twig-perl-native \
           libxml-writer-perl-native \
           "

PR = "r3"

# 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

FILES_${PN} += "${libdir}"

do_configure() {
        perl Makefile.PL PREFIX=/usr
        sed -i -e 's,$(FIXIN),echo,g' \
               -e 's,^FIXIN.*,,g' Makefile
}


do_install() {
	oe_runmake install DESTDIR=${D}
}