# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ 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="|| ( dev-lisp/common-lisp-controller virtual/commonlisp ) doc? ( sys-apps/texinfo )" # if clisp is selected, we need at least 2.38-r2 gentoo version RDEPEND="${DEPEND} emacs? ( || ( app-emacs/slime app-emacs/slime-cvs )) !clisp? ( !sbcl? ( dev-lisp/cmucl )) clisp? ( >=dev-lisp/clisp-2.38-r2 ) sbcl? ( dev-lisp/sbcl dev-lisp/cl-clx )" S=${WORKDIR}/${ECVS_MODULE} pkg_setup() { if use clisp; then built_with_use dev-lisp/clisp X || \ built_with_use dev-lisp/clisp new-clx \ || die "Clisp needs X support builtin." \ "Please re-emerge clisp with either X and/or new-clx USE flag." built_with_use dev-lisp/clisp new-clx \ && ewarn "Stumpwm is known not to work correctly with NEW-CLX module from clisp." \ "If you have problems, please re-emerge clisp with X USE flag (only)." 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/ 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 use doc && ( doinfo stumpwm.info || die "doinfo failed" ) } pkg_postinst() { common-lisp_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 }