/[gentoo-x86]/app-text/cmigemo/cmigemo-1.3c-r1.ebuild
Gentoo

Contents of /app-text/cmigemo/cmigemo-1.3c-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Tue Apr 14 11:24:02 2009 UTC (5 years, 3 months ago) by armin76
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +2 -2 lines
x86 stable wrt #246953
(Portage version: 2.1.6.7/cvs/Linux ia64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/cmigemo/cmigemo-1.3c-r1.ebuild,v 1.2 2009/04/08 16:35:25 klausman Exp $
4
5 EAPI=2
6 inherit eutils flag-o-matic multilib toolchain-funcs
7
8 MY_P="${P}-MIT"
9 DESCRIPTION="C/Migemo -- Migemo library implementation in C"
10 HOMEPAGE="http://www.kaoriya.net/#CMIGEMO"
11 SRC_URI="http://www.kaoriya.net/dist/var/${MY_P}.tar.bz2"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="alpha ~amd64 ~ppc x86"
16 IUSE="emacs unicode vim-syntax"
17
18 DEPEND="dev-lang/perl
19 >=app-dicts/migemo-dict-200812[unicode=]
20 app-i18n/qkc"
21 RDEPEND=">=app-dicts/migemo-dict-200812[unicode=]
22 emacs? ( >=app-text/migemo-0.40-r1 )"
23
24 S="${WORKDIR}/${MY_P}"
25
26 src_prepare() {
27 epatch "${FILESDIR}/${PN}-1.2-migemo-dict.diff"
28 touch dict/SKK-JISYO.L
29 if use unicode ; then
30 sed -i -e "/gcc:/s/euc-jp/utf-8/" dict/dict.mak || die
31 fi
32
33 # Bug #246953
34 sed -i -e "s:-Wl,-rpath[^ ]*::" compile/Make_gcc.mak || die
35 }
36
37 src_compile() {
38 append-flags -fPIC
39 emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" gcc || die
40 }
41
42 src_install() {
43 # parallel make install borks
44 emake -j1 \
45 prefix="${D}/usr" \
46 libdir="${D}/usr/$(get_libdir)" \
47 gcc-install || die
48
49 local encoding
50 if use unicode ; then
51 encoding="utf-8"
52 else
53 encoding="euc-jp"
54 fi
55
56 mv "${D}/usr/share/migemo/${encoding}/"*.dat "${D}/usr/share/migemo/"
57 rm -rf "${D}/usr/share/migemo/"{cp932,euc-jp,utf-8}
58
59 if use vim-syntax ; then
60 insinto /usr/share/vim/vimfiles/plugin
61 doins tools/migemo.vim
62 fi
63
64 dodoc doc/{README_j,TODO_j,vimigemo}.txt
65 }
66
67 pkg_postinst() {
68 if use emacs ; then
69 elog
70 elog "Please add to your ~/.emacs"
71 elog " (setq migemo-command \"cmigemo\")"
72 elog " (setq migemo-options '(\"-q\" \"--emacs\" \"-i\" \"\\\\a\"))"
73 elog " (setq migemo-dictionary \"/usr/share/migemo/migemo-dict\")"
74 elog " (setq migemo-user-dictionary nil)"
75 elog " (setq migemo-regex-dictionary nil)"
76 elog "to use cmigemo instead of migemo under emacs."
77 elog
78 fi
79 }

  ViewVC Help
Powered by ViewVC 1.1.20