summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMamoru Komachi <usata@gentoo.org>2003-09-30 18:13:19 +0000
committerMamoru Komachi <usata@gentoo.org>2003-09-30 18:13:19 +0000
commit2f61136147589ee1793f2c5a5a334ae764738732 (patch)
treea24da1b8009f25e583a867a164536c184d5352ab /app-text/cmigemo
parentNew ebuild. Closing Bug #30006 (diff)
downloadgentoo-2-2f61136147589ee1793f2c5a5a334ae764738732.tar.gz
gentoo-2-2f61136147589ee1793f2c5a5a334ae764738732.tar.bz2
gentoo-2-2f61136147589ee1793f2c5a5a334ae764738732.zip
New ebuild. Closing Bug #30006
Diffstat (limited to 'app-text/cmigemo')
-rw-r--r--app-text/cmigemo/ChangeLog11
-rw-r--r--app-text/cmigemo/Manifest4
-rw-r--r--app-text/cmigemo/cmigemo-1.1.013.ebuild73
-rw-r--r--app-text/cmigemo/files/cmigemo-1.1.013-migemo-dict.diff24
-rw-r--r--app-text/cmigemo/files/digest-cmigemo-1.1.0131
-rw-r--r--app-text/cmigemo/metadata.xml9
6 files changed, 121 insertions, 1 deletions
diff --git a/app-text/cmigemo/ChangeLog b/app-text/cmigemo/ChangeLog
new file mode 100644
index 000000000000..6180e5d34a2f
--- /dev/null
+++ b/app-text/cmigemo/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for app-text/cmigemo
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/cmigemo/ChangeLog,v 1.1 2003/09/30 18:13:15 usata Exp $
+
+*cmigemo-1.1.013 (01 Oct 2003)
+
+ 01 Oct 2003; Mamoru KOMACHI <usata@gentoo.org> cmigemo-1.1.013.ebuild,
+ files/cmigemo-1.1.013-migemo-dict.diff:
+ Initial import. Ebuild submitted by Hattya <hattya@inter7.jp>.
+ This closes Bug #30006
+
diff --git a/app-text/cmigemo/Manifest b/app-text/cmigemo/Manifest
index 1310c60a2365..1a0cd36d8351 100644
--- a/app-text/cmigemo/Manifest
+++ b/app-text/cmigemo/Manifest
@@ -1,3 +1,5 @@
-MD5 b5c111f29fb64d069ebf36e6f2b2db9b cmigemo-1.1.013.ebuild 1600
+MD5 0c2b881e2b7a42eaf2e22880c2de8abf cmigemo-1.1.013.ebuild 1620
+MD5 212b6ec56b7acb3a4cc0bb8ddd2f95ef metadata.xml 247
+MD5 0c3ac6f7b4ffa16f15f04e9d620d4b2f ChangeLog 451
MD5 fc686616b2e4c30d95c2492da560a48e files/cmigemo-1.1.013-migemo-dict.diff 844
MD5 d703741eecd66b99d2ee5f6528d18492 files/digest-cmigemo-1.1.013 67
diff --git a/app-text/cmigemo/cmigemo-1.1.013.ebuild b/app-text/cmigemo/cmigemo-1.1.013.ebuild
new file mode 100644
index 000000000000..335846504ef9
--- /dev/null
+++ b/app-text/cmigemo/cmigemo-1.1.013.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/cmigemo/cmigemo-1.1.013.ebuild,v 1.1 2003/09/30 18:13:15 usata Exp $
+
+inherit eutils
+
+IUSE="emacs"
+
+DESCRIPTION="C/Migemo -- Migemo library implementation in C"
+HOMEPAGE="http://www.kaoriya.net/#CMIGEMO"
+SRC_URI="http://www.kaoriya.net/dist/var/${P}.tar.bz2"
+
+LICENSE="BSD | LGPL-2.1"
+KEYWORDS="~x86"
+SLOT="0"
+S="${WORKDIR}/${P}"
+
+DEPEND="virtual/glibc
+ app-i18n/qkc
+ app-dicts/migemo-dict"
+RDEPEND="virtual/glibc
+ app-dicts/migemo-dict
+ emacs? ( app-text/migemo )"
+
+src_unpack() {
+
+ unpack ${A}
+
+ has_version 'app-editors/vim-core' && epatch ${FILESDIR}/${P}-migemo-dict.diff
+
+ touch ${S}/dict/SKK-JISYO.L
+
+}
+
+src_compile() {
+
+ emake CFLAGS="${CFLAGS}" gcc || die
+
+}
+
+src_install() {
+
+ make prefix=${D}/usr \
+ docdir=${D}/usr/share/doc/${P} \
+ gcc-install || die
+
+ mv ${D}/usr/share/migemo/euc-jp/*.dat ${D}/usr/share/migemo
+ rm -rf ${D}/usr/share/migemo/{cp932,euc-jp}
+
+ if has_version 'app-editors/vim-core'; then
+ insinto /usr/share/vim/vimfiles/plugin
+ doins tools/migemo.vim
+ fi
+
+ dodoc tools/migemo.vim
+ dodoc doc/{README_j,TODO_j,vimigemo}.txt
+
+}
+
+pkg_postinst() {
+
+ if use emacs; then
+ einfo ""
+ einfo "Please add to your ~/.emacs"
+ einfo " (setq migemo-command \"cmigemo\")"
+ einfo " (setq migemo-options '(\"-q\" \"--emacs\" \"-i\" \"\\\\a\"))"
+ einfo " (setq migemo-dictionary \"/usr/share/migemo/migemo-dict\")"
+ einfo " (setq migemo-user-dictionary nil)"
+ einfo " (setq migemo-regex-dictionary nil)"
+ einfo ""
+ fi
+
+}
diff --git a/app-text/cmigemo/files/cmigemo-1.1.013-migemo-dict.diff b/app-text/cmigemo/files/cmigemo-1.1.013-migemo-dict.diff
new file mode 100644
index 000000000000..cbc46b304340
--- /dev/null
+++ b/app-text/cmigemo/files/cmigemo-1.1.013-migemo-dict.diff
@@ -0,0 +1,24 @@
+diff -urN cmigemo-1.1.013.orig/tools/migemo.vim cmigemo-1.1.013/tools/migemo.vim
+--- cmigemo-1.1.013.orig/tools/migemo.vim 2003-09-29 08:06:12.000000000 +0900
++++ cmigemo-1.1.013/tools/migemo.vim 2003-09-29 08:06:32.000000000 +0900
+@@ -20,7 +20,7 @@
+ let dict = globpath(path, "migemo-dict")
+ endif
+ if dict == ''
+- let dict = '/usr/local/share/migemo/'.&encoding.'/migemo-dict'
++ let dict = '/usr/share/migemo/migemo-dict'
+ if !filereadable(dict)
+ let dict = ''
+ endif
+@@ -43,7 +43,10 @@
+ nnoremap <Leader>f :call <SID>SearchChar(0)<CR>
+ else
+ " non-builtin version
+- let g:migemodict = s:SearchDict()
++ if !exists('g:migemodict')
++ let g:migemodict = s:SearchDict()
++ endif
++
+ command! -nargs=* Migemo :call <SID>MigemoSearch(<q-args>)
+ nnoremap <silent> <leader>mi :call <SID>MigemoSearch('')<cr>
+
diff --git a/app-text/cmigemo/files/digest-cmigemo-1.1.013 b/app-text/cmigemo/files/digest-cmigemo-1.1.013
new file mode 100644
index 000000000000..05c554c5b61c
--- /dev/null
+++ b/app-text/cmigemo/files/digest-cmigemo-1.1.013
@@ -0,0 +1 @@
+MD5 032655b5e9f664d4e6b207b79d0cafeb cmigemo-1.1.013.tar.bz2 33374
diff --git a/app-text/cmigemo/metadata.xml b/app-text/cmigemo/metadata.xml
new file mode 100644
index 000000000000..cda4b8a7ba2f
--- /dev/null
+++ b/app-text/cmigemo/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>cjk</herd>
+<maintainer>
+ <email>usata@gentoo.org</email>
+ <name>Mamoru KOMACHI</name>
+</maintainer>
+</pkgmetadata>