diff options
author | Akinori Hattori <hattya@gentoo.org> | 2024-04-28 15:08:36 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2024-04-28 15:08:36 +0900 |
commit | ea791c26b4451ffb6276dcdfc5c29126519a409e (patch) | |
tree | 8b94fc5bba24c6824f31a1220dea167b5e677c82 /app-text | |
parent | app-text/cmigemo: update HOMEPAGE and SRC_URI (diff) | |
download | gentoo-ea791c26b4451ffb6276dcdfc5c29126519a409e.tar.gz gentoo-ea791c26b4451ffb6276dcdfc5c29126519a409e.tar.bz2 gentoo-ea791c26b4451ffb6276dcdfc5c29126519a409e.zip |
app-text/cmigemo: update to EAPI 8
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/cmigemo/cmigemo-1.3c-r4.ebuild (renamed from app-text/cmigemo/cmigemo-1.3c-r3.ebuild) | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/app-text/cmigemo/cmigemo-1.3c-r3.ebuild b/app-text/cmigemo/cmigemo-1.3c-r4.ebuild index 4c38d653a795..3a03e2143a77 100644 --- a/app-text/cmigemo/cmigemo-1.3c-r3.ebuild +++ b/app-text/cmigemo/cmigemo-1.3c-r4.ebuild @@ -1,10 +1,12 @@ # Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI="8" + inherit flag-o-matic toolchain-funcs MY_P="${P}-MIT" + DESCRIPTION="Migemo library implementation in C" HOMEPAGE="https://www.kaoriya.net/software/cmigemo/" SRC_URI="mirror://gentoo/${MY_P}.tar.bz2" @@ -14,34 +16,34 @@ SLOT="0" KEYWORDS="~alpha amd64 ppc x86" IUSE="unicode vim-syntax" -DEPEND=">=app-dicts/migemo-dict-200812[unicode=] +RDEPEND=">=app-dicts/migemo-dict-200812[unicode=]" +DEPEND="${RDEPEND}" +BDEPEND="app-i18n/nkf dev-lang/perl || ( net-misc/curl net-misc/wget www-client/fetch - ) - app-i18n/nkf" -RDEPEND="${DEPEND}" - + )" S="${WORKDIR}/${MY_P}" PATCHES=( - # Bug #246953 + # bug #246953 "${FILESDIR}"/${P}-gentoo.patch "${FILESDIR}"/${P}-ldflags.patch ) +DOCS=( doc/{README_j,TODO_j,vimigemo}.txt ) 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 + if use unicode; then + sed -i "/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 + # bug #255813 + sed -i "/^docdir/s:/doc/migemo:/share/doc/${PF}:" compile/config.mk.in || die } src_compile() { @@ -57,24 +59,23 @@ src_compile() { src_install() { # parallel make b0rked emake -j1 \ - prefix="${D}/usr" \ - libdir="${D}/usr/$(get_libdir)" \ + prefix="${ED}/usr" \ + libdir="${ED}/usr/$(get_libdir)" \ gcc-install + einstalldocs local encoding - if use unicode ; then + 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 + mv "${ED}"/usr/share/migemo/${encoding}/*.dat "${ED}"/usr/share/migemo || die + rm -rf "${ED}"/usr/share/migemo/{cp932,euc-jp,utf-8} - if use vim-syntax ; then + if use vim-syntax; then insinto /usr/share/vim/vimfiles/plugin doins tools/migemo.vim fi - - dodoc doc/{README_j,TODO_j,vimigemo}.txt } |