diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/cmigemo |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/cmigemo')
-rw-r--r-- | app-text/cmigemo/Manifest | 11 | ||||
-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 | 64 | ||||
-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..f61c57d80d96 --- /dev/null +++ b/app-text/cmigemo/Manifest @@ -0,0 +1,11 @@ +AUX cmigemo-1.2-migemo-dict.diff 825 SHA256 cacc1b65bf7041d9ff3628c1cc3c674ba5a210053addea8c4c3b122891455a84 SHA512 e7b6826c4ce5a87a7e95743f233efaa6a5edc2515a86c85dc24e7dcf9d9a105fbab2f9fd8a81b3ff124a032eaa8dfd5050ca23ef7818ea29a7e8f9c44877388a WHIRLPOOL e2ad5aa998f78758f1459e6bc3d0c446d2d27f425aa0d008644a92784cb7d2c27c5d1b85eee321eabc8ef9ad21936cf28fb6d4f603c9af3180e8315554e7318e +AUX cmigemo-1.3c-gentoo.patch 1948 SHA256 d985d7802b70afac6b5170b0b82bee0478ef42eef96d0c59c34d0104dd4952b3 SHA512 90035c0fbf3b341113e4991f08c9962e27d37f6f215983379e92d7c616a67662b8754f390f9f19f7c84f1d5cc9a51a815999ec6c84e7c642758b3324f05b7837 WHIRLPOOL b06a1aa44ca5abcf22a7deb2447fd454fc0a0786dfebb07afc05fe85ce168e4075a112218397d6c2e050cab754e439047ba4f56bcb881b702050835270d1f7e3 +AUX cmigemo-1.3c-ldflags.patch 502 SHA256 4a1e0c3c84d88c7a1538422e258cbe06f0f2e3e8309d723544d73e234b1d7cc0 SHA512 932bfad5afc4c90531cac96a9a7fb06d1ed690b3391ad9425c5ae1baa7caf2d8046d208e25816ea4ecfbbe44b2a95216e551cbbeb7808548f534853e6b817f7b WHIRLPOOL ef9b2cc3242b5a9b22af611d8e9eafe431862ce1068de9ef6d87b7a42413066ba72ac4310ae2c6231e0f8e9a1edd9314c7c90a2cbe0aa654e3ccc2d47300e73f +DIST cmigemo-1.3c-MIT.tar.bz2 54447 SHA256 1923882f420aca97d726161ac532491419debd2b746506b1c0ce4fc1dfc79fb6 SHA512 8c5b9109f4309906ed19d5d48643918f51c339be7f3b34c90d2d814fed1b6d30e77a1539f6c1e11ceb3560f83fd9e1079254af0b41e81b274e39128de6ffeb18 WHIRLPOOL 05cdf068242be09a34de25c15940d0ed7d7f779184ff63997d268f34114403552bcb21f1b3e62cda3c429e5deafa081fef56beca2ed4a67bedc75d25232c4961 +DIST cmigemo-1.3c.tar.bz2 54323 SHA256 d42fc98e062ff88886b3133905fa540ae41694fdd222ac0b88433046a9b6de59 SHA512 240bdc92139d692cdb9e98a977f77105ef3ca716ede030629b3c4652276f0b0955ae80cc443fb879cada4b3fc83f7e4181043355e0285fcfe1011f4db4d13cc1 WHIRLPOOL f82f7a4686c2cd7224e08f036694c2d16461709906f77ed3a186506869628d739ed575cc4b7603629b7490a6b34e923697520f4f55518f3b220919ff99c6e9d9 +EBUILD cmigemo-1.3c-r1.ebuild 1910 SHA256 51826dd8e6d1e17aeddd393b963a2aac2dba57dce11ebae014bbad5abb2226ba SHA512 f8c23bbb27d3903b67923effcb087ca39c3e02a6168fa35867271935e408e2f1787fb30e23cab917050933c8d5c12b8d00f52e233630273649af43f98be08172 WHIRLPOOL 6f4df4a59015b20552015298bf8034839a95e54c003489d7814642a2c79a1943eb4db76f53b7bc4d7f41a97332c33f0783a2a47c0706910478e44f7d4b5e8f1c +EBUILD cmigemo-1.3c-r2.ebuild 2065 SHA256 12450e883161edb4b7cb0795ec23fe1a40bce69ed1b8688b8b7ac4c9849e05db SHA512 0b7889d5d72b57f5b9b9d917fff39a125e08b0f762cf0bb455370f4297788a3dc2ce50071c65e4e4cd5a01e10c54af38117f2cc785b121ad330b3bcd416b1772 WHIRLPOOL 63fa185e5a3ba95a8f464456ef954a0ae82380b060f6564be6ba373c6eeb619642a6f5f168f528d8d49874ef33e4a799c7e269a68462dc976bda6c4ab68780f1 +EBUILD cmigemo-1.3c.ebuild 1576 SHA256 950dcaa9d286fdb89321a643f43c344a5dd0ca48c9b60d2c95cf7c5edb512aa5 SHA512 cd42f961ef05ec7bd653cefae000960e97c24b4e32f52aabe02971c3305c823561a5b51d555355f7045ef59fa6d6e7a6982621f7b4b85f2b789ac2d984d92da3 WHIRLPOOL 6df467a6dcc2644c91c30ab1f0b46c9ce52a517ca899fea9df77d672f8b0a52398a5614e15daa4f8ee1e03879c9a1405cc5f4ac3cb7ca888d7e48c51f9e19d3b +MISC ChangeLog 2647 SHA256 883ab90708c17f503820fe657c2a186a518f24cc85a3b2112330bf4b6955d558 SHA512 22012600c6377e2b82e3d5fde93043b9035b3ec0357f5b52cb23fb4ba905048db5d0644e3c02ae079c19835a0c424d0025b1da779773827f285df31b53306418 WHIRLPOOL 1bf72acf90709c60dbd6bd7d0adb5c96e192a4aa8f86245279396e8fc29f91a31096cdbcb7168c7e17ac39288c1610af60291d86151bdc3cd2fab719f78415d5 +MISC ChangeLog-2015 3440 SHA256 72c8075c8663ea29e4415d6782eb6dcaca024bd4eec686fe667b2167b93e9774 SHA512 285ce6599ce3a5882a48c51360057523d7e7b8ffd7113ff77d55d0559d28cadf7a412e8e408e3b87f5f4792075b5cadde2a1a8aff8bf16741a0d3b7aeda796e8 WHIRLPOOL fd19cd93f31222127875df621ba5a7267e96605a8c42b59755da427d7e507dcf35f70596514095e3680207583a143ec74fad4143f12a4f1bee16181fd41a69b0 +MISC metadata.xml 234 SHA256 5ee3f7d7197cf269efebe240796a0484e0bd2da3cff78e63b87c32cb4297c175 SHA512 16ea852f76297335e7ef70c8019fe09d46c0455922c049ba6e92696232e957955fd671d467ebdd0bf7837d39a26083d5be2a6f8abeba53807f0b8c5b97f2e441 WHIRLPOOL a29087cfdc7418c4dfdeffc62f80a934a759de3f014f9599dc3be9a8292c4717165dc75c1a565b4dca34479115f4ae17ddb62aa6960e93ad71e12b4c26c8040d 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..7de417e11521 --- /dev/null +++ b/app-text/cmigemo/cmigemo-1.3c.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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> |