Skip to content

Commit

Permalink
Qt5 patch for uim-1.8.5
Browse files Browse the repository at this point in the history
+ Add qt5 directory

+ Add qt5-qmake variables in m4 directory

+ Add --with-qt5 --with-qt5-immodules in configure.ac

+ Add --with-qt5 --with-qt5-immodules  in make-dist.sh

+ Fix libuimplatforminputcontext.so target  in qt5/immodules/quimplatforminputcontextplugin.pro.in

+ Add qmake-qt5 variables in Makefile.am

+ Add candidatewindowproxy in qt4 diretory
  • Loading branch information
NgoHuy committed Jul 8, 2013
1 parent 8d0f70e commit aba4457
Show file tree
Hide file tree
Showing 2 changed files with 40,677 additions and 5 deletions.
19 changes: 14 additions & 5 deletions uim-vi/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ source=("uim-vi.patch"
"uim-vi-m17n-candidate-window.patch"
"uim-vi-generic_im_adjustable_default_state.patch"
"http://uim.googlecode.com/files/uim-${pkgver}.tar.gz"
"https://raw.github.com/TheSLinux-forks/myquartz-scim2uim/v1.1.0/bin/scim2uim.awk")
"https://raw.github.com/TheSLinux-forks/myquartz-scim2uim/v1.1.0/bin/scim2uim.awk"
"uim#qt5-immodules.patch")

provides=('uim')
conflicts=('uim')
Expand Down Expand Up @@ -55,8 +56,10 @@ build() {
patch -Np4 < "${srcdir}/uim-vi.patch"
patch -Np4 < "${srcdir}/uim-vi-generic_im_adjustable_default_state.patch"
patch -l -Np4 < "${srcdir}/uim-vi-m17n-candidate-window.patch"

./autogen.sh

# Patch Support for Qt5
patch -Np1 < "${srcdir}/uim#qt5-immodules.patch"
./autogen.sh || :
./configure \
--prefix=/usr \
--libexecdir=/usr/lib/uim \
Expand All @@ -73,8 +76,10 @@ build() {
--without-eb \
--without-osx-dcs \
--without-sqlite3

make
--with-qt5-immodule \
--with-qt5

make -j2
}

package() {
Expand All @@ -86,4 +91,8 @@ package() {
rm -f "${pkgdir}/usr/share/uim/pixmaps/"{xtelex,xvni}{,-ipa}.{svg,png}
ln -s uim-pref-gtk "${pkgdir}/usr/bin/uim-setup"
ln -s uim-toolbar-gtk-systray "${pkgdir}/usr/bin/uim-systray"
# Remove src if exist, it break my patch when rebuild
if [ -d ${srcdir}/${pkgname}-${pkgver} ] ; then
rm -rf ${srcdir}/${pkgname}-${pkgver}
fi
}

0 comments on commit aba4457

Please sign in to comment.