Tizen recipes: avoid -j16
[scm/bb/meta-tizen.git] / meta-tizen-common-base / recipes-core / dbus-python / dbus-python.inc
1 DESCRIPTION = "Python bindings for D-Bus"
2 HOMEPAGE = "http://www.freedesktop.org/wiki/Software/DBusBindings/"
3 SECTION = "System/Libraries"
4 LICENSE = "MIT"
5 PV = "1.2.0"
6
7 SRC_URI = ""
8
9 S = "${WORKDIR}/git"
10
11 inherit manifest autotools-brokensep
12
13 BBCLASSEXTEND = ""
14 PROVIDES = ""
15
16 #PROVIDES by dbus-python-dev
17 PROVIDES += "dbus-python-dev"
18
19
20 #PROVIDES by dbus-python
21
22
23 RDEPENDS = ""
24 #RDEPENDS of dbus-python-dev (${PN}-dev)
25 RDEPENDS_${PN}-dev += "dbus-python"
26
27 #RDEPENDS of dbus-python (${PN})
28 RDEPENDS_${PN} += "python-xml"
29
30
31 DEPENDS = ""
32 #DEPENDS of dbus-python
33 inherit pythonnative
34 DEPENDS += "dbus"
35 DEPENDS_append_class-native = " fdupes-native"
36 DEPENDS_append_class-target = " fdupes-native"
37 inherit pkgconfig
38 DEPENDS += "dbus-glib"
39
40 do_prep() {
41  cd ${S}
42  chmod -Rf a+rX,u+w,g-w,o-w ${S}
43  #setup -q
44  cp ${S}/packaging/dbus-python.manifest .
45  
46  
47 }
48 do_patch_append() {
49     bb.build.exec_func('do_prep', d)
50 }
51
52 do_configure() {
53 }
54
55 do_compile() {
56  cd ${S}
57   LANG=C
58   export LANG
59   unset DISPLAY
60   LD_AS_NEEDED=1; export LD_AS_NEEDED ;
61   
62   export CFLAGS="$CFLAGS -fstack-protector -fno-strict-aliasing -fPIC"
63   
64   autotools_do_configure
65   oe_runmake ${PARALLEL_MAKE}
66   
67   
68   
69 }
70 EXTRA_OECONF += " --docdir=${prefix}/share/doc/packages/dbus-python"
71
72 do_install() {
73  export RPM_BUILD_ROOT=${D}
74  cd ${S}
75  LANG=C
76  export LANG
77  unset DISPLAY
78  rm -rf ${D}
79  mkdir -p ${D}
80  
81  
82    oe_runmake \
83          DESTDIR=${D} \
84          INSTALL_ROOT=${D} \
85          BINDIR=${prefix}/bin \
86    install  
87    rm -f ${D}${infodir}/dir 
88    find ${D} -regex ".*\.la$" | xargs rm -f -- 
89    find ${D} -regex ".*\.a$" | xargs rm -f --
90  
91  
92  
93    rm -rf ${D}${infodir} 
94    rm -rf ${D}${prefix}/share/doc/packages 
95    rm -rf ${D}${prefix}/share/doc/dbus-python 
96    rm -rf ${D}${prefix}/share/doc/dbus-python-1.2.0 
97    rm -rf ${D}${prefix}/share/gtk-doc 
98    rm -rf ${D}${prefix}/share/doc 
99    rm -rf ${D}${prefix}/share/man 
100    find ${D} -regex ".*/man/man./.*.[0-9]" | xargs rm -f -- 
101    find ${D} -regex ".*/man/../man./.*.[0-9]" | xargs rm -f -- 
102    find ${D} -regex ".*/man/man./.*.[0-9]pm" | xargs rm -f --
103  #fdupes -s ${D}
104  
105  
106  
107 }
108
109 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
110 PACKAGES += " dbus-python-dev "
111 PACKAGES += " dbus-python "
112
113 dbus-python-dev_files = ""
114 dbus-python-dev_files += "${prefix}/include/dbus-1.0/dbus/dbus-python.h"
115 dbus-python-dev_files += "${prefix}/lib/pkgconfig/dbus-python.pc"
116 MANIFESTFILES_${PN}-dev = "dbus-python.manifest"
117
118 dbus-python_files = ""
119 dbus-python_files += "${prefix}/lib/python2.7/site-packages/*"
120 dbus-python_files += "${prefix}/lib/python2.7/site-packages/*"
121 MANIFESTFILES_${PN} = "dbus-python.manifest"
122
123 FILES_${PN}-dev = "${dbus-python-dev_files}"
124 FILES_${PN} = "${dbus-python_files}"
125
126 PKG_dbus-python-dev= "dbus-python-dev"
127 PKG_dbus-python= "dbus-python"
128
129 require dbus-python-extraconf.inc
130