summaryrefslogtreecommitdiff
path: root/app-text/cmigemo
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2018-08-25 07:36:27 +0100
committerV3n3RiX <venerix@redcorelinux.org>2018-08-25 07:36:27 +0100
commit43793fab84041cfc5c60c0151d1591b8a69fb24a (patch)
tree6208a7f4fc744684fce0f55acbb47511acace498 /app-text/cmigemo
parent28e3d252dc8ac8a5635206dfefe1cfe05058d1db (diff)
gentoo resync : 25.08.2018
Diffstat (limited to 'app-text/cmigemo')
-rw-r--r--app-text/cmigemo/Manifest1
-rw-r--r--app-text/cmigemo/cmigemo-1.3c-r3.ebuild95
2 files changed, 96 insertions, 0 deletions
diff --git a/app-text/cmigemo/Manifest b/app-text/cmigemo/Manifest
index dc1d71e9f58f..7896a24329bd 100644
--- a/app-text/cmigemo/Manifest
+++ b/app-text/cmigemo/Manifest
@@ -5,5 +5,6 @@ DIST cmigemo-1.3c-MIT.tar.bz2 54447 BLAKE2B 37e561b992317dbf421b3d09203e92000c02
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-r3.ebuild 2057 BLAKE2B 36218198cd736f2fd572a197f8706d6571a5cab235f2eea793ac5b5c572a26f917b7f5fe87d17e95acd082e9c79a0ce8042a4dbbeca6efb8c3a8fe0df7bd7b3f SHA512 3d8b729455a7c171a5f2069163a2ef9ca7ca2afb34e95ebcc060377e20cecb5d279dc3f8b910537301d5274203af96914d982c1eabaa8fed423259384eecfbb3
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-r3.ebuild b/app-text/cmigemo/cmigemo-1.3c-r3.ebuild
new file mode 100644
index 000000000000..dadb8751f0b9
--- /dev/null
+++ b/app-text/cmigemo/cmigemo-1.3c-r3.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit flag-o-matic toolchain-funcs
+
+MY_P="${P}-MIT"
+DESCRIPTION="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="${DEPEND}
+ emacs? ( >=app-text/migemo-0.40-r1 )"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ # Bug #246953
+ "${FILESDIR}"/${P}-gentoo.patch
+ "${FILESDIR}"/${P}-ldflags.patch
+)
+
+src_prepare() {
+ default
+
+ touch dict/SKK-JISYO.L || die
+ 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
+}
+
+src_install() {
+ # parallel make b0rked
+ emake -j1 \
+ prefix="${D}/usr" \
+ libdir="${D}/usr/$(get_libdir)" \
+ gcc-install
+
+ 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/" || die
+ rm -rf "${D}/usr/share/migemo/"{cp932,euc-jp,utf-8} || die
+
+ 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
+}