diff options
author | Ulrich Müller <ulm@gentoo.org> | 2007-12-21 07:51:50 +0000 |
---|---|---|
committer | Ulrich Müller <ulm@gentoo.org> | 2007-12-21 07:51:50 +0000 |
commit | 023cd0be6cdbee66f082490d23dcbc3d48d4de47 (patch) | |
tree | 1dfe43a1434416b0c239a914b61a3d0bcf20e5ce /app-text/migemo/migemo-0.40-r3.ebuild | |
parent | stable x86, bug 191569 (diff) | |
download | gentoo-2-023cd0be6cdbee66f082490d23dcbc3d48d4de47.tar.gz gentoo-2-023cd0be6cdbee66f082490d23dcbc3d48d4de47.tar.bz2 gentoo-2-023cd0be6cdbee66f082490d23dcbc3d48d4de47.zip |
Modify build system to work without Emacs at compile time, bug #202796.
(Portage version: 2.1.4_rc10)
Diffstat (limited to 'app-text/migemo/migemo-0.40-r3.ebuild')
-rw-r--r-- | app-text/migemo/migemo-0.40-r3.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/app-text/migemo/migemo-0.40-r3.ebuild b/app-text/migemo/migemo-0.40-r3.ebuild new file mode 100644 index 000000000000..18ff79017936 --- /dev/null +++ b/app-text/migemo/migemo-0.40-r3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/migemo/migemo-0.40-r3.ebuild,v 1.1 2007/12/21 07:51:49 ulm Exp $ + +inherit elisp-common eutils + +DESCRIPTION="Migemo is Japanese Incremental Search Tool" +HOMEPAGE="http://0xcc.net/migemo/" +SRC_URI="http://0xcc.net/migemo/stable/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="emacs" + +DEPEND="virtual/ruby + dev-ruby/ruby-romkan + dev-ruby/ruby-bsearch + app-dicts/migemo-dict + emacs? ( virtual/emacs + app-emacs/apel )" +RDEPEND="${DEPEND}" + +SITEFILE=51${PN}-gentoo.el + +src_unpack() { + unpack ${A} + cd "${S}" + cp /usr/share/migemo/migemo-dict . + epatch "${FILESDIR}/${P}-without-emacs.patch" +} + +src_compile() { + econf $(use_with emacs) --with-lispdir=${SITELISP}/${PN} || die + # emake b0rks + emake -j1 || die +} + +src_install() { + emake -j1 DESTDIR="${D}" \ + $(useq emacs || echo "lispdir=") install || die + + rm "${D}"/usr/share/migemo/migemo-dict + + if use emacs ; then + elisp-site-file-install "${FILESDIR}/${SITEFILE}" || die + fi + dodoc AUTHORS ChangeLog INSTALL README +} + +pkg_postinst() { + if use emacs ; then + elisp-site-regen + elog "Migemo adviced search is no longer enabled as a site default." + elog "Add the following line to your ~/.emacs file to enable it:" + elog " (require 'migemo)" + fi +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |