Gentoo Archives: gentoo-lisp

From: Ulrich Mueller <ulm@g.o>
To: Nick <gentoo-lisp@××××××.uk>
Cc: gentoo-lisp@l.g.o
Subject: Re: [gentoo-lisp] Stumpwm emacs dependency
Date: Sun, 15 Nov 2009 08:40:37
Message-Id: 19199.48767.752135.193083@a1i15.kph.uni-mainz.de
In Reply to: [gentoo-lisp] Stumpwm emacs dependency by Nick
>>>>> On Sun, 15 Nov 2009, Nick wrote:
> However I see due to your build inheriting elisp it effectively > depends on emacs. This seems like an odd dependency for a window > manager, and I wonder if it's possible / reasonable to remove it?
The ebuild should only depend on Emacs with USE=emacs, so it should inherit elisp-common instead of elisp. See below for an (untested) patch. Ulrich --- stumpwm-0.9.6-r1.ebuild~ +++ stumpwm-0.9.6-r1.ebuild @@ -3,7 +3,7 @@ # $Header: $ EAPI=2 -inherit common-lisp-2 glo-utils eutils elisp +inherit common-lisp-2 glo-utils eutils elisp-common DESCRIPTION="Stumpwm is a tiling, keyboard driven X11 Window Manager written entirely in Common Lisp." HOMEPAGE="http://www.nongnu.org/stumpwm/" @@ -22,7 +22,7 @@ !sbcl? ( !clisp? ( >=dev-lisp/sbcl-1.0.22 ) ) !sbcl? ( clisp? ( >=dev-lisp/clisp-2.44[X] ) ) sbcl? ( >=dev-lisp/sbcl-1.0.22 ) - emacs? ( app-emacs/slime )" + emacs? ( virtual/emacs app-emacs/slime )" DEPEND="${RDEPEND} sys-apps/texinfo doc? ( virtual/texi2dvi )" @@ -89,3 +89,11 @@ common-lisp-symlink-asdf fi } + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +}

Replies

Subject Author
Re: [gentoo-lisp] Stumpwm emacs dependency Nick <gentoo-lisp@××××××.uk>