diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-i18n/uim | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-i18n/uim')
-rw-r--r-- | app-i18n/uim/Manifest | 1 | ||||
-rw-r--r-- | app-i18n/uim/files/50uim-gentoo.el | 4 | ||||
-rw-r--r-- | app-i18n/uim/files/uim-1.5.4-zhTW.patch | 12 | ||||
-rw-r--r-- | app-i18n/uim/files/uim-1.6.0-gentoo.patch | 11 | ||||
-rw-r--r-- | app-i18n/uim/files/xinput-uim | 6 | ||||
-rw-r--r-- | app-i18n/uim/metadata.xml | 19 | ||||
-rw-r--r-- | app-i18n/uim/uim-1.8.6-r1.ebuild | 232 |
7 files changed, 285 insertions, 0 deletions
diff --git a/app-i18n/uim/Manifest b/app-i18n/uim/Manifest new file mode 100644 index 000000000000..fa864158810b --- /dev/null +++ b/app-i18n/uim/Manifest @@ -0,0 +1 @@ +DIST uim-1.8.6.tar.bz2 6500739 SHA256 7b1ea803c73f3478917166f04f67cce6e45ad7ea5ab6df99b948c17eb1cb235f SHA512 26a95d3b51ef7a99108234b9af30ee7b74141cb3af13d092d4cdbf0749f630934cfd67f74b09dacc3adcdce4a390104489d68a4e2419ec07418645a9b4e5715b WHIRLPOOL 77362b5ac6bea217b4373184eb19d79c0b19a8c3f9c27945abccfd414d0409a33438a3cd1d1d2370b6b2f7154a6c35688ae4b2e57f50dc29524bf71938a38a28 diff --git a/app-i18n/uim/files/50uim-gentoo.el b/app-i18n/uim/files/50uim-gentoo.el new file mode 100644 index 000000000000..350f6216139f --- /dev/null +++ b/app-i18n/uim/files/50uim-gentoo.el @@ -0,0 +1,4 @@ +;;; app-i18n/uim site-lisp configuration + +(add-to-list 'load-path "@SITELISP@") +(autoload 'uim-mode "uim" nil t) diff --git a/app-i18n/uim/files/uim-1.5.4-zhTW.patch b/app-i18n/uim/files/uim-1.5.4-zhTW.patch new file mode 100644 index 000000000000..3836a210caa8 --- /dev/null +++ b/app-i18n/uim/files/uim-1.5.4-zhTW.patch @@ -0,0 +1,12 @@ +diff -Naur uim-1.5.4.orig/xim/convdisp.cpp uim-1.5.4/xim/convdisp.cpp +--- uim-1.5.4.orig/xim/convdisp.cpp 2008-02-13 23:43:42.000000000 +0900 ++++ uim-1.5.4/xim/convdisp.cpp 2008-12-10 02:04:35.000000000 +0900 +@@ -69,7 +69,7 @@ + #endif + + const char *fontset_zhCN = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -isas-fangsong ti-medium-r-normal--16-160-72-72-c-160-gb2312.1980-0"; +-const char *fontset_zhTW = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -taipei-fixed-medium-r-normal--16-150-75-75-c-160-big5-0"; ++const char *fontset_zhTW = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -eten-fixed-medium-r-normal--16-150-75-75-c-160-big5.eten-0"; + const char *fontset_ja = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -jis-fixed-medium-r-normal--16-*-75-75-c-160-jisx0208.1983-0, -sony-fixed-medium-r-normal--16-*-*-*-c-80-jisx0201.1976-0"; + const char *fontset_ko = "-sony-fixed-medium-r-normal--16-*-*-*-c-80-iso8859-1, -daewoo-gothic-medium-r-normal--16-120-100-100-c-160-ksc5601.1987-0"; + diff --git a/app-i18n/uim/files/uim-1.6.0-gentoo.patch b/app-i18n/uim/files/uim-1.6.0-gentoo.patch new file mode 100644 index 000000000000..206a1cdfb1e0 --- /dev/null +++ b/app-i18n/uim/files/uim-1.6.0-gentoo.patch @@ -0,0 +1,11 @@ +diff -Naur uim-1.6.0.orig/configure.ac uim-1.6.0/configure.ac +--- uim-1.6.0.orig/configure.ac 2010-08-02 09:30:14.000000000 +0900 ++++ uim-1.6.0/configure.ac 2010-08-14 08:30:34.000000000 +0900 +@@ -1696,6 +1696,7 @@ + + QT_CONFIG_OPTS="release" + fi ++QT_CONFIG_OPTS="$QT_CONFIG_OPTS nostrip" + + AC_ARG_ENABLE(warnings-into-error, + AC_HELP_STRING([--enable-warnings-into-error], diff --git a/app-i18n/uim/files/xinput-uim b/app-i18n/uim/files/xinput-uim new file mode 100644 index 000000000000..a0969dd9f01a --- /dev/null +++ b/app-i18n/uim/files/xinput-uim @@ -0,0 +1,6 @@ +XIM=uim +XIM_PROGRAM="@EPREFIX@/usr/bin/uim-xim" +XIM_ARGS= +GTK_IM_MODULE=uim +QT_IM_MODULE=uim +SHORT_DESC=UIM diff --git a/app-i18n/uim/metadata.xml b/app-i18n/uim/metadata.xml new file mode 100644 index 000000000000..dcb569955398 --- /dev/null +++ b/app-i18n/uim/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>cjk</herd> +<longdescription lang="en"> + uim is a simple, secure and flexible input method library. At the moment + Anthy, SKK, Prime, T-code, TUT-code (these are Japanese input method), + Pinyin (Chinese input method), Hangul (Korean input method), IPA + (International Phonetic Alphabet) are implemented. You can extend the + library with Scheme thus easily, or with C if it becomes rather complicated. +</longdescription> +<use> + <flag name='anthy'>Enable support for <pkg>app-i18n/anthy</pkg> input method + </flag> + <flag name='eb'>Enable support for <pkg>dev-libs/eb</pkg></flag> + <flag name='gtk3'>Enable support for <pkg>x11-libs/gtk+</pkg>:3</flag> + <flag name='skk'>Enable support for <pkg>app-i18n/skk-jisyo</pkg></flag> +</use> +</pkgmetadata> diff --git a/app-i18n/uim/uim-1.8.6-r1.ebuild b/app-i18n/uim/uim-1.8.6-r1.ebuild new file mode 100644 index 000000000000..101af4b3e009 --- /dev/null +++ b/app-i18n/uim/uim-1.8.6-r1.ebuild @@ -0,0 +1,232 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" +inherit autotools eutils multilib elisp-common gnome2-utils + +DESCRIPTION="Simple, secure and flexible input method library" +HOMEPAGE="http://code.google.com/p/uim/" +SRC_URI="http://uim.googlecode.com/files/${P}.tar.bz2" + +LICENSE="BSD GPL-2 LGPL-2.1" +SLOT="0" +KEYWORDS="amd64 hppa ppc ppc64 x86" +IUSE="+anthy canna curl eb emacs expat libffi gtk gtk3 kde libedit libnotify m17n-lib ncurses nls qt4 skk sqlite ssl static-libs test unicode X xft linguas_zh_CN linguas_zh_TW linguas_ja linguas_ko" + +RESTRICT="test" + +REQUIRED_USE="gtk? ( X ) qt4? ( X )" + +RDEPEND="X? ( + x11-libs/libX11 + x11-libs/libXft + x11-libs/libXt + x11-libs/libICE + x11-libs/libSM + x11-libs/libXext + x11-libs/libXrender + ) + anthy? ( + unicode? ( >=app-i18n/anthy-8622 ) + !unicode? ( app-i18n/anthy ) + ) + canna? ( app-i18n/canna ) + curl? ( >=net-misc/curl-7.16.4 ) + eb? ( dev-libs/eb ) + emacs? ( virtual/emacs ) + expat? ( dev-libs/expat ) + libffi? ( virtual/libffi ) + gtk? ( >=x11-libs/gtk+-2.4:2 ) + gtk3? ( x11-libs/gtk+:3 ) + kde? ( >=kde-base/kdelibs-4 ) + libedit? ( dev-libs/libedit ) + libnotify? ( >=x11-libs/libnotify-0.4 ) + m17n-lib? ( >=dev-libs/m17n-lib-1.3.1 ) + ncurses? ( sys-libs/ncurses ) + nls? ( virtual/libintl ) + qt4? ( dev-qt/qtgui:4[qt3support] ) + skk? ( app-i18n/skk-jisyo ) + sqlite? ( dev-db/sqlite:3 ) + ssl? ( dev-libs/openssl ) + !dev-scheme/sigscheme" +# scim? ( >=app-i18n/scim-1.3.0 ) # broken +# wnn? ( app-i18n/wnn ) + +DEPEND="${RDEPEND} + dev-util/intltool + virtual/pkgconfig + >=sys-devel/gettext-0.15 + kde? ( dev-util/cmake ) + X? ( + x11-proto/xextproto + x11-proto/xproto + )" + +RDEPEND="${RDEPEND} + X? ( + media-fonts/font-sony-misc + linguas_zh_CN? ( + || ( media-fonts/font-isas-misc media-fonts/intlfonts ) + ) + linguas_zh_TW? ( + media-fonts/intlfonts + ) + linguas_ja? ( + || ( media-fonts/font-jis-misc media-fonts/intlfonts ) + ) + linguas_ko? ( + || ( media-fonts/font-daewoo-misc media-fonts/intlfonts ) + ) + )" +# test? ( dev-scheme/gauche ) + +SITEFILE=50${PN}-gentoo.el + +pkg_setup() { + strip-linguas fr ja ko + if [[ -z "${LINGUAS}" ]]; then + # no linguas set, using the default one + LINGUAS=" " + fi +} + +src_prepare() { + epatch \ + "${FILESDIR}"/${PN}-1.6.0-gentoo.patch \ + "${FILESDIR}"/${PN}-1.5.4-zhTW.patch + + # bug 275420 + sed -i -e "s:\$libedit_path/lib:/$(get_libdir):g" configure.ac || die "sed failed!" + + AT_NO_RECURSIVE=1 eautoreconf +} + +src_configure() { + local myconf + + if (use gtk || use gtk3) && (use anthy || use canna) ; then + myconf="${myconf} --enable-dict" + else + myconf="${myconf} --disable-dict" + fi + + if use gtk || use gtk3 || use qt4 ; then + myconf="${myconf} --enable-pref" + else + myconf="${myconf} --disable-pref" + fi + + if use anthy ; then + if use unicode ; then + myconf="${myconf} --with-anthy-utf8" + else + myconf="${myconf} --with-anthy" + fi + else + myconf="${myconf} --without-anthy" + fi + + if use libnotify ; then + myconf="${myconf} --enable-notify=libnotify" + fi + + econf $(use_with X x) \ + $(use_with canna) \ + $(use_with curl) \ + $(use_with eb) \ + $(use_enable emacs) \ + $(use_with emacs lispdir "${SITELISP}") \ + $(use_with expat) \ + $(use_with libffi ffi) \ + --disable-gnome-applet \ + $(use_with gtk gtk2) \ + $(use_with gtk3) \ + $(use_with libedit) \ + --disable-kde-applet \ + $(use_enable kde kde4-applet) \ + $(use_with m17n-lib m17nlib) \ + $(use_enable ncurses fep) \ + $(use_enable nls) \ + --without-qt \ + --without-qt-immodule \ + $(use_with qt4 qt4) \ + $(use_with qt4 qt4-immodule) \ + $(use_enable qt4 qt4-qt3support) \ + $(use_with skk) \ + $(use_with sqlite sqlite3) \ + $(use_enable ssl openssl) \ + $(use_enable static-libs static) \ + $(use_with xft) \ + ${myconf} +} + +src_compile() { + default + + if use emacs; then + cd emacs + elisp-compile *.el || die "elisp-compile failed!" + fi +} + +src_install() { + # parallel make install b0rked, bug #222677 + emake -j1 INSTALL_ROOT="${D}" DESTDIR="${D}" install + + dodoc AUTHORS ChangeLog* NEWS README RELNOTE + if use emacs; then + elisp-install uim-el emacs/*.elc || die "elisp-install failed!" + elisp-site-file-install "${FILESDIR}/${SITEFILE}" uim-el \ + || die "elisp-site-file-install failed!" + fi + + find "${ED}/usr/$(get_libdir)/uim" -name '*.la' -exec rm {} + + use static-libs || find "${ED}" -name '*.la' -exec rm {} + + + sed -e "s:@EPREFIX@:${EPREFIX}:" "${FILESDIR}/xinput-uim" > "${T}/uim.conf" || die "sed failed!" + insinto /etc/X11/xinit/xinput.d + doins "${T}/uim.conf" + + # collision with dev-scheme/sigscheme, bug #330975 + # find "${ED}" -name '*gcroots*' -delete || die + + #rmdir "${ED}"/usr/share/doc/sigscheme || die +} + +pkg_postinst() { + elog + elog "New input method switcher has been introduced. You need to set" + elog + elog "% GTK_IM_MODULE=uim ; export GTK_IM_MODULE" + elog "% QT_IM_MODULE=uim ; export QT_IM_MODULE" + elog "% XMODIFIERS=@im=uim ; export XMODIFIERS" + elog + elog "If you would like to use uim-anthy as default input method, put" + elog "(define default-im-name 'anthy)" + elog "to your ~/.uim." + elog + elog "All input methods can be found by running uim-im-switcher-gtk, " + elog "uim-im-switcher-gtk3 or uim-im-switcher-qt4." + elog + elog "If you upgrade from a version of uim older than 1.4.0," + elog "you should run revdep-rebuild." + + use gtk && gnome2_query_immodules_gtk2 + use gtk3 && gnome2_query_immodules_gtk3 + if use emacs; then + elisp-site-regen + echo + elog "uim is autoloaded with Emacs with a minimal set of features:" + elog "There is no keybinding defined to call it directly, so please" + elog "create one yourself and choose an input method." + elog "Integration with LEIM is not done with this ebuild, please have" + elog "a look at the documentation how to achieve this." + fi +} + +pkg_postrm() { + use gtk && gnome2_query_immodules_gtk2 + use gtk3 && gnome2_query_immodules_gtk3 + use emacs && elisp-site-regen +} |