# Ebuild by Xavier Maillard (zedek@gnu.org) # This is released under the GNU GPL v2 and later inherit common-lisp cvs eutils ECVS_SERVER="cvs.savannah.nongnu.org:/sources/stumpwm" if [ -z "${ECVS_BRANCH}" ]; then ECVS_BRANCH="HEAD" fi ECVS_MODULE="stumpwm" ECVS_USER="anonymous" ECVS_PASS="" ECVS_CVS_OPTIONS="-dP -z3" DESCRIPTION="Stumpwm is a tiling, keyboard driven X11 Window Manager written entirely in Common Lisp." HOMEPAGE="http://www.nongnu.org/stumpwm/index.html" SRC_URI="" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="sbcl clisp emacs doc" CLPACKAGE=stumpwm DEPEND="doc? ( sys-apps/texinfo )" RDEPEND="${DEPEND} || ( dev-lisp/common-lisp-controller virtual/commonlisp ) dev-lisp/cl-asdf emacs? ( virtual/emacs || ( app-emacs/slime app-emacs/slime-cvs )) || ( x11-base/xorg-x11 virtual/x11 ) !clisp? ( !sbcl? ( dev-lisp/cmucl )) clisp? ( >=dev-lisp/clisp-2.38 ) sbcl? ( >=dev-lisp/sbcl-0.8.14 dev-lisp/cl-clx )" S=${WORKDIR}/${ECVS_MODULE} pkg_setup() { if use clisp; then built_with_use dev-lisp/clisp X \ || die "clisp needs X support builtin." \ "Please re-emerge clisp with the X USE flag." \ "Pay attention if you did not emerge x11-misc/imake (bug 128288)." fi } src_compile() { if use doc; then einfo "Building package info." makeinfo stumpwm.texi fi } src_install() { dodir /usr/share/common-lisp/source/stumpwm dodir /usr/share/common-lisp/systems insinto /usr/share/common-lisp/source/stumpwm/ doins -r src examples common-lisp-install *.lisp stumpwm.asd common-lisp-system-symlink dosym /usr/share/common-lisp/source/stumpwm/stumpwm.asd \ /usr/share/common-lisp/systems/ dodoc COPYING README NEWS ChangeLog doinfo stumpwm.info || die "doinfo failed" } pkg_postinst() { while read line; do einfo "${line}"; done <${FILESDIR}/README.Gentoo einfo "Please consult the NEWS file to know what have changed since latest emerging." if use emacs; then einfo "You can interact with the REPL by typing this: " einfo "(require 'swank)" einfo "(swank:create-swank-server 4005 :spawn)" fi }