# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI="2" inherit common-lisp eutils git-2 EGIT_REPO_URI="git://git.savannah.nongnu.org/stumpwm" DESCRIPTION="Stumpwm is a tiling, keyboard driven X11 Window Manager written entirely in Common Lisp." HOMEPAGE="http://www.nongnu.org/stumpwm/index.html" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="sbcl clisp emacs doc" CLPACKAGE="stumpwm" DEPEND="dev-lisp/common-lisp-controller virtual/commonlisp dev-lisp/cl-ppcre doc? ( sys-apps/texinfo )" # If clisp is selected, we need at least dev-lisp/clisp-2.38-r2 RDEPEND="${DEPEND} emacs? ( app-emacs/slime ) !clisp? ( !sbcl? ( !amd64? ( dev-lisp/cmucl ) ) ) clisp? ( >=dev-lisp/clisp-2.38-r2[X,-new-clx] ) sbcl? ( dev-lisp/sbcl dev-lisp/cl-clx )" src_configure() { sed "s,@PACKAGE_VERSION@,$PV,g" version.lisp.in > version.lisp } src_compile() { use doc && makeinfo stumpwm.texi } src_install() { common-lisp-install *.lisp stumpwm.asd common-lisp-system-symlink dodoc README NEWS "${FILESDIR}/README.Gentoo" || die } pkg_postinst() { common-lisp_pkg_postinst cat "${FILESDIR}/README.Gentoo" }