cbb4410dbf419325b8642c6140085d8caf3420ce
[scm/bb/meta-tizen.git] / meta-tizen-common-devtools / recipes-devtools / testkit-stub / testkit-stub.inc
1 DESCRIPTION = "Test stub of testkit-lite"
2 HOMEPAGE = "http://nohomepage.org"
3 SECTION = "Development/Testing"
4 LICENSE = "GPL-2.0"
5 PV = "1.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 testkit-stub
17
18
19 RDEPENDS = ""
20
21 DEPENDS = ""
22
23 do_prep() {
24  cd ${S}
25  chmod -Rf a+rX,u+w,g-w,o-w ${S}
26  #setup -q -n testkit-stub-1.0
27  cp ${S}/packaging/testkit-stub.manifest .
28  
29  
30 }
31 do_patch_append() {
32     bb.build.exec_func('do_prep', d)
33 }
34
35 do_configure() {
36 }
37
38 do_compile() {
39  cd ${S}
40  LANG=C
41  export LANG
42  unset DISPLAY
43  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
44  
45  make -j16
46  
47  
48  
49  
50 }
51
52 do_install() {
53  export RPM_BUILD_ROOT=${D}
54  cd ${S}
55  LANG=C
56  export LANG
57  unset DISPLAY
58  rm -rf ${D}
59  mkdir -p ${D}
60  
61  rm -rf ${D}
62  
63    oe_runmake \
64          DESTDIR=${D} \
65          INSTALL_ROOT=${D} \
66          BINDIR=${prefix}/bin \
67    install  
68    rm -f ${D}${infodir}/dir 
69    find ${D} -regex ".*\.la$" | xargs rm -f -- 
70    find ${D} -regex ".*\.a$" | xargs rm -f --
71  
72  
73  
74 }
75
76 PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
77 PACKAGES += " testkit-stub "
78
79 testkit-stub_files = ""
80 testkit-stub_files += "${prefix}/bin/testkit-stub"
81 MANIFESTFILES_${PN} = "testkit-stub.manifest"
82
83 FILES_${PN} = "${testkit-stub_files}"
84
85 PKG_testkit-stub= "testkit-stub"
86
87 require testkit-stub-extraconf.inc
88