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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Sep 23 16:31:00 2009 UTC (4 years, 10 months ago) by patrick
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +4 -6 lines
Remove virtual/libc
(Portage version: 2.2_rc41/cvs/Linux x86_64)

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.ebuild,v 1.6 2008/12/17 15:28:04 matsuu Exp $
4
5 inherit eutils
6
7 DESCRIPTION="C/Migemo -- Migemo library implementation in C"
8 HOMEPAGE="http://www.kaoriya.net/#CMIGEMO"
9 SRC_URI="http://www.kaoriya.net/dist/var/${P}.tar.bz2"
10
11 LICENSE="cmigemo"
12 SLOT="0"
13 KEYWORDS="x86 alpha ppc" # development branch
14 IUSE="emacs"
15
16 DEPEND="app-i18n/qkc
17 app-dicts/migemo-dict"
18 RDEPEND="app-dicts/migemo-dict
19 emacs? ( >=app-text/migemo-0.40-r1 )"
20
21 src_unpack() {
22 unpack ${A}
23 cd ${S}
24 epatch ${FILESDIR}/${PN}-1.2-migemo-dict.diff
25 touch ${S}/dict/SKK-JISYO.L
26
27 # Bug #246953
28 sed -i -e "s:-Wl,-rpath[^ ]*::" compile/Make_gcc.mak || die
29 }
30
31 src_compile() {
32 emake CFLAGS="-fPIC ${CFLAGS}" gcc || die
33 }
34
35 src_install() {
36 make \
37 prefix=${D}/usr \
38 docdir=${D}/usr/share/doc/${P} \
39 gcc-install || die
40
41 mv ${D}/usr/share/migemo/euc-jp/*.dat ${D}/usr/share/migemo
42 rm -rf ${D}/usr/share/migemo/{cp932,euc-jp}
43
44 if has_version 'app-editors/vim-core' ; then
45 insinto /usr/share/vim/vimfiles/plugin
46 doins tools/migemo.vim
47 fi
48
49 dodoc tools/migemo.vim
50 dodoc doc/{README_j,TODO_j,vimigemo}.txt
51 }
52
53 pkg_postinst() {
54 if use emacs ; then
55 elog
56 elog "Please add to your ~/.emacs"
57 elog " (setq migemo-command \"cmigemo\")"
58 elog " (setq migemo-options '(\"-q\" \"--emacs\" \"-i\" \"\\\\a\"))"
59 elog " (setq migemo-dictionary \"/usr/share/migemo/migemo-dict\")"
60 elog " (setq migemo-user-dictionary nil)"
61 elog " (setq migemo-regex-dictionary nil)"
62 elog "to use cmigemo instead of migemo under emacs."
63 elog
64 fi
65 }

  ViewVC Help
Powered by ViewVC 1.1.20