diff options
Diffstat (limited to 'app-text/cmigemo')
-rw-r--r-- | app-text/cmigemo/ChangeLog | 8 | ||||
-rw-r--r-- | app-text/cmigemo/Manifest | 4 | ||||
-rw-r--r-- | app-text/cmigemo/cmigemo-1.3c-r2.ebuild | 91 | ||||
-rw-r--r-- | app-text/cmigemo/files/cmigemo-1.3c-gentoo.patch | 55 |
4 files changed, 156 insertions, 2 deletions
diff --git a/app-text/cmigemo/ChangeLog b/app-text/cmigemo/ChangeLog index 2469778078f7..13742ed0e8f9 100644 --- a/app-text/cmigemo/ChangeLog +++ b/app-text/cmigemo/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/cmigemo # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/cmigemo/ChangeLog,v 1.19 2009/09/23 16:31:00 patrick Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/cmigemo/ChangeLog,v 1.20 2009/11/08 16:45:17 matsuu Exp $ + +*cmigemo-1.3c-r2 (08 Nov 2009) + + 08 Nov 2009; MATSUU Takuto <matsuu@gentoo.org> +cmigemo-1.3c-r2.ebuild, + +files/cmigemo-1.3c-gentoo.patch: + Fixed documentation installed location, bug #255813. Fixed dependency. 23 Sep 2009; Patrick Lauer <patrick@gentoo.org> cmigemo-1.3c.ebuild: Remove virtual/libc diff --git a/app-text/cmigemo/Manifest b/app-text/cmigemo/Manifest index f844bd8b9ce3..586bc44e8773 100644 --- a/app-text/cmigemo/Manifest +++ b/app-text/cmigemo/Manifest @@ -1,7 +1,9 @@ AUX cmigemo-1.2-migemo-dict.diff 825 RMD160 ab66cde1966d322be1a5b614471734e651ffcda2 SHA1 40ac11a31f1f670cacc709f184809268bbf3a7e9 SHA256 cacc1b65bf7041d9ff3628c1cc3c674ba5a210053addea8c4c3b122891455a84 +AUX cmigemo-1.3c-gentoo.patch 1948 RMD160 a231233eb39d06d1fe05be86c5a89b8fba9c4ba1 SHA1 a332d84d73b6eb3bcb767fb1c2a2367502d8d0e9 SHA256 d985d7802b70afac6b5170b0b82bee0478ef42eef96d0c59c34d0104dd4952b3 DIST cmigemo-1.3c-MIT.tar.bz2 54447 RMD160 0c771867ca9fbe1dd711dbf0f3624edfd2983588 SHA1 4da5c9eb30a9bb54a3e31067b624c36fa8ef742b SHA256 1923882f420aca97d726161ac532491419debd2b746506b1c0ce4fc1dfc79fb6 DIST cmigemo-1.3c.tar.bz2 54323 RMD160 2f10e681e6ab20601c5fa830ecfd3ce68fd15b5c SHA1 39cc8250bc8cc5734fcf679ec39eed474e38e4f1 SHA256 d42fc98e062ff88886b3133905fa540ae41694fdd222ac0b88433046a9b6de59 EBUILD cmigemo-1.3c-r1.ebuild 2025 RMD160 2b700ae7c1a90179c2bcd0a81d5fc5603ccfae1c SHA1 acf829a6ffbc24096201bd883ccdaa50f248680f SHA256 acb25dcc16ea3556e02f7a634e250f5c6866c6f395727ebf099b50d98b59490d +EBUILD cmigemo-1.3c-r2.ebuild 2144 RMD160 3b20641c2bc882972481e247072ddaa9c0cd21bf SHA1 474065f8768fc839749f5d2f6b4c595a1f964d25 SHA256 0689d087df0a896e7cb7a7f5a445296110b99f310152df3b7b505580ca93ab61 EBUILD cmigemo-1.3c.ebuild 1686 RMD160 79de7a4575942778a875e6c4818d00251deeae59 SHA1 87ff197e84c7fad1ba31560eb4abd2948189c9c2 SHA256 c3a96095c4be008b39fa49a5fcff8538f019d88e86b07c57b3bb625d063cf513 -MISC ChangeLog 2864 RMD160 5a35307ac8459fff0b2429e4c855e507c94798a7 SHA1 1efce108dc227f59187ec4fcd2e8233afd2437b8 SHA256 c5457b19baa71b8a1596ea9e35a63a527ac9bd07e9ca03a3575a60b516dd9f2d +MISC ChangeLog 3079 RMD160 4a8fca0edc65c7e9fa7034ac7ff7d3c0564fd861 SHA1 d15a3425801cb404b0a17c91ac59bceb906183f7 SHA256 3b554962a0787e9460270e325960d3e715be3729553d772b5995e3425e8bd917 MISC metadata.xml 157 RMD160 1305e8c09c6d49c0db2a18bb50b045460c124ebe SHA1 874689ae30dfe223d487e0e6a5e0a0dbf06a69f4 SHA256 c3c089740b31ec0f4d7fbc3bf2d6bb8460ccfd0694f01bf91b22a2e1930d6d5d diff --git a/app-text/cmigemo/cmigemo-1.3c-r2.ebuild b/app-text/cmigemo/cmigemo-1.3c-r2.ebuild new file mode 100644 index 000000000000..418956c3c2b6 --- /dev/null +++ b/app-text/cmigemo/cmigemo-1.3c-r2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/cmigemo/cmigemo-1.3c-r2.ebuild,v 1.1 2009/11/08 16:45:17 matsuu Exp $ + +EAPI=2 +inherit eutils flag-o-matic multilib toolchain-funcs + +MY_P="${P}-MIT" +DESCRIPTION="C/Migemo -- Migemo library implementation in C" +HOMEPAGE="http://www.kaoriya.net/#CMIGEMO" +SRC_URI="http://www.kaoriya.net/dist/var/${MY_P}.tar.bz2" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~x86" +IUSE="emacs unicode vim-syntax" + +DEPEND=">=app-dicts/migemo-dict-200812[unicode=] + dev-lang/perl + || ( + net-misc/curl + net-misc/wget + net-misc/fetch + ) + app-i18n/nkf" +RDEPEND="${RDEPEND} + emacs? ( >=app-text/migemo-0.40-r1 )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + # Bug #246953 + epatch "${FILESDIR}/${P}-gentoo.patch" + + touch dict/SKK-JISYO.L + if use unicode ; then + sed -i -e "/gcc:/s/euc-jp/utf-8/" dict/dict.mak || die + fi + + # Bug #255813 + sed -i -e "/^docdir/s:/doc/migemo:/share/doc/${PF}:" compile/config.mk.in || die +} + +src_compile() { + append-flags -fPIC + # parallel make b0rked + emake -j1 \ + CC="$(tc-getCC)" \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + gcc-all || die +} + +src_install() { + # parallel make b0rked + emake -j1 \ + prefix="${D}/usr" \ + libdir="${D}/usr/$(get_libdir)" \ + gcc-install || die + + local encoding + if use unicode ; then + encoding="utf-8" + else + encoding="euc-jp" + fi + + mv "${D}/usr/share/migemo/${encoding}/"*.dat "${D}/usr/share/migemo/" + rm -rf "${D}/usr/share/migemo/"{cp932,euc-jp,utf-8} + + if use vim-syntax ; then + insinto /usr/share/vim/vimfiles/plugin + doins tools/migemo.vim + fi + + dodoc doc/{README_j,TODO_j,vimigemo}.txt +} + +pkg_postinst() { + if use emacs ; then + elog + elog "Please add to your ~/.emacs" + elog " (setq migemo-command \"cmigemo\")" + elog " (setq migemo-options '(\"-q\" \"--emacs\" \"-i\" \"\\\\a\"))" + elog " (setq migemo-dictionary \"/usr/share/migemo/migemo-dict\")" + elog " (setq migemo-user-dictionary nil)" + elog " (setq migemo-regex-dictionary nil)" + elog "to use cmigemo instead of migemo under emacs." + elog + fi +} diff --git a/app-text/cmigemo/files/cmigemo-1.3c-gentoo.patch b/app-text/cmigemo/files/cmigemo-1.3c-gentoo.patch new file mode 100644 index 000000000000..2f903bb9bb62 --- /dev/null +++ b/app-text/cmigemo/files/cmigemo-1.3c-gentoo.patch @@ -0,0 +1,55 @@ +diff -Naur cmigemo-1.3c-MIT.orig/compile/Make_gcc.mak cmigemo-1.3c-MIT/compile/Make_gcc.mak +--- cmigemo-1.3c-MIT.orig/compile/Make_gcc.mak 2003-10-19 16:00:59.000000000 +0900 ++++ cmigemo-1.3c-MIT/compile/Make_gcc.mak 2009-11-08 16:45:32.485952233 +0900 +@@ -14,7 +14,7 @@ + libmigemo = libmigemo.so + EXEEXT = + CFLAGS_MIGEMO = -fPIC +-LDFLAGS_MIGEMO = -Wl,-rpath,.,-rpath,/usr/local/lib,-rpath,/usr/lib ++LDFLAGS_MIGEMO = + + include config.mk + include compile/unix.mak +diff -Naur cmigemo-1.3c-MIT.orig/configure cmigemo-1.3c-MIT/configure +--- cmigemo-1.3c-MIT.orig/configure 2004-06-19 12:50:27.000000000 +0900 ++++ cmigemo-1.3c-MIT/configure 2009-11-08 16:40:42.688962262 +0900 +@@ -31,12 +31,12 @@ + fi + + # Check encoding filter +-if CHECK_COMMAND qkc ; then +- PROGRAM_ENCODEFILTER="qkc -q -u" +-elif CHECK_COMMAND nkf ; then ++if CHECK_COMMAND nkf ; then + PROGRAM_ENCODEFILTER="nkf -x" ++elif CHECK_COMMAND qkc ; then ++ PROGRAM_ENCODEFILTER="qkc -q -u" + else +- echo "ERROR: Require qkc or nkf installed for encode filter." ++ echo "ERROR: Require nkf or qkc installed for encode filter." + exit 1 + fi + +diff -Naur cmigemo-1.3c-MIT.orig/tools/migemo.vim cmigemo-1.3c-MIT/tools/migemo.vim +--- cmigemo-1.3c-MIT.orig/tools/migemo.vim 2004-02-23 16:32:53.000000000 +0900 ++++ cmigemo-1.3c-MIT/tools/migemo.vim 2009-11-08 16:42:19.572951008 +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,9 @@ + 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> + |