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/x-unikey | |
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/x-unikey')
-rw-r--r-- | app-i18n/x-unikey/Manifest | 1 | ||||
-rw-r--r-- | app-i18n/x-unikey/files/01x-unikey | 9 | ||||
-rw-r--r-- | app-i18n/x-unikey/files/x-unikey-1.0.4-gcc43.patch | 12 | ||||
-rw-r--r-- | app-i18n/x-unikey/files/x-unikey-1.0.4-gcc44.patch | 31 | ||||
-rw-r--r-- | app-i18n/x-unikey/files/x-unikey-1.0.4-gentoo.patch | 20 | ||||
-rw-r--r-- | app-i18n/x-unikey/metadata.xml | 8 | ||||
-rw-r--r-- | app-i18n/x-unikey/x-unikey-1.0.4-r2.ebuild | 78 |
7 files changed, 159 insertions, 0 deletions
diff --git a/app-i18n/x-unikey/Manifest b/app-i18n/x-unikey/Manifest new file mode 100644 index 000000000000..be3c40cefd41 --- /dev/null +++ b/app-i18n/x-unikey/Manifest @@ -0,0 +1 @@ +DIST x-unikey-1.0.4.tar.bz2 561391 SHA256 aa7dd444853538bcba0f24c4c19692c34d4553a1df213a260c2628a7116b2dd9 SHA512 47abe4087957c4926550a0121d5cdc7b760f39691fae91c8e0562fc0f4577c22a04192667d362c9838b87fd97d2111afef1260fc88d8234bc5656bab248b5b06 WHIRLPOOL 144788e4a43e55c5a30fbb11eba6953d147823d3229550cbec370d583fd1a74e97f68c3e14b1988074788561f4e0adb836829f06ab88b1f725051dd3840256d9 diff --git a/app-i18n/x-unikey/files/01x-unikey b/app-i18n/x-unikey/files/01x-unikey new file mode 100644 index 000000000000..595b6a183b55 --- /dev/null +++ b/app-i18n/x-unikey/files/01x-unikey @@ -0,0 +1,9 @@ +# x-unikey works only with *.UTF-8 locales +#LANG=en_US.UTF-8 + +# Uncomment this if you use XIM. +#GTK_IM_MODULE="xim" +#XMODIFIERS="@im=unikey" + +# If you use unikey-gtk only, then comment this +#GTK_IM_MODULE="unikey" diff --git a/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc43.patch b/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc43.patch new file mode 100644 index 000000000000..c7e46ff686b8 --- /dev/null +++ b/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc43.patch @@ -0,0 +1,12 @@ +diff -Naur x-unikey-1.0.4.orig/src/ukengine/usrkeymap.cpp x-unikey-1.0.4/src/ukengine/usrkeymap.cpp +--- x-unikey-1.0.4.orig/src/ukengine/usrkeymap.cpp 2008-12-18 00:39:38.000000000 +0900 ++++ x-unikey-1.0.4/src/ukengine/usrkeymap.cpp 2008-12-18 00:38:56.000000000 +0900 +@@ -23,6 +23,8 @@ + + #include "stdafx.h" + #include <iostream> ++#include <cstring> ++ + using namespace std; + + #include <ctype.h> diff --git a/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc44.patch b/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc44.patch new file mode 100644 index 000000000000..5e59ca131b70 --- /dev/null +++ b/app-i18n/x-unikey/files/x-unikey-1.0.4-gcc44.patch @@ -0,0 +1,31 @@ +diff -ur x-unikey-1.0.4.orig/src/ukengine/mactab.cpp x-unikey-1.0.4/src/ukengine/mactab.cpp +--- x-unikey-1.0.4.orig/src/ukengine/mactab.cpp 2006-04-09 14:46:02.000000000 +0300 ++++ x-unikey-1.0.4/src/ukengine/mactab.cpp 2009-08-10 14:50:50.000000000 +0300 +@@ -287,7 +287,7 @@ + char key[MAX_MACRO_KEY_LEN]; + + // Parse the input item +- char * pos = strchr(item, ':'); ++ const char * pos = strchr(item, ':'); + if (pos == NULL) + return -1; + int keyLen = (int)(pos - item); +diff -ur x-unikey-1.0.4.orig/src/ukengine/usrkeymap.cpp x-unikey-1.0.4/src/ukengine/usrkeymap.cpp +--- x-unikey-1.0.4.orig/src/ukengine/usrkeymap.cpp 2006-04-09 02:31:40.000000000 +0300 ++++ x-unikey-1.0.4/src/ukengine/usrkeymap.cpp 2009-08-10 14:48:44.000000000 +0300 +@@ -21,6 +21,8 @@ + * Boston, MA 02111-1307, USA. + */ + ++#include <stdio.h> ++ + #include "stdafx.h" + #include <iostream> + using namespace std; +@@ -262,4 +264,4 @@ + return i; + } + return -1; +-} +\ No newline at end of file ++} diff --git a/app-i18n/x-unikey/files/x-unikey-1.0.4-gentoo.patch b/app-i18n/x-unikey/files/x-unikey-1.0.4-gentoo.patch new file mode 100644 index 000000000000..e3bef43b98b2 --- /dev/null +++ b/app-i18n/x-unikey/files/x-unikey-1.0.4-gentoo.patch @@ -0,0 +1,20 @@ +--- x-unikey-1.0.4.orig/src/unikey-gtk/Makefile.am 2005-10-16 12:39:15.000000000 +0900 ++++ x-unikey-1.0.4/src/unikey-gtk/Makefile.am 2008-12-18 00:48:37.000000000 +0900 +@@ -34,7 +34,7 @@ + + install-data-hook: + gtk-query-immodules-2.0 \ +- > @gtk_sysconfdir@/gtk.immodules ++ > $(DESTDIR)@gtk_sysconfdir@/gtk.immodules + + ## $(moduledir)/im-vn.la \ + ## @GTK_PREFIX@/lib/gtk-2.0/@GTK_VERSION@/immodules/*.la \ +@@ -42,7 +42,7 @@ + + uninstall-hook: + gtk-query-immodules-2.0 > \ +- @gtk_sysconfdir@/gtk.immodules ++ $(DESTDIR)@gtk_sysconfdir@/gtk.immodules + ## @GTK_PREFIX@/lib/gtk-2.0/@GTK_VERSION@/immodules/*.la \ + + diff --git a/app-i18n/x-unikey/metadata.xml b/app-i18n/x-unikey/metadata.xml new file mode 100644 index 000000000000..c225088eb91e --- /dev/null +++ b/app-i18n/x-unikey/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>cjk</herd> + <upstream> + <remote-id type="sourceforge">unikey</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-i18n/x-unikey/x-unikey-1.0.4-r2.ebuild b/app-i18n/x-unikey/x-unikey-1.0.4-r2.ebuild new file mode 100644 index 000000000000..d37faa49d463 --- /dev/null +++ b/app-i18n/x-unikey/x-unikey-1.0.4-r2.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit autotools eutils multilib gnome2-utils + +DESCRIPTION="Vietnamese X Input Method" +HOMEPAGE="http://www.unikey.org/" +SRC_URI="mirror://sourceforge/unikey/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc x86" +IUSE="nls gtk" + +RDEPEND="x11-libs/libX11 + x11-libs/libSM + x11-libs/libICE + gtk? ( >=x11-libs/gtk+-2.2:2 ) + nls? ( virtual/libintl )" +DEPEND="${RDEPEND} + dev-libs/glib + virtual/pkgconfig + nls? ( sys-devel/gettext )" + +pkg_setup() { + # An arch specific config directory is used on multilib systems + has_multilib_profile && GTK2_CONFDIR="/etc/gtk-2.0/${CHOST}" + GTK2_CONFDIR=${GTK2_CONFDIR:=/etc/gtk-2.0/} +} + +src_prepare() { + epatch "${FILESDIR}"/${P}-gcc43.patch \ + "${FILESDIR}"/${P}-gcc44.patch \ + "${FILESDIR}"/${P}-gentoo.patch + eautoreconf +} + +src_configure() { + local myconf + # --with-gtk-sysconfdir to prevent sandbox violation only + use gtk && myconf="--with-unikey-gtk --with-gtk-sysconfdir=${GTK2_CONFDIR}" + econf ${myconf} +} + +src_install() { + if use gtk;then + dodir "${GTK2_CONFDIR}" +# emake DESTDIR="${D}" install -C src/unikey-gtk || die + fi +# dobin src/xim/ukxim src/gui/unikey + emake DESTDIR="${D}" install + doenvd "${FILESDIR}/01x-unikey" + + dodoc AUTHORS CREDITS ChangeLog NEWS README TODO + cd doc + dodoc README1ST keymap-syntax manual options ukmacro \ + unikey-manual-0.9.pdf unikey.png unikeyrc +} + +pkg_postinst() { + elog + elog "Go to /etc/env.d/01x-unikey and uncomment appropriate lines" + elog "to enable x-unikey" + elog + if use gtk; then + gnome2_query_immodules_gtk2 + elog "If you want to use x-unikey as the default gtk+ input method," + elog "change GTK_IM_MODULE in /etc/env.d/01x-unikey to \"unikey\"" + elog + fi +} + +pkg_postrm() { + use gtk && gnome2_query_immodules_gtk2 +} |