<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Leaf Duo &#187; IME</title>
	<atom:link href="http://blog.leafduo.com/tag/ime/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.leafduo.com</link>
	<description>All About My Life and Information Technology</description>
	<lastBuildDate>Sat, 06 Aug 2011 07:34:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>试用 ibus</title>
		<link>http://blog.leafduo.com/56/test-ibus/</link>
		<comments>http://blog.leafduo.com/56/test-ibus/#comments</comments>
		<pubDate>Sun, 31 Aug 2008 03:56:56 +0000</pubDate>
		<dc:creator>Leaf Duo</dc:creator>
				<category><![CDATA[Information Technology]]></category>
		<category><![CDATA[Arch]]></category>
		<category><![CDATA[Archlinux]]></category>
		<category><![CDATA[ibus]]></category>
		<category><![CDATA[IME]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[PKGBUILD]]></category>

		<guid isPermaLink="false">http://leafduo.com/blog/?p=175</guid>
		<description><![CDATA[关于 ibus 的新闻已经不少了，鉴于我也忍不了 SCIM 和 fcitx 了，所以准备投靠 ibus 。这次是在 Archlinux 上安装的，先写 PKGBUILD ，装好之后没有引擎……晕菜…… 然后扔掉包直接装， OK 了，最后改了一下 PKGBUILD ，也 OK 了。 PKGBUILD 仅仅是到了能用的程度。 用了一下，感觉起码比 SCIM 和 fcitx 都要漂亮，至于 bug ，我就打了这么几个字，还没找出什么来，看起来不错。 这个是 ibus-git 的 PKGBUILD 1 2 3 4 5 6 7 &#8230; <a href="http://blog.leafduo.com/56/test-ibus/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>关于 <a href="http://code.google.com/p/ibus/">ibus</a> 的新闻已经不少了，鉴于我也忍不了 SCIM 和 fcitx 了，所以准备投靠 ibus 。这次是在 Archlinux 上安装的，先写 PKGBUILD  ，装好之后没有引擎……晕菜……</p>
<p>然后扔掉包直接装， OK 了，最后改了一下 PKGBUILD ，也 OK 了。</p>
<p>PKGBUILD  仅仅是到了能用的程度。</p>
<p>用了一下，感觉起码比 SCIM 和 fcitx 都要漂亮，至于 bug ，我就打了这么几个字，还没找出什么来，看起来不错。</p>
<p>这个是 ibus-git 的 PKGBUILD</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Contributor: leafduo&lt;leafduo@gmail.com&gt;</span>
&nbsp;
<span style="color: #007800;">pkgname</span>=ibus-git
<span style="color: #007800;">pkgver</span>=<span style="color: #c20cb9; font-weight: bold;">git</span>
<span style="color: #007800;">pkgrel</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">pkgdesc</span>=<span style="color: #ff0000;">&quot;a next generation input framework.&quot;</span>
<span style="color: #007800;">arch</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'i686'</span> <span style="color: #ff0000;">'x86_64'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">license</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'GPL'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">depends</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'python'</span> <span style="color: #ff0000;">'dbus-python&gt;=0.83.0'</span> <span style="color: #ff0000;">'automake'</span> <span style="color: #ff0000;">'autoconf'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">makedepends</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'git'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">url</span>=<span style="color: #ff0000;">&quot;http://code.google.com/p/ibus/&quot;</span>
<span style="color: #007800;">source</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">md5sum</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">install</span>=ibus.install
&nbsp;
build<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>src
    <span style="color: #c20cb9; font-weight: bold;">git</span> clone <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>phuang<span style="color: #000000; font-weight: bold;">/</span>ibus.git ibus
    <span style="color: #7a0874; font-weight: bold;">cd</span> ibus
    .<span style="color: #000000; font-weight: bold;">/</span>autogen.sh <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr
    <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span>
    <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">DESTDIR</span>=<span style="color: #007800;">$pkgdir</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>对应的 ibus.install</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;">post_install<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
      <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gtk-query-immodules-<span style="color: #000000;">2.0</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>gtk-<span style="color: #000000;">2.0</span><span style="color: #000000; font-weight: bold;">/</span>gtk.immodules
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
post_upgrade<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gtk-query-immodules-<span style="color: #000000;">2.0</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>gtk-<span style="color: #000000;">2.0</span><span style="color: #000000; font-weight: bold;">/</span>gtk.immodules
<span style="color: #7a0874; font-weight: bold;">&#125;</span>
&nbsp;
post_remove<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>gtk-query-immodules-<span style="color: #000000;">2.0</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>gtk-<span style="color: #000000;">2.0</span><span style="color: #000000; font-weight: bold;">/</span>gtk.immodules
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>ibus-pinyin-git 的 PKGBUILD</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
</pre></td><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#Contributor: leafduo&lt;leafduo@gmail.com&gt;</span>
&nbsp;
<span style="color: #007800;">pkgname</span>=ibus-pinyin-git
<span style="color: #007800;">pkgver</span>=<span style="color: #c20cb9; font-weight: bold;">git</span>
<span style="color: #007800;">pkgrel</span>=<span style="color: #000000;">1</span>
<span style="color: #007800;">pkgdesc</span>=<span style="color: #ff0000;">&quot;pinyin input method for ibus&quot;</span>
<span style="color: #007800;">arch</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'i686'</span> <span style="color: #ff0000;">'x86_64'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">license</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'GPL'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">depends</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'python'</span> <span style="color: #ff0000;">'dbus-python&gt;=0.83.0'</span> <span style="color: #ff0000;">'automake'</span> <span style="color: #ff0000;">'autoconf'</span> <span style="color: #ff0000;">'ibus-git'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">makedepends</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'git'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">url</span>=<span style="color: #ff0000;">&quot;http://code.google.com/p/ibus/&quot;</span>
<span style="color: #007800;">source</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
<span style="color: #007800;">md5sum</span>=<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>
&nbsp;
build<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #7a0874; font-weight: bold;">&#41;</span> <span style="color: #7a0874; font-weight: bold;">&#123;</span>
    <span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #007800;">$startdir</span><span style="color: #000000; font-weight: bold;">/</span>src
    <span style="color: #c20cb9; font-weight: bold;">git</span> clone <span style="color: #c20cb9; font-weight: bold;">git</span>:<span style="color: #000000; font-weight: bold;">//</span>github.com<span style="color: #000000; font-weight: bold;">/</span>phuang<span style="color: #000000; font-weight: bold;">/</span>ibus-pinyin.git ibus-pinyin
    <span style="color: #7a0874; font-weight: bold;">cd</span> ibus-pinyin
    .<span style="color: #000000; font-weight: bold;">/</span>autogen.sh <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr
    <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span>
    <span style="color: #c20cb9; font-weight: bold;">make</span> <span style="color: #007800;">DESTDIR</span>=<span style="color: #007800;">$pkgdir</span> <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #000000; font-weight: bold;">||</span> <span style="color: #7a0874; font-weight: bold;">return</span> <span style="color: #000000;">1</span>
<span style="color: #7a0874; font-weight: bold;">&#125;</span></pre></td></tr></table></div>

<p>当然，你可以在<a href="http://code.google.com/p/mypkgbuild/">这里</a>找到我所有的 PKGBUILD。</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.leafduo.com/56/test-ibus/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
	</channel>
</rss>

