packages: ibus-pinyin/ibus-pinyin-boost.patch (NEW), ibus-pinyin/ibus-pinyi...

baggins baggins at pld-linux.org
Wed Jul 20 13:57:52 CEST 2011


Author: baggins                      Date: Wed Jul 20 11:57:52 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- initial revision

---- Files affected:
packages/ibus-pinyin:
   ibus-pinyin-boost.patch (NONE -> 1.1)  (NEW), ibus-pinyin-lua51.patch (NONE -> 1.1)  (NEW), ibus-pinyin.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/ibus-pinyin/ibus-pinyin-boost.patch
diff -u /dev/null packages/ibus-pinyin/ibus-pinyin-boost.patch:1.1
--- /dev/null	Wed Jul 20 13:57:52 2011
+++ packages/ibus-pinyin/ibus-pinyin-boost.patch	Wed Jul 20 13:57:47 2011
@@ -0,0 +1,60 @@
+diff -ur ibus-pinyin-1.3.99.20110706/src/PYDatabase.h ibus-pinyin-1.3.99.20110706.boost/src/PYDatabase.h
+--- ibus-pinyin-1.3.99.20110706/src/PYDatabase.h	2011-02-07 17:33:37.000000000 +0100
++++ ibus-pinyin-1.3.99.20110706.boost/src/PYDatabase.h	2011-07-20 13:31:54.360627955 +0200
+@@ -34,7 +34,7 @@
+ struct Phrase;
+ 
+ class SQLStmt;
+-typedef std::shared_ptr<SQLStmt> SQLStmtPtr;
++typedef boost::shared_ptr<SQLStmt> SQLStmtPtr;
+ 
+ class Database;
+ 
+diff -ur ibus-pinyin-1.3.99.20110706/src/PYEditor.h ibus-pinyin-1.3.99.20110706.boost/src/PYEditor.h
+--- ibus-pinyin-1.3.99.20110706/src/PYEditor.h	2011-01-15 01:32:10.000000000 +0100
++++ ibus-pinyin-1.3.99.20110706.boost/src/PYEditor.h	2011-07-20 13:31:27.927627960 +0200
+@@ -34,7 +34,7 @@
+ class Config;
+ 
+ class Editor;
+-typedef std::shared_ptr<Editor> EditorPtr;
++typedef boost::shared_ptr<Editor> EditorPtr;
+ 
+ class Editor {
+ public:
+diff -ur ibus-pinyin-1.3.99.20110706/src/PYPhraseEditor.h ibus-pinyin-1.3.99.20110706.boost/src/PYPhraseEditor.h
+--- ibus-pinyin-1.3.99.20110706/src/PYPhraseEditor.h	2011-01-15 01:32:10.000000000 +0100
++++ ibus-pinyin-1.3.99.20110706.boost/src/PYPhraseEditor.h	2011-07-20 13:30:12.702627978 +0200
+@@ -125,7 +125,7 @@
+     PinyinArray m_pinyin;
+     guint m_cursor;
+     PinyinProperties & m_props;
+-    std::shared_ptr<Query> m_query;
++    boost::shared_ptr<Query> m_query;
+     Config    & m_config;
+ };
+ 
+diff -ur ibus-pinyin-1.3.99.20110706/src/PYSpecialPhraseTable.h ibus-pinyin-1.3.99.20110706.boost/src/PYSpecialPhraseTable.h
+--- ibus-pinyin-1.3.99.20110706/src/PYSpecialPhraseTable.h	2011-01-15 01:32:10.000000000 +0100
++++ ibus-pinyin-1.3.99.20110706.boost/src/PYSpecialPhraseTable.h	2011-07-20 13:33:22.301627936 +0200
+@@ -30,7 +30,7 @@
+ namespace PY {
+ 
+ class SpecialPhrase;
+-typedef std::shared_ptr<SpecialPhrase> SpecialPhrasePtr;
++typedef boost::shared_ptr<SpecialPhrase> SpecialPhrasePtr;
+ 
+ class SpecialPhraseTable {
+ private:
+diff -ur ibus-pinyin-1.3.99.20110706/src/PYUtil.h ibus-pinyin-1.3.99.20110706.boost/src/PYUtil.h
+--- ibus-pinyin-1.3.99.20110706/src/PYUtil.h	2011-01-15 01:32:10.000000000 +0100
++++ ibus-pinyin-1.3.99.20110706.boost/src/PYUtil.h	2011-07-20 13:30:01.115627981 +0200
+@@ -43,7 +43,7 @@
+ 
+ namespace std {
+     // import boost::shared_ptr to std namespace
+-    using boost::shared_ptr;
++    // using boost::shared_ptr;
+     // import boost::scoped_ptr to std namespace, and rename to unique_ptr
+     // XXX: the unique_ptr can transfer the pointer ownership,
+     //      but scoped_ptr cannot.

================================================================
Index: packages/ibus-pinyin/ibus-pinyin-lua51.patch
diff -u /dev/null packages/ibus-pinyin/ibus-pinyin-lua51.patch:1.1
--- /dev/null	Wed Jul 20 13:57:52 2011
+++ packages/ibus-pinyin/ibus-pinyin-lua51.patch	Wed Jul 20 13:57:47 2011
@@ -0,0 +1,11 @@
+--- ibus-pinyin-1.3.99.20110706/configure.ac~	2011-07-06 19:15:14.000000000 +0200
++++ ibus-pinyin-1.3.99.20110706/configure.ac	2011-07-20 13:46:16.493627757 +0200
+@@ -177,7 +177,7 @@
+ if test x"$has_lua_extension" = x"no";
+ then
+     PKG_CHECK_MODULES(LUA, [
+-        lua5.1
++        lua51
+     ], [],
+     [enable_lua_extension=no]
+     );

================================================================
Index: packages/ibus-pinyin/ibus-pinyin.spec
diff -u /dev/null packages/ibus-pinyin/ibus-pinyin.spec:1.1
--- /dev/null	Wed Jul 20 13:57:52 2011
+++ packages/ibus-pinyin/ibus-pinyin.spec	Wed Jul 20 13:57:47 2011
@@ -0,0 +1,104 @@
+# $Revision$, $Date$
+Summary:	The Chinese Pinyin and Bopomofo engines for IBus input platform
+Name:		ibus-pinyin
+Version:	1.3.99.20110706
+Release:	0.1
+License:	GPL v2+
+Group:		Libraries
+Source0:	http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
+# Source0-md5:	0d9d5d78106c2d36c28a00b74aa9a6c3
+Source1:	http://ibus.googlecode.com/files/pinyin-database-1.2.99.tar.bz2
+# Source1-md5:	d0951b8daa7f56a2cbd3b6b4e42532e0
+Patch0:		%{name}-boost.patch
+Patch1:		%{name}-lua51.patch
+URL:		http://code.google.com/p/ibus
+BuildRequires:	boost-devel
+BuildRequires:	ibus-devel >= 1.3.99
+BuildRequires:	libuuid-devel
+BuildRequires:	lua51-devel
+BuildRequires:	pkgconfig
+BuildRequires:	sqlite3-devel
+Requires:	ibus >= 1.2.0
+Requires:	ibus-pinyin-db = %{version}-%{release}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_libexecdir	%{_libdir}/ibus
+
+%description
+The Chinese Pinyin and Bopomof input methods for IBus platform.
+
+%package db-open-phrase
+Summary:	The open phrase database for ibus Pinyin
+Group:		Libraries
+Provides:	ibus-pinyin-db
+
+%description db-open-phrase
+The phrase database for ibus Pinyin and Bopomofo from open-phrase
+project.
+
+%package db-android
+Summary:	The android phrase database for ibus Pinyin and Bopomofo
+Group:		Libraries
+Provides:	ibus-pinyin-db
+
+%description db-android
+The phrase database for ibus Pinyin and Bopomofo from android project.
+
+%prep
+%setup -q
+%patch0 -p1
+%patch1 -p1
+cp %{SOURCE1} data/db/open-phrase
+
+%build
+%{__autoconf}
+%configure \
+	--enable-db-open-phrase \
+	--disable-opencc \
+	--enable-boost
+
+%{__make} -j1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+	DESTDIR=${RPM_BUILD_ROOT}
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc AUTHORS ChangeLog README
+%{_libexecdir}/ibus-engine-pinyin
+%{_libexecdir}/ibus-setup-pinyin
+%{_datadir}/ibus-pinyin/phrases.txt
+%{_datadir}/ibus-pinyin/icons
+%{_datadir}/ibus-pinyin/setup
+%{_datadir}/ibus-pinyin/db/create_index.sql
+%dir %{_datadir}/ibus-pinyin
+%dir %{_datadir}/ibus-pinyin/db
+%{_datadir}/ibus/component/*
+%{_datadir}/ibus-pinyin/base.lua
+%{_datadir}/ibus-pinyin/db/english.db
+
+%files db-open-phrase
+%defattr(644,root,root,755)
+%{_datadir}/ibus-pinyin/db/open-phrase.db
+
+%files db-android
+%defattr(644,root,root,755)
+%{_datadir}/ibus-pinyin/db/android.db
+
+%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 11:57:47  baggins
+- initial revision
+
================================================================


More information about the pld-cvs-commit mailing list