aboutsummaryrefslogtreecommitdiff
path: root/textproc/ibus/Makefile
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2009-03-26 09:24:35 +0000
committerPav Lucistnik <pav@FreeBSD.org>2009-03-26 09:24:35 +0000
commit821d9010723d7c31c744e0d42af1e27c607e46f6 (patch)
treeb9a8041ce2b0db815c1efd4ccb78f3fb6120e1b6 /textproc/ibus/Makefile
parent59e7a16db562406da45c4ed4bdfc505efacb6385 (diff)
downloadports-821d9010723d7c31c744e0d42af1e27c607e46f6.tar.gz
ports-821d9010723d7c31c744e0d42af1e27c607e46f6.zip
Intelligent Input Bus for Linux / Unix OS, iBus, is the next generation input
framework, developed by the developer of scim-python, includes all its function, and much more. This is the base port, you need input methods such as pinyin to input text. WWW: http://code.google.com/p/ibus PR: ports/128371 Submitted by: Henry Hu <henry.hu.sh@gmail.com>
Notes
Notes: svn path=/head/; revision=231047
Diffstat (limited to 'textproc/ibus/Makefile')
-rw-r--r--textproc/ibus/Makefile90
1 files changed, 90 insertions, 0 deletions
diff --git a/textproc/ibus/Makefile b/textproc/ibus/Makefile
new file mode 100644
index 000000000000..e36f36af16f1
--- /dev/null
+++ b/textproc/ibus/Makefile
@@ -0,0 +1,90 @@
+# New ports collection makefile for: ibus
+# Date created: 21 October 2008
+# Whom: Henry Hu <henry.hu.sh@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= ibus
+PORTVERSION= 1.1.0.20090311
+CATEGORIES= textproc
+MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE}
+
+MAINTAINER= henry.hu.sh@gmail.com
+COMMENT= Intelligent Input Bus for Linux / Unix OS
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.83.0:${PORTSDIR}/devel/py-dbus
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dbus>=0.83.0:${PORTSDIR}/devel/py-dbus
+
+USE_PYTHON= yes
+USE_GNOME= pygtk2 gconf2
+USE_QT_VER= 4
+
+USE_LDCONFIG= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+GCONF_SCHEMAS= ibus.schemas
+
+OPTIONS= ISOCODES "Use isocodecs" on
+# QTIMMODULE "Enable building of Qt4 immodule" off \
+# PYGCONF "Use internal python gconf binding" on \
+
+.include <bsd.port.pre.mk>
+
+# With 1.1.0.20090311, QT4 IM Module is broken and would not be built
+# .if defined(WITH_QTIMMODULE)
+# QT_COMPONENTS= dbus xml gui corelib qmake_build
+# # if no QMAKE is set, the configure script would fail to find qmake-qt4
+# # however, it worked as expected when being executed in the shell...
+# CONFIGURE_ENV+= QMAKE=${LOCALBASE}/bin/qmake-qt4
+# PLIST_SUB+= WITH_QTIMMODULE=""
+# CONFIGURE_ARGS+= --enable-qt4-immodule
+# .else
+# CONFIGURE_ARGS+= --disable-qt4-immodule
+# PLIST_SUB+= WITH_QTIMMODULE="@comment "
+# .endif
+
+# This option does not exist now
+# .if defined(WITH_PYGCONF)
+# CONFIGURE_ARGS+= --enable-pygconf
+# PLIST_SUB+= WITH_PYGCONF=""
+# .else
+# CONFIGURE_ARGS+= --disable-pygconf
+# PLIST_SUB+= WITH_PYGCONF="@comment "
+# depends on gnome-python ( py-gnome2 )
+# USE_GNOME+= pygnome2
+# .endif
+
+.if defined(WITH_ISOCODES)
+BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/iso-codes.pc:${PORTSDIR}/misc/iso-codes
+RUN_DEPENDS+= ${LOCALBASE}/share/xml/iso-codes/iso_639.xml:${PORTSDIR}/misc/iso-codes
+.else
+CONFIGURE_ARGS+= --disable-iso-codes-check
+.endif
+
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CPPFLAGS= -I${LOCALBASE}/include
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|(libdir)/pkgconfig|(prefix)/libdata/pkgconfig|' ${WRKSRC}/Makefile.in
+ @${REINPLACE_CMD} -e 's|/usr/share/xml/iso-codes/|${LOCALBASE}/share/xml/iso-codes/|g' ${WRKSRC}/ibus/lang.py
+ @${REINPLACE_CMD} -e 's|locale.bind_textdomain_codeset|gettext.bind_textdomain_codeset|g' ${WRKSRC}/setup/main.py
+ @${REINPLACE_CMD} -e 's|locale.bind_textdomain_codeset|gettext.bind_textdomain_codeset|g' ${WRKSRC}/ui/gtk/main.py
+ @${REINPLACE_CMD} -e 's|import locale|import gettext|g' ${WRKSRC}/ui/gtk/main.py
+ @${REINPLACE_CMD} -e 's|setpgrp ()|setpgrp (0,0)|g' ${WRKSRC}/bus/main.c
+
+post-install:
+ @gtk-query-immodules-2.0 > ${LOCALBASE}/etc/gtk-2.0/gtk.immodules
+ @${CAT} ${PKGMESSAGE}
+ @${ECHO} To display this message again, type ${PKG_INFO} -D ${PKGNAME}
+
+post-deinstall:
+ @gtk-query-immodules-2.0 > ${LOCALBASE}/etc/gtk-2.0/gtk.immodules
+
+.include <bsd.port.post.mk>