diff options
author | Akinori Hattori <hattya@gentoo.org> | 2016-11-27 18:05:59 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2016-11-27 18:05:59 +0900 |
commit | a250fa7aa9d55cc5f15470cd4a34cdad0e5c007c (patch) | |
tree | 6d0bbcde7962b8a27e23a44603e97d83c177ae2b /app-emacs/ddskk | |
parent | net-p2p/transmission: add live ebuild and port to cmake (diff) | |
download | gentoo-a250fa7aa9d55cc5f15470cd4a34cdad0e5c007c.tar.gz gentoo-a250fa7aa9d55cc5f15470cd4a34cdad0e5c007c.tar.bz2 gentoo-a250fa7aa9d55cc5f15470cd4a34cdad0e5c007c.zip |
app-emacs/ddskk: install skk-setup.el
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-emacs/ddskk')
-rw-r--r-- | app-emacs/ddskk/ddskk-14.3.ebuild | 66 | ||||
-rw-r--r-- | app-emacs/ddskk/ddskk-14.4.ebuild | 66 | ||||
-rw-r--r-- | app-emacs/ddskk/ddskk-15.1.ebuild | 71 | ||||
-rw-r--r-- | app-emacs/ddskk/files/50ddskk-gentoo.el | 5 |
4 files changed, 109 insertions, 99 deletions
diff --git a/app-emacs/ddskk/ddskk-14.3.ebuild b/app-emacs/ddskk/ddskk-14.3.ebuild index dde5773284f6..017dd2f493a4 100644 --- a/app-emacs/ddskk/ddskk-14.3.ebuild +++ b/app-emacs/ddskk/ddskk-14.3.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=3 +EAPI="6" inherit elisp @@ -15,46 +15,50 @@ SLOT="0" KEYWORDS="amd64 ppc ~ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos" IUSE="" -DEPEND="|| ( ( =virtual/emacs-21 >=app-emacs/apel-10.7 ) - >=virtual/emacs-22 )" -RDEPEND="${DEPEND} - || ( app-i18n/skk-jisyo virtual/skkserv )" +DEPEND="<virtual/emacs-24" +RDEPEND="|| ( + app-i18n/skk-jisyo + virtual/skkserv + )" SITEFILE="50${PN}-gentoo.el" src_prepare() { - find . -type f | xargs sed -i -e "s:/usr/local:${EPREFIX}/usr:g" || die + 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 < /dev/null || die "emake failed" - emake info < /dev/null || die "emake info failed" - #cd nicola - #emake < /dev/null || die - BYTECOMPFLAGS="${BYTECOMPFLAGS} -L .." - cd "${S}/tut-code" - elisp-compile *.el || die "elisp-compile tut-code/*.el failed" - - cd "${S}/bayesian" - elisp-compile *.el || die "elisp-compile bayesian/*.el failed" + emake elc info + + emake -C nicola } src_install () { - elisp-install ${PN} *.{el,elc} nicola/*.el tut-code/*.{el,elc} bayesian/*.{el,elc} || die - elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die - - insinto /usr/share/skk - doins etc/*SKK.tut* etc/skk.xpm || die - - dodoc READMEs/* ChangeLog* - doinfo doc/skk.info* || die + 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} - #docinto nicola - #dodoc nicola/ChangeLog* nicola/README* || die - docinto tut-code - dodoc tut-code/README.tut || die + dodoc ChangeLog* READMEs/README READMEs/{AUTHORS,CODENAME,Contributors,FAQ,NEWS,PROPOSAL,TODO}* + doinfo doc/skk.info - #dobin bayesian/bskk || die + local exts=( nicola tut-code bayesian ) d f + elisp-install ${PN} nicola/*.{el,elc} + for d in ${exts[@]}; do + docinto ${d} + for f in ${d}/{ChangeLog,README}*; do + [[ -s ${f} ]] && dodoc ${f} + done + done docinto bayesian - dodoc bayesian/README.ja bayesian/bskk || die + dodoc bayesian/bskk } diff --git a/app-emacs/ddskk/ddskk-14.4.ebuild b/app-emacs/ddskk/ddskk-14.4.ebuild index e3d2df368fb6..5a185679e025 100644 --- a/app-emacs/ddskk/ddskk-14.4.ebuild +++ b/app-emacs/ddskk/ddskk-14.4.ebuild @@ -1,8 +1,8 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=3 +EAPI="6" inherit elisp @@ -15,46 +15,50 @@ SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" IUSE="" -DEPEND="|| ( ( =virtual/emacs-21 >=app-emacs/apel-10.7 ) - >=virtual/emacs-22 )" -RDEPEND="${DEPEND} - || ( app-i18n/skk-jisyo virtual/skkserv )" +DEPEND="<virtual/emacs-24" +RDEPEND="|| ( + app-i18n/skk-jisyo + virtual/skkserv + )" SITEFILE="50${PN}-gentoo.el" src_prepare() { - find . -type f | xargs sed -i -e "s:/usr/local:${EPREFIX}/usr:g" || die + 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 < /dev/null || die "emake failed" - emake info < /dev/null || die "emake info failed" - #cd nicola - #emake < /dev/null || die - BYTECOMPFLAGS="${BYTECOMPFLAGS} -L .." - cd "${S}/tut-code" - elisp-compile *.el || die "elisp-compile tut-code/*.el failed" - - cd "${S}/bayesian" - elisp-compile *.el || die "elisp-compile bayesian/*.el failed" + emake elc info + + emake -C nicola } src_install () { - elisp-install ${PN} *.{el,elc} nicola/*.el tut-code/*.{el,elc} bayesian/*.{el,elc} || die - elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die - - insinto /usr/share/skk - doins etc/*SKK.tut* etc/skk.xpm || die - - dodoc READMEs/* ChangeLog* - doinfo doc/skk.info* || die + 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} - #docinto nicola - #dodoc nicola/ChangeLog* nicola/README* || die - docinto tut-code - dodoc tut-code/README.tut || die + dodoc ChangeLog* READMEs/README READMEs/{AUTHORS,CODENAME,Contributors,FAQ,NEWS,PROPOSAL,TODO}* + doinfo doc/skk.info - #dobin bayesian/bskk || die + local exts=( nicola tut-code bayesian ) d f + elisp-install ${PN} nicola/*.{el,elc} + for d in ${exts[@]}; do + docinto ${d} + for f in ${d}/{ChangeLog,README}*; do + [[ -s ${f} ]] && dodoc ${f} + done + done docinto bayesian - dodoc bayesian/README.ja bayesian/bskk || die + dodoc bayesian/bskk } diff --git a/app-emacs/ddskk/ddskk-15.1.ebuild b/app-emacs/ddskk/ddskk-15.1.ebuild index 7f2b7654c527..1ee32b414a3f 100644 --- a/app-emacs/ddskk/ddskk-15.1.ebuild +++ b/app-emacs/ddskk/ddskk-15.1.ebuild @@ -1,10 +1,11 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ -EAPI=3 +EAPI="6" +NEED_EMACS="24" -inherit elisp eutils +inherit elisp DESCRIPTION="One Japanese input methods on Emacs" HOMEPAGE="http://openlab.ring.gr.jp/skk/" @@ -15,47 +16,51 @@ SLOT="0" KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos" IUSE="" -DEPEND="|| ( ( =virtual/emacs-21 >=app-emacs/apel-10.7 ) - >=virtual/emacs-22 )" -RDEPEND="${DEPEND} - || ( app-i18n/skk-jisyo virtual/skkserv )" +DEPEND="" +RDEPEND="|| ( + app-i18n/skk-jisyo + virtual/skkserv + )" SITEFILE="50${PN}-gentoo.el" src_prepare() { - find . -type f | xargs sed -i -e "s:/usr/local:${EPREFIX}/usr:g" || die - epatch "${FILESDIR}"/${P}-skk-mk.patch + 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 "${FILESDIR}"/${P}-skk-mk.patch + eapply_user + + rm -f skk-lookup.el + mv {bayesian,tut-code}/*.el . } src_compile() { - emake < /dev/null || die "emake failed" - emake info < /dev/null || die "emake info failed" - #cd nicola - #emake < /dev/null || die - BYTECOMPFLAGS="${BYTECOMPFLAGS} -L .." - cd "${S}/tut-code" - elisp-compile *.el || die "elisp-compile tut-code/*.el failed" - - cd "${S}/bayesian" - elisp-compile *.el || die "elisp-compile bayesian/*.el failed" + emake elc info + + emake -C nicola } src_install () { - elisp-install ${PN} *.{el,elc} nicola/*.el tut-code/*.{el,elc} bayesian/*.{el,elc} || die - elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die - - insinto /usr/share/skk - doins etc/*SKK.tut* etc/skk.xpm || die - - dodoc READMEs/* ChangeLog* - doinfo doc/skk.info* || die + 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} - #docinto nicola - #dodoc nicola/ChangeLog* nicola/README* || die - docinto tut-code - dodoc tut-code/README.tut || die + dodoc ChangeLog* READMEs/README READMEs/{AUTHORS,CODENAME,Contributors,FAQ,NEWS,PROPOSAL,TODO}* + doinfo doc/skk.info - #dobin bayesian/bskk || die + local exts=( nicola tut-code bayesian ) d f + elisp-install ${PN} nicola/*.{el,elc} + for d in ${exts[@]}; do + docinto ${d} + for f in ${d}/{ChangeLog,README}*; do + [[ -s ${f} ]] && dodoc ${f} + done + done docinto bayesian - dodoc bayesian/README.ja bayesian/bskk || die + dodoc bayesian/bskk } diff --git a/app-emacs/ddskk/files/50ddskk-gentoo.el b/app-emacs/ddskk/files/50ddskk-gentoo.el index 548fdb26a168..66b1e15fa86b 100644 --- a/app-emacs/ddskk/files/50ddskk-gentoo.el +++ b/app-emacs/ddskk/files/50ddskk-gentoo.el @@ -1,7 +1,4 @@ (add-to-list 'load-path "@SITELISP@") -(require 'skk-autoloads) -(global-set-key "\C-x\C-j" 'skk-mode) -(global-set-key "\C-xj" 'skk-auto-fill-mode) -(global-set-key "\C-xt" 'skk-tutorial) +(require 'skk-setup) (setq skk-large-jisyo "/usr/share/skk/SKK-JISYO.L") |