summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2016-11-27 18:22:38 +0900
committerAkinori Hattori <hattya@gentoo.org>2016-11-27 18:22:38 +0900
commitc751910530a1de7bce97d1e0e5684c79401c8abf (patch)
treec2d3dfc0685932050455f851ac02e123bfcc2263 /app-emacs/ddskk/ddskk-16.1.ebuild
parentnet-dns/dnsmasq: use correct pkg-config tool (diff)
downloadgentoo-c751910530a1de7bce97d1e0e5684c79401c8abf.tar.gz
gentoo-c751910530a1de7bce97d1e0e5684c79401c8abf.tar.bz2
gentoo-c751910530a1de7bce97d1e0e5684c79401c8abf.zip
app-emacs/ddskk: new upstream release
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-emacs/ddskk/ddskk-16.1.ebuild')
-rw-r--r--app-emacs/ddskk/ddskk-16.1.ebuild70
1 files changed, 70 insertions, 0 deletions
diff --git a/app-emacs/ddskk/ddskk-16.1.ebuild b/app-emacs/ddskk/ddskk-16.1.ebuild
new file mode 100644
index 000000000000..810ed5f0a18e
--- /dev/null
+++ b/app-emacs/ddskk/ddskk-16.1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+USE_RUBY="ruby20 ruby21 ruby22 ruby23"
+NEED_EMACS="24"
+
+inherit elisp ruby-single
+
+DESCRIPTION="One Japanese input methods on Emacs"
+HOMEPAGE="http://openlab.ring.gr.jp/skk/"
+SRC_URI="http://openlab.ring.gr.jp/skk/maintrunk/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="ruby"
+
+DEPEND=""
+RDEPEND="|| (
+ app-i18n/skk-jisyo
+ virtual/skkserv
+ )
+ ruby? ( ${RUBY_DEPS} )"
+S="${WORKDIR}/${PN}-${P}_Futamata"
+
+SITEFILE="50${PN}-gentoo.el"
+
+src_prepare() {
+ echo "(setq PREFIX \"${ED}/usr\")" >>SKK-CFG
+ echo "(setq SKK_LISPDIR \"${ED}/${SITELISP}/${PN}\")" >>SKK-CFG
+
+ echo "(add-to-list 'load-path (expand-file-name \"..\"))" >> nicola/NICOLA-DDSKK-CFG
+
+ eapply_user
+
+ rm -f skk-lookup.el
+ mv {bayesian,tut-code}/*.el .
+}
+
+src_compile() {
+ emake elc info
+
+ emake -C nicola
+}
+
+src_install () {
+ local lispdir=${SITELISP}/${PN}
+ emake install-elc
+ elisp-compile "${ED}"/${lispdir}/skk-setup.el
+ rm -f "${ED}"/${lispdir}/leim-list.el
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE}
+
+ dodoc ChangeLog* README.md READMEs/{AUTHORS,CODENAME,Contributors,FAQ,NEWS,PROPOSAL,TODO}*
+ doinfo doc/skk.info
+
+ local exts=( nicola tut-code ) d f
+ elisp-install ${PN} nicola/*.{el,elc}
+ if use ruby; then
+ dobin bayesian/bskk
+ exts+=( bayesian )
+ fi
+ for d in ${exts[@]}; do
+ docinto ${d}
+ for f in ${d}/{ChangeLog,README}*; do
+ [[ -s ${f} ]] && dodoc ${f}
+ done
+ done
+}