diff options
author | 2007-10-04 06:22:39 +0000 | |
---|---|---|
committer | 2007-10-04 06:22:39 +0000 | |
commit | b8acdffd9793c1cb1d83aed2cf30c7094ba6ae74 (patch) | |
tree | f0e7d9ded9d3c745c6a794bd5543cdc8590a39c0 /dev-lang/mozart/mozart-1.3.2.ebuild | |
parent | version bump for GNOME 2.20 (diff) | |
download | gentoo-2-b8acdffd9793c1cb1d83aed2cf30c7094ba6ae74.tar.gz gentoo-2-b8acdffd9793c1cb1d83aed2cf30c7094ba6ae74.tar.bz2 gentoo-2-b8acdffd9793c1cb1d83aed2cf30c7094ba6ae74.zip |
Add proper support for emacs. Closes #194604
(Portage version: 2.1.3.11)
Diffstat (limited to 'dev-lang/mozart/mozart-1.3.2.ebuild')
-rw-r--r-- | dev-lang/mozart/mozart-1.3.2.ebuild | 30 |
1 files changed, 21 insertions, 9 deletions
diff --git a/dev-lang/mozart/mozart-1.3.2.ebuild b/dev-lang/mozart/mozart-1.3.2.ebuild index 0606f593e9c5..870f1d4c9449 100644 --- a/dev-lang/mozart/mozart-1.3.2.ebuild +++ b/dev-lang/mozart/mozart-1.3.2.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/mozart/mozart-1.3.2.ebuild,v 1.6 2007/09/29 05:49:54 keri Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/mozart/mozart-1.3.2.ebuild,v 1.7 2007/10/04 06:22:39 keri Exp $ -inherit eutils +inherit elisp-common eutils MY_P="mozart-${PV}.20060615" @@ -21,12 +21,15 @@ DEPEND="dev-lang/perl sys-devel/bison sys-devel/flex sys-libs/zlib + emacs? ( virtual/emacs ) gdbm? ( sys-libs/gdbm ) tcl? ( tk? ( dev-lang/tk dev-lang/tcl ) )" RDEPEND="${DEPEND}" +SITEFILE=50${PN}-gentoo.el + S="${WORKDIR}"/${MY_P} src_unpack() { @@ -47,12 +50,6 @@ src_compile() { --without-global-oz \ --enable-opt=none" - if use emacs ; then - myconf="${myconf} --enable-compile-elisp" - else - myconf="${myconf} --disable-compile-elisp" - fi - if use tcl && use tk ; then myconf="${myconf} --enable-wish" else @@ -77,22 +74,37 @@ src_compile() { --disable-doc \ $(use_enable doc contrib-doc) \ $(use_enable gdbm contrib-gdbm) \ + $(use_enable emacs compile-elisp) \ $(use_enable static link-static) \ $(use_enable threads threaded) \ || die "econf failed" - emake bootstrap || die "emake bootstrap failed" + emake -j1 bootstrap || die "emake bootstrap failed" } src_install() { emake -j1 \ PREFIX="${D}"/usr/lib/mozart \ BINDIR="${D}"/usr/bin \ + ELISPDIR="${D}${SITELISP}/${PN}" \ install || die "emake install failed" + if use emacs; then + elisp-site-file-install "${FILESDIR}/${SITEFILE}" \ + || die "elisp-site-file-install failed" + fi + if use doc ; then dohtml -r "${WORKDIR}"/mozart/doc/* fi dodoc README } + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} |