Skip to content

Commit

Permalink
app-i18n/anthy: inherit ltprune
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.6, Repoman-2.3.1
  • Loading branch information
hattya committed Jul 23, 2017
1 parent 4f29425 commit 3f9f1b3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 23 deletions.
24 changes: 10 additions & 14 deletions app-i18n/anthy/anthy-9100h-r2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

EAPI="6"

inherit elisp-common
inherit elisp-common ltprune

DESCRIPTION="Anthy -- free and secure Japanese input system"
HOMEPAGE="http://anthy.osdn.jp/"
Expand All @@ -18,40 +18,36 @@ RDEPEND="canna-2ch? ( app-dicts/canna-2ch )
emacs? ( virtual/emacs )"
DEPEND="${RDEPEND}"

PATCHES=( "${FILESDIR}/${P}-anthy_context_t.patch" )
DOCS=( AUTHORS DIARY NEWS README ChangeLog )
PATCHES=( "${FILESDIR}"/${P}-anthy_context_t.patch )
DOCS=( AUTHORS ChangeLog DIARY NEWS README )

SITEFILE="50${PN}-gentoo.el"

src_prepare() {
default

if use canna-2ch; then
einfo "Adding nichan.ctd to anthy.dic."
sed -i \
-e "/set_input_encoding eucjp/aread ${EPREFIX}/var/lib/canna/dic/canna/nichan.ctd" \
mkworddic/dict.args.in || die
sed -i "/set_input_encoding eucjp/aread ${EPREFIX}/var/lib/canna/dic/canna/nichan.ctd" mkworddic/dict.args.in
fi
}

src_configure() {
local myconf

use emacs || myconf="EMACS=no"

econf \
$(use_enable static-libs static) \
${myconf}
EMACS=$(usex emacs "${EMACS}")
}

src_install() {
default
prune_libtool_files

if use emacs; then
elisp-site-file-install "${FILESDIR}"/50anthy-gentoo.el || die
elisp-site-file-install "${FILESDIR}"/${SITEFILE}
fi

rm -f doc/Makefile*
docinto doc
dodoc doc/*
dodoc -r doc
}

pkg_postinst() {
Expand Down
3 changes: 0 additions & 3 deletions app-i18n/anthy/files/50anthy-gentoo.el
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@

;;; anthy site-lisp configuration

(set-language-info "Japanese" 'input-method "japanese-anthy")

12 changes: 6 additions & 6 deletions app-i18n/anthy/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@
<name>Cjk</name>
</maintainer>
<longdescription>
Anthy is a free and secure Japanese kana-kanji server. This ebuild includes
cannadic as a server-side dictionary, so you don't need any extra package to
run it. You can use anthy with <pkg>app-i18n/uim</pkg> (XIM, GTK+ immodule)
and <pkg>virtual/emacs</pkg> (to enable Anthy support for emacs, build this
package with emacs USE flag).
</longdescription>
Anthy is a free and secure Japanese kana-kanji server. This ebuild includes
cannadic as a server-side dictionary, so you don't need any extra package to
run it. You can use anthy with <pkg>app-i18n/uim</pkg> (XIM, GTK+ immodule)
and <pkg>virtual/emacs</pkg> (to enable Anthy support for emacs, build this
package with emacs USE flag).
</longdescription>
<use>
<flag name="canna-2ch">Enable support for <pkg>app-dicts/canna-2ch</pkg></flag>
</use>
Expand Down

0 comments on commit 3f9f1b3

Please sign in to comment.