From f63a4e6c4690eea28075e25480a52d98cbceed31 Mon Sep 17 00:00:00 2001 From: Matsuu Takuto Date: Wed, 12 Jan 2011 15:14:50 +0000 Subject: Fixed header to work with app-i18n/im-ja. Added static-libs USE flag and canna-2ch local USE flag. Package-Manager: portage-2.1.9.28/cvs/Linux x86_64 --- app-i18n/anthy/ChangeLog | 11 +++- app-i18n/anthy/anthy-9100h-r1.ebuild | 64 ++++++++++++++++++++++ .../anthy/files/anthy-9100h-anthy_context_t.patch | 12 ++++ app-i18n/anthy/metadata.xml | 3 + 4 files changed, 88 insertions(+), 2 deletions(-) create mode 100644 app-i18n/anthy/anthy-9100h-r1.ebuild create mode 100644 app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch (limited to 'app-i18n') diff --git a/app-i18n/anthy/ChangeLog b/app-i18n/anthy/ChangeLog index 22660c48fcc3..84c45b653d6c 100644 --- a/app-i18n/anthy/ChangeLog +++ b/app-i18n/anthy/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-i18n/anthy -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-i18n/anthy/ChangeLog,v 1.131 2010/11/25 12:30:06 hattya Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/anthy/ChangeLog,v 1.132 2011/01/12 15:14:50 matsuu Exp $ + +*anthy-9100h-r1 (12 Jan 2011) + + 12 Jan 2011; MATSUU Takuto +anthy-9100h-r1.ebuild, + +files/anthy-9100h-anthy_context_t.patch, metadata.xml: + Fixed header to work with app-i18n/im-ja. Added static-libs USE flag and + canna-2ch local USE flag. 25 Nov 2010; Akinori Hattori -files/anthy-7500b-asneeded.patch, -files/anthy-mkdic-gcc34.patch, diff --git a/app-i18n/anthy/anthy-9100h-r1.ebuild b/app-i18n/anthy/anthy-9100h-r1.ebuild new file mode 100644 index 000000000000..fdfb90f1ac66 --- /dev/null +++ b/app-i18n/anthy/anthy-9100h-r1.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-i18n/anthy/anthy-9100h-r1.ebuild,v 1.1 2011/01/12 15:14:50 matsuu Exp $ + +EAPI=3 +inherit elisp-common eutils + +DESCRIPTION="Anthy -- free and secure Japanese input system" +HOMEPAGE="http://anthy.sourceforge.jp/" +SRC_URI="mirror://sourceforge.jp/anthy/37536/${P}.tar.gz" + +LICENSE="GPL-2 LGPL-2.1" +#KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~sparc ~x86" +SLOT="0" +IUSE="canna-2ch emacs static-libs" + +DEPEND="!app-i18n/anthy-ss + canna-2ch? ( app-dicts/canna-2ch ) + emacs? ( virtual/emacs )" +RDEPEND="${DEPEND}" + +src_prepare() { + epatch "${FILESDIR}/${P}-anthy_context_t.patch" + + if use canna-2ch; then + einfo "Adding nichan.ctd to anthy.dic." + sed -i \ + -e "/set_input_encoding eucjp/aread ${EPREFIX}/var/lib/canna/dic/canna/nichan.ctd" \ + mkworddic/dict.args.in || die + fi +} + +src_configure() { + local myconf + + use emacs || myconf="EMACS=no" + + econf \ + $(use_enable static-libs static) \ + ${myconf} || die +} + +src_install() { + emake DESTDIR="${D}" install || die + + if use emacs ; then + elisp-site-file-install "${FILESDIR}"/50anthy-gentoo.el || die + fi + + dodoc AUTHORS DIARY NEWS README ChangeLog || die + + rm -f doc/Makefile* + docinto doc + dodoc doc/* || die +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch b/app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch new file mode 100644 index 000000000000..b46a136663bc --- /dev/null +++ b/app-i18n/anthy/files/anthy-9100h-anthy_context_t.patch @@ -0,0 +1,12 @@ +diff -Naur anthy-9100h.orig/anthy/input.h anthy-9100h/anthy/input.h +--- anthy-9100h.orig/anthy/input.h 2006-05-13 18:28:35.000000000 +0900 ++++ anthy-9100h/anthy/input.h 2011-01-12 23:36:39.629749518 +0900 +@@ -10,6 +10,8 @@ + #ifndef INPUT_H_INCLUDE + #define INPUT_H_INCLUDE + ++#include "anthy.h" ++ + #ifdef __cplusplus + extern "C" { + #endif diff --git a/app-i18n/anthy/metadata.xml b/app-i18n/anthy/metadata.xml index 85cd1cffb07b..73e1b6781c3e 100644 --- a/app-i18n/anthy/metadata.xml +++ b/app-i18n/anthy/metadata.xml @@ -13,4 +13,7 @@ app-i18n/uim (XIM, GTK+ immodule) and virtual/emacs (to enable Anthy support for emacs, build this package with emacs USE flag). + + Enable support for app-dicts/canna-2ch + -- cgit v1.2.3-65-gdbad