diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-text/cmigemo | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-text/cmigemo')
-rw-r--r-- | app-text/cmigemo/Manifest | 9 | ||||
-rw-r--r-- | app-text/cmigemo/cmigemo-1.3c-r1.ebuild | 78 | ||||
-rw-r--r-- | app-text/cmigemo/cmigemo-1.3c-r2.ebuild | 91 | ||||
-rw-r--r-- | app-text/cmigemo/cmigemo-1.3c.ebuild | 66 | ||||
-rw-r--r-- | app-text/cmigemo/files/cmigemo-1.2-migemo-dict.diff | 23 | ||||
-rw-r--r-- | app-text/cmigemo/files/cmigemo-1.3c-gentoo.patch | 55 | ||||
-rw-r--r-- | app-text/cmigemo/files/cmigemo-1.3c-ldflags.patch | 13 | ||||
-rw-r--r-- | app-text/cmigemo/metadata.xml | 8 |
8 files changed, 343 insertions, 0 deletions
diff --git a/app-text/cmigemo/Manifest b/app-text/cmigemo/Manifest new file mode 100644 index 000000000000..dc1d71e9f58f --- /dev/null +++ b/app-text/cmigemo/Manifest @@ -0,0 +1,9 @@ +AUX cmigemo-1.2-migemo-dict.diff 825 BLAKE2B 59c4d476188839e81f68c97b838e903498b890903d22d42a21c41b5f5fddcb7299dee36c9034893785e26d7d90a5e0d5773aefb97188a62c5b9eced826cac8d6 SHA512 e7b6826c4ce5a87a7e95743f233efaa6a5edc2515a86c85dc24e7dcf9d9a105fbab2f9fd8a81b3ff124a032eaa8dfd5050ca23ef7818ea29a7e8f9c44877388a +AUX cmigemo-1.3c-gentoo.patch 1948 BLAKE2B 5c182d0c9c93b06104d1067272d35b023386a9ce7bfee1828489268cfff1bacbe64d83cde803df1a0f52804b3474900077a8144a1bd5900785c73b77ea0ca1d0 SHA512 90035c0fbf3b341113e4991f08c9962e27d37f6f215983379e92d7c616a67662b8754f390f9f19f7c84f1d5cc9a51a815999ec6c84e7c642758b3324f05b7837 +AUX cmigemo-1.3c-ldflags.patch 502 BLAKE2B 3fc4c85592cc9feffbaeee636e8fcada10c7b7cd8696495239436808ddf9462da09713bbba10c3e5eb66cb45a3ec02e53f1e708fc0c1281dd96cc3e66db8caea SHA512 932bfad5afc4c90531cac96a9a7fb06d1ed690b3391ad9425c5ae1baa7caf2d8046d208e25816ea4ecfbbe44b2a95216e551cbbeb7808548f534853e6b817f7b +DIST cmigemo-1.3c-MIT.tar.bz2 54447 BLAKE2B 37e561b992317dbf421b3d09203e92000c0217347235545483b4f8b99071794c2b240636a880c1758c1828782468670eb640fbd411abe779b28c52dfc3147650 SHA512 8c5b9109f4309906ed19d5d48643918f51c339be7f3b34c90d2d814fed1b6d30e77a1539f6c1e11ceb3560f83fd9e1079254af0b41e81b274e39128de6ffeb18 +DIST cmigemo-1.3c.tar.bz2 54323 BLAKE2B 4d63bde57c442131056e1aabcc702308243491de0632325b7a80af328e293c97479ac1733f29484a2ee7912f6d599360e7703d45612e8b30b52fd7a1228b5152 SHA512 240bdc92139d692cdb9e98a977f77105ef3ca716ede030629b3c4652276f0b0955ae80cc443fb879cada4b3fc83f7e4181043355e0285fcfe1011f4db4d13cc1 +EBUILD cmigemo-1.3c-r1.ebuild 1910 BLAKE2B 2137be59b724d22a4304ce6b385ea2d7f18fa284ee0ac641ae1d96bb8237c0d9d46f1d5576693d062f05da606d03bbb455352002f0ec2270885024a92b7ab56a SHA512 f8c23bbb27d3903b67923effcb087ca39c3e02a6168fa35867271935e408e2f1787fb30e23cab917050933c8d5c12b8d00f52e233630273649af43f98be08172 +EBUILD cmigemo-1.3c-r2.ebuild 2065 BLAKE2B 7922babddc037ccdc5e0f3ba99c250b1f66c5c3774e1989b94a10e1be5ce76e087857264b808eaabd3d955107c9c92aa13f9f727a9ce68333c0b36eb8ce790a1 SHA512 0b7889d5d72b57f5b9b9d917fff39a125e08b0f762cf0bb455370f4297788a3dc2ce50071c65e4e4cd5a01e10c54af38117f2cc785b121ad330b3bcd416b1772 +EBUILD cmigemo-1.3c.ebuild 1584 BLAKE2B 3962bce2bd338cb0871af5410d0cd8840075950dc728474131616e98354874940fc98999a9b683d1558e118c11d40dc6e8e9ef755ad7ca2b88b33a8e9471245c SHA512 dcb4708ea6ba2ed0f46a4ac61b3ca2776aa131e1880ec5a7ef39e1a474ec00504681569b1cb0dcc328c02e4962d0c8408e78c0d37eb976749616e65c89f94206 +MISC metadata.xml 234 BLAKE2B 8615ff091e2c6b2c5d9d4246dbec2ed0c5161ce154a59f492bc640a1428de7847757b68a8d926cae4bf78905d2aeeda10cb4cb0db9bf6870d38e811556299520 SHA512 16ea852f76297335e7ef70c8019fe09d46c0455922c049ba6e92696232e957955fd671d467ebdd0bf7837d39a26083d5be2a6f8abeba53807f0b8c5b97f2e441 diff --git a/app-text/cmigemo/cmigemo-1.3c-r1.ebuild b/app-text/cmigemo/cmigemo-1.3c-r1.ebuild new file mode 100644 index 000000000000..6c9e1cd83229 --- /dev/null +++ b/app-text/cmigemo/cmigemo-1.3c-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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="dev-lang/perl + >=app-dicts/migemo-dict-200812[unicode=] + app-i18n/qkc" +RDEPEND=">=app-dicts/migemo-dict-200812[unicode=] + emacs? ( >=app-text/migemo-0.40-r1 )" + +S="${WORKDIR}/${MY_P}" + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.2-migemo-dict.diff" + touch dict/SKK-JISYO.L + if use unicode ; then + sed -i -e "/gcc:/s/euc-jp/utf-8/" dict/dict.mak || die + fi + + # Bug #246953 + sed -i -e "s:-Wl,-rpath[^ ]*::" compile/Make_gcc.mak || die +} + +src_compile() { + append-flags -fPIC + emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}" gcc || die +} + +src_install() { + # parallel make install borks + 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/cmigemo-1.3c-r2.ebuild b/app-text/cmigemo/cmigemo-1.3c-r2.ebuild new file mode 100644 index 000000000000..87e1a7d68af4 --- /dev/null +++ b/app-text/cmigemo/cmigemo-1.3c-r2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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" \ + "${FILESDIR}"/${P}-ldflags.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/cmigemo-1.3c.ebuild b/app-text/cmigemo/cmigemo-1.3c.ebuild new file mode 100644 index 000000000000..791d191e604f --- /dev/null +++ b/app-text/cmigemo/cmigemo-1.3c.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=0 + +inherit eutils + +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="cmigemo" +SLOT="0" +KEYWORDS="x86 alpha ppc" # development branch +IUSE="emacs" + +DEPEND="app-i18n/qkc + app-dicts/migemo-dict" +RDEPEND="app-dicts/migemo-dict + emacs? ( >=app-text/migemo-0.40-r1 )" + +src_unpack() { + unpack ${A} + cd ${S} + epatch "${FILESDIR}"/${PN}-1.2-migemo-dict.diff + touch ${S}/dict/SKK-JISYO.L + + # Bug #246953 + sed -i -e "s:-Wl,-rpath[^ ]*::" compile/Make_gcc.mak || die +} + +src_compile() { + emake CFLAGS="-fPIC ${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 + 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.2-migemo-dict.diff b/app-text/cmigemo/files/cmigemo-1.2-migemo-dict.diff new file mode 100644 index 000000000000..a216ceafb0ca --- /dev/null +++ b/app-text/cmigemo/files/cmigemo-1.2-migemo-dict.diff @@ -0,0 +1,23 @@ +diff -urN cmigemo-1.2.ORIG/tools/migemo.vim cmigemo-1.2/tools/migemo.vim +--- cmigemo-1.2.ORIG/tools/migemo.vim 2003-01-07 22:57:59.000000000 +0900 ++++ cmigemo-1.2/tools/migemo.vim 2004-03-13 17:25:31.944190968 +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> + 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> + diff --git a/app-text/cmigemo/files/cmigemo-1.3c-ldflags.patch b/app-text/cmigemo/files/cmigemo-1.3c-ldflags.patch new file mode 100644 index 000000000000..2f4f8c922431 --- /dev/null +++ b/app-text/cmigemo/files/cmigemo-1.3c-ldflags.patch @@ -0,0 +1,13 @@ +diff --git a/compile/Make_gcc.mak b/compile/Make_gcc.mak +index f042ac6..f91fe92 100644 +--- a/compile/Make_gcc.mak ++++ b/compile/Make_gcc.mak +@@ -28,7 +28,7 @@ include compile/clean_unix.mak + # + $(libmigemo_LIB): $(libmigemo_DSO) + $(libmigemo_DSO): $(libmigemo_OBJ) +- $(CC) -shared -o $(libmigemo_LIB) -Wl,-soname,$@ $(libmigemo_OBJ) ++ $(CC) -shared -o $(libmigemo_LIB) -Wl,-soname,$@ $(libmigemo_OBJ) $(LDFLAGS) + $(RM) $@ $(libmigemo) + ln -s $(libmigemo_LIB) $@ + ln -s $(libmigemo_LIB) $(libmigemo) diff --git a/app-text/cmigemo/metadata.xml b/app-text/cmigemo/metadata.xml new file mode 100644 index 000000000000..6f2ca22da233 --- /dev/null +++ b/app-text/cmigemo/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>cjk@gentoo.org</email> + <name>Cjk</name> + </maintainer> +</pkgmetadata> |