packages: ibus-anthy/ibus-anthy-xx-icon-symbol.patch (NEW), ibus-anthy/ibus...

baggins baggins at pld-linux.org
Wed Jul 20 11:12:18 CEST 2011


Author: baggins                      Date: Wed Jul 20 09:12:18 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial revision

---- Files affected:
packages/ibus-anthy:
   ibus-anthy-xx-icon-symbol.patch (NONE -> 1.1)  (NEW), ibus-anthy.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ibus-anthy/ibus-anthy-xx-icon-symbol.patch
diff -u /dev/null packages/ibus-anthy/ibus-anthy-xx-icon-symbol.patch:1.1
--- /dev/null	Wed Jul 20 11:12:18 2011
+++ packages/ibus-anthy/ibus-anthy-xx-icon-symbol.patch	Wed Jul 20 11:12:13 2011
@@ -0,0 +1,67 @@
+--- ibus-anthy-1.2.4/configure.ac.orig	2011-06-21 18:25:58.000000000 +0900
++++ ibus-anthy-1.2.4/configure.ac	2011-06-30 18:10:50.000000000 +0900
+@@ -122,6 +122,37 @@ AC_ARG_WITH(kasumi-icon,
+            [KASUMI_ICON_FILE="$datadir/pixmaps/kasumi.png"])
+ AC_SUBST(KASUMI_ICON_FILE)
+ 
++dnl - check hotkeys for ibus-anthy which is used for ibus bridge mode.
++dnl - Normally you don't need this so could be HOTKEYS="no"
++AC_ARG_WITH(hotkeys,
++           [AC_HELP_STRING([--with-hotkeys=HOTKEYS],
++                   [Use hotkeys for ibus bridge mode. (available value: yes/no/keys)])],
++           [HOTKEYS="$withval"],
++           [HOTKEYS="no"])
++if test x"$HOTKEYS" = x"no"; then
++    HOTKEYS="<!-- <hotkeys>Control+space,Zenkaku_Hankaku</hotkeys> -->"
++elif test x"$HOTKEYS" = x"yes"; then
++    HOTKEYS="<hotkeys>Control+space,Zenkaku_Hankaku</hotkeys>"
++elif test x"$HOTKEYS" = x; then
++    HOTKEYS="<hotkeys>Control+space,Zenkaku_Hankaku</hotkeys>"
++else
++    HOTKEYS="<hotkeys>${HOTKEYS}</hotkeys>"
++fi
++AC_SUBST(HOTKEYS)
++
++SYMBOL_TEST="import ibus
++engine = ibus.EngineDesc('test')
++exit(not hasattr(engine, 'symbol'))
++"
++$PYTHON -c "$SYMBOL_TEST"
++if test $? -eq 0; then
++    SYMBOL="<symbol>\xe3\x81\x82</symbol>"
++else
++    SYMBOL="<!-- <symbol>\xe3\x81\x82</symbol> -->"
++fi
++SYMBOL=`printf "$SYMBOL"`
++AC_SUBST(SYMBOL)
++
+ dnl - define GETTEXT_* variables
+ GETTEXT_PACKAGE=ibus-anthy
+ AC_SUBST(GETTEXT_PACKAGE)
+@@ -146,3 +177,15 @@ m4/Makefile
+ ])
+ 
+ AC_OUTPUT
++echo "
++                IBus-Anthy version ibus_version
++
++python-config:           $PYTHON_CONFIG
++PYTHON_CFLAGS            $PYTHON_CFLAGS
++PYTHON_LIBS              $PYTHON_LIBS
++ANTHY_ZIPCODE_FILE       $ANTHY_ZIPCODE_FILE
++KASUMI_EXEC_FILE         $KASUMI_EXEC_FILE
++KASUMI_ICON_FILE         $KASUMI_ICON_FILE
++HOTKEYS                  $HOTKEYS
++SYMBOL                   $SYMBOL
++"
+--- ibus-anthy-1.2.4/engine/anthy.xml.in.in.orig	2011-06-21 18:24:39.000000000 +0900
++++ ibus-anthy-1.2.4/engine/anthy.xml.in.in	2011-06-30 17:37:45.000000000 +0900
+@@ -22,6 +22,8 @@
+ 			<longname>Anthy</longname>
+ 			<description>Anthy Input Method</description>
+ 			<rank>99</rank>
++			@HOTKEYS@
++			@SYMBOL@
+ 		</engine>
+ 	</engines>
+ </component>

================================================================
Index: packages/ibus-anthy/ibus-anthy.spec
diff -u /dev/null packages/ibus-anthy/ibus-anthy.spec:1.1
--- /dev/null	Wed Jul 20 11:12:18 2011
+++ packages/ibus-anthy/ibus-anthy.spec	Wed Jul 20 11:12:13 2011
@@ -0,0 +1,80 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	bridge_hotkey		# disable the engine symbol & hotkeys
+#
+Summary:	The Anthy engine for IBus input platform
+Name:		ibus-anthy
+Version:	1.2.6
+Release:	0.1
+License:	GPL v2+
+Group:		Libraries
+Source0:	http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
+# Source0-md5:	894c7311f4d5c96b1fdb8b3795446ead
+Patch1:		%{name}-xx-icon-symbol.patch
+URL:		http://code.google.com/p/ibus/
+BuildRequires:	anthy-devel
+BuildRequires:	gettext-devel
+%{?with_bridge_hotkey:BuildRequires:  ibus}
+BuildRequires:	intltool
+BuildRequires:	libtool
+BuildRequires:	pkgconfig
+BuildRequires:	python-devel
+BuildRequires:	swig-python
+Requires:	anthy
+Requires:	ibus >= 1.3.0
+Requires:	kasumi
+Requires:	python-pygtk-gtk >= 2.15.2
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The Anthy engine for IBus platform. It provides Japanese input method
+from libanthy.
+
+%prep
+%setup -q
+%if %{with bridge_hotkey}
+%patch1 -p1
+%endif
+
+%build
+%if %{with bridge_hotkey}
+%{__autoconf}
+%configure \
+	--with-hotkeys
+%else
+%configure
+%endif
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{py_sitedir}/*.la
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS README
+%{py_sitedir}/anthy.py*
+%attr(755,root,root) %{py_sitedir}/_anthy.so
+%{_libdir}/ibus-*-anthy
+%{_datadir}/ibus-anthy
+%{_datadir}/ibus/component/*
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2011/07/20 09:12:13  baggins
+- initial revision
+
================================================================


More information about the pld-cvs-commit mailing list