diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2010-05-04 01:34:41 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2010-05-04 01:34:41 +0000 |
commit | d992f4d723e466b665725b0fa2ffeefc0368797e (patch) | |
tree | e7036373d79c91bde5efa3aadd7eaaf07379e9f3 /app-i18n/sunpinyin | |
parent | Moved app-i18n/ibus-sunpinyin to app-i18n/sunpinyin. (diff) | |
download | historical-d992f4d723e466b665725b0fa2ffeefc0368797e.tar.gz historical-d992f4d723e466b665725b0fa2ffeefc0368797e.tar.bz2 historical-d992f4d723e466b665725b0fa2ffeefc0368797e.zip |
Moving app-i18n/ibus-sunpinyin to app-i18n/sunpinyin.
Package-Manager: portage-2.1.8.3/cvs/Linux x86_64
Diffstat (limited to 'app-i18n/sunpinyin')
-rw-r--r-- | app-i18n/sunpinyin/ChangeLog | 24 | ||||
-rw-r--r-- | app-i18n/sunpinyin/Manifest | 25 | ||||
-rw-r--r-- | app-i18n/sunpinyin/files/sunpinyin-2.0.1-mkdir.patch | 12 | ||||
-rw-r--r-- | app-i18n/sunpinyin/metadata.xml | 10 | ||||
-rw-r--r-- | app-i18n/sunpinyin/sunpinyin-2.0.1.ebuild | 70 |
5 files changed, 141 insertions, 0 deletions
diff --git a/app-i18n/sunpinyin/ChangeLog b/app-i18n/sunpinyin/ChangeLog new file mode 100644 index 000000000000..4f64f005213c --- /dev/null +++ b/app-i18n/sunpinyin/ChangeLog @@ -0,0 +1,24 @@ +# ChangeLog for app-i18n/sunpinyin +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/sunpinyin/ChangeLog,v 1.1 2010/05/04 01:34:41 matsuu Exp $ + +*sunpinyin-2.0.1 (04 May 2010) + + 04 May 2010; MATSUU Takuto <matsuu@gentoo.org> + -ibus-sunpinyin-2.0_rc3.ebuild, +sunpinyin-2.0.1.ebuild, + +files/sunpinyin-2.0.1-mkdir.patch, metadata.xml: + Version bumped. Moved from app-i18n/ibus-sunpinyin to app-i18n/sunpinyin, + bug #314769. + +*ibus-sunpinyin-2.0_rc3 (19 Nov 2009) + + 19 Nov 2009; MATSUU Takuto <matsuu@gentoo.org> + +ibus-sunpinyin-2.0_rc3.ebuild, -ibus-sunpinyin-2.0.20091104.ebuild: + Version bumped, bug #292648. Removed old version. + +*ibus-sunpinyin-2.0.20091104 (08 Nov 2009) + + 08 Nov 2009; MATSUU Takuto <matsuu@gentoo.org> + +ibus-sunpinyin-2.0.20091104.ebuild, +metadata.xml: + Initial import, bug #288566. The ebuild was submitted by Hubert Star. + diff --git a/app-i18n/sunpinyin/Manifest b/app-i18n/sunpinyin/Manifest new file mode 100644 index 000000000000..f20ddea35c38 --- /dev/null +++ b/app-i18n/sunpinyin/Manifest @@ -0,0 +1,25 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +AUX sunpinyin-2.0.1-mkdir.patch 575 RMD160 e4f328907105e327317cce2f38fc8cbd31f4cea2 SHA1 33334c29e623dd588e3a53a82b4917d10eb30d9f SHA256 44c8811455806ecc91aaee73248114a2a62b0e7b162596138f3da4f74d4142d6 +DIST sunpinyin-2.0.1.tar.gz 26318733 RMD160 ce855f819cfa091450bfb344a5132cead7afc33e SHA1 6c36c25f6365a83730f970e51682e5ba58f1c929 SHA256 bdaccb0ee9e618289d308b8cad1646b678fe2eaa946dc6198fc66bfb5f59063b +EBUILD sunpinyin-2.0.1.ebuild 1682 RMD160 9e1292a2c2962d172326fea802b8d37f78d2676b SHA1 9aef93fd01f226e69a1d705b3fe696a9b56a20a4 SHA256 092cf39f812c03dbc18a11a8499fa3f52656c918aeb1a58a370caa6bf9372b27 +MISC ChangeLog 925 RMD160 3bb14d8414bd9f37ad14053a7f0f54875cdc9cfc SHA1 cbc2c801dd5d36470a188bf492abbb48a8d5c018 SHA256 1bfa0f44b9301947ac1ec46cce4d51f3d33f307e97cc76fbda3a374f52cace2a +MISC metadata.xml 307 RMD160 7b5210c750a70d4bd65c6ff529a6bd9ca2ec3052 SHA1 1820ca5b483e66bc6627dfe277749cd3daa47692 SHA256 84307cd50dcea4c60117927dc9e4f23c1dbfd8f73c9d1f0626f44114da0b551d +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.15 (GNU/Linux) + +iQIcBAEBAgAGBQJL33m3AAoJECaGw+YFKA1puwgP/jwowLbqsqNptHAJkVXt0q/v +AG4whI9vo+cmxANsFftzPTKkx+zgA5DxDiIe8I78mq7aDjh80qqF0X0kqbIKgnWo +pp90DeM61+Kc5ooDsWF4yr+IuiRmInYSgbPH9GtsvqaddPOTDC6B4+e/PzgDP3y8 +PjEUtD/2Vf4SHX5yQarF1URWz6QHCu7/eKV1Yz9ox4X4F3vCFz78Yq2IEOuaJSG9 +KQCgVgbVK3zPGgvp9xI06EE2Ic1itXf4ckQ6dLEnLbySbMCy8g2xBj/jvn9X3/Nw +gEK453WQy20wnguttL2E4MVXy0EGoWNuIkJATDE8MbWo3/U+8Sc9DnvlhXlrekfP +lRqnf3R3Xohs2OwUFnNVvw2e7ynVQJ36i5pzzKSs66t1mjJTi+jIBhLZONnPp5QJ +LPCWW/i+VtbHZ8Zh8SH3/4A4AaK6nHJqkE3XcQfDieYhJyl4HC9nXTgBuoESZm7P +F6zLo6BMC75ajs5C9hcPstM4kpcIgRgasJSlYFJXtdlmCUvDFR+wLXRwL5C8DAYJ +M9Cf5ZLD3BywBgicR+gKc445aNUWHWS34S/mrhbO6Vq8+MiRH6WBIZDrxFNO9Id5 +IzkIjfFCOrGYzve5Yp8tW9wAegg8pKILkhgSmbzCWk4mDDxmRNdtVidHSvXZ8x9Y +TnqhlcR1K/OqCKGM+9R7 +=PIp3 +-----END PGP SIGNATURE----- diff --git a/app-i18n/sunpinyin/files/sunpinyin-2.0.1-mkdir.patch b/app-i18n/sunpinyin/files/sunpinyin-2.0.1-mkdir.patch new file mode 100644 index 000000000000..71cfcae40324 --- /dev/null +++ b/app-i18n/sunpinyin/files/sunpinyin-2.0.1-mkdir.patch @@ -0,0 +1,12 @@ +diff -Naur sunpinyin-2.0.orig/wrapper/xim/settings.c sunpinyin-2.0/wrapper/xim/settings.c +--- sunpinyin-2.0.orig/wrapper/xim/settings.c 2010-04-10 20:37:24.000000000 +0900 ++++ sunpinyin-2.0/wrapper/xim/settings.c 2010-05-04 10:16:45.000000000 +0900 +@@ -294,7 +294,7 @@ + if (fp == NULL) { + char config_dir[256]; + snprintf(config_dir, 256, "%s/.sunpinyin", getenv("HOME")); +- mkdir(config_dir, 0600); ++ mkdir(config_dir, 0700); + char cmd[256]; + snprintf(cmd, 256, "cp %s %s", DEFAULT_SETTING_FILE, path); + system(cmd); diff --git a/app-i18n/sunpinyin/metadata.xml b/app-i18n/sunpinyin/metadata.xml new file mode 100644 index 000000000000..55b463759d55 --- /dev/null +++ b/app-i18n/sunpinyin/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>cjk</herd> +<use> + <flag name='ibus'>Enable support for <pkg>app-i18n/ibus</pkg> input method + </flag> + <flag name='xim'>Enable support for XIM</flag> +</use> +</pkgmetadata> diff --git a/app-i18n/sunpinyin/sunpinyin-2.0.1.ebuild b/app-i18n/sunpinyin/sunpinyin-2.0.1.ebuild new file mode 100644 index 000000000000..34d5f4bb2acb --- /dev/null +++ b/app-i18n/sunpinyin/sunpinyin-2.0.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/sunpinyin/sunpinyin-2.0.1.ebuild,v 1.1 2010/05/04 01:34:41 matsuu Exp $ + +EAPI="2" +PYTHON_DEPEND="ibus? 2:2.5" +inherit confutils eutils python versionator + +DESCRIPTION="SunPinyin is a SLM (Statistical Language Model) based IME" +HOMEPAGE="http://sunpinyin.org/" +SRC_URI="http://sunpinyin.googlecode.com/files/${P}.tar.gz" + +LICENSE="LGPL-2.1 CDDL" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug ibus nls +xim" + +RDEPEND="dev-db/sqlite:3 + ibus? ( + >=app-i18n/ibus-1.1 + !app-i18n/ibus-sunpinyin + ) + nls? ( virtual/libintl ) + xim? ( + >=x11-libs/gtk+-2.12:2 + x11-libs/libX11 + )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + nls? ( sys-devel/gettext ) + xim? ( x11-proto/xproto )" + +S="${WORKDIR}/${PN}-$(get_version_component_range 1-2)" + +pkg_setup() { + confutils_require_any uim xim +} + +src_prepare() { + epatch "${FILESDIR}/${P}-mkdir.patch" + mv py-compile py-compile.orig || die + ln -s "$(type -P true)" py-compile || die +} + +src_configure() { + econf \ + $(use_enable debug) \ + $(use_enable ibus) \ + $(use_enable nls) \ + $(use_enable xim) || die +} + +src_install() { + emake install DESTDIR="${D}" || die "Install failed" + + dodoc AUTHORS ChangeLog NEWS README TODO || die +} + +pkg_postinst() { + use ibus && python_mod_optimize /usr/share/ibus-${PN}/setup + if use xim ; then + elog "To use sunpinyin with XIM, you should use the following" + elog "in your user startup scripts such as .xinitrc or .xprofile:" + elog "XMODIFIERS=@im=xsunpinyin ; export XMODIFIERS" + fi +} + +pkg_postrm() { + use ibus && python_mod_cleanup /usr/share/ibus-${PN}/setup +} |