summaryrefslogtreecommitdiff
path: root/meta-tizen/meta-tizen-ivi/recipes-graphics/ibus-libpinyin/ibus-libpinyin.inc
blob: 518934c6ddeefebcdfbf9cac5a3edb8def39b2aa (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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
DESCRIPTION = "Intelligent Pinyin engine based on libpinyin for IBus"
HOMEPAGE = "http://nohomepage.org"
SECTION = "System/Libraries"
LICENSE = "GPL-2.0+"
PV = "1.6.92"

SRC_URI = ""

S = "${WORKDIR}/git"

inherit manifest autotools-brokensep

BBCLASSEXTEND = ""
PROVIDES = ""

#PROVIDES by ibus-libpinyin


RDEPENDS = ""
#RDEPENDS of ibus-libpinyin (${PN})
RDEPENDS_${PN} += "libpinyin"
RDEPENDS_${PN} += "ibus"


DEPENDS = ""
#DEPENDS of ibus-libpinyin
DEPENDS_append_class-native = " intltool-native"
DEPENDS_append_class-target = " intltool-native"
DEPENDS += "libpinyin"
inherit pkgconfig
#Replace "DEPENDS" on gettext by "inherit gettext"
inherit gettext
DEPENDS += "ibus"
DEPENDS += "lua"
DEPENDS_append_class-native = " libtool"
DEPENDS_append_class-target = " libtool-cross"
DEPENDS += "sqlite3"
DEPENDS += "util-linux"

do_prep() {
 cd ${S}
 chmod -Rf a+rX,u+w,g-w,o-w ${S}
 #setup -q
 cp ${S}/packaging/ibus-libpinyin.manifest .
 
 
}
do_patch_append() {
    bb.build.exec_func('do_prep', d)
}

do_configure() {
}

do_compile() {
 cd ${S}
  LANG=C
  export LANG
  unset DISPLAY
  LD_AS_NEEDED=1; export LD_AS_NEEDED ;
  
  
  autotools_do_configure
  
  # make -C po update-gmo
  oe_runmake -j16
  
  
  
}
EXTRA_OECONF += " --disable-static --disable-boost"

do_install() {
 export RPM_BUILD_ROOT=${D}
 cd ${S}
 LANG=C
 export LANG
 unset DISPLAY
 rm -rf ${D}
 mkdir -p ${D}
 
 rm -rf ${D}
 oe_runmake DESTDIR=${D} install
 
 #find_lang ibus-libpinyin
 
 
}

PACKAGES = "${PN}-dbg ${PN}-doc ${PN}-locale"
PACKAGES += " ibus-libpinyin "

ibus-libpinyin_files = ""
ibus-libpinyin_files += "AUTHORS README"
ibus-libpinyin_files += "${prefix}/share/applications/*.desktop"
ibus-libpinyin_files += "${prefix}/libexec/ibus-engine-libpinyin"
ibus-libpinyin_files += "${prefix}/libexec/ibus-setup-libpinyin"
ibus-libpinyin_files += "${prefix}/share/ibus-libpinyin/phrases.txt"
ibus-libpinyin_files += "${prefix}/share/ibus-libpinyin/icons"
ibus-libpinyin_files += "${prefix}/share/ibus-libpinyin/setup"
ibus-libpinyin_files += "${prefix}/share/ibus-libpinyin/*.lua"
ibus-libpinyin_files += "${prefix}/share/ibus-libpinyin/db/*.db"
ibus-libpinyin_files += "${prefix}/share/ibus-libpinyin"
ibus-libpinyin_files += "${prefix}/share/ibus-libpinyin/db"
ibus-libpinyin_files += "${prefix}/share/ibus/component/*"
MANIFESTFILES_${PN} = "ibus-libpinyin.manifest"
DIRFILES_${PN} = ""
DIRFILES_${PN} += "${prefix}/share/ibus-libpinyin"
DIRFILES_${PN} += "${prefix}/share/ibus-libpinyin/db"

FILES_${PN} = "${ibus-libpinyin_files}"

PKG_ibus-libpinyin= "ibus-libpinyin"

require ibus-libpinyin-extraconf.inc