summaryrefslogtreecommitdiffstats
path: root/packages/x11-wm/stumpwm/stumpwm-scm.exheres-0
blob: 56e050565bc985750cbabce796c174302004c649 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright 2011 Elias Pipping <pipping@exherbo.org>
# Distributed under the terms of the GNU General Public License v2

require github [ user=sabetts ] autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ none ] ]
require elisp-optional [ source_directory=contrib ]

SUMMARY="A tiling, keyboard driven X11 Window Manager written entirely in Common Lisp"
HOMEPAGE="http://www.nongnu.org/stumpwm/"

LICENCES="GPL-2"
SLOT="0"
PLATFORMS="~amd64"
MYOPTIONS="emacs"

DEPENDENCIES="
    build:
        dev-lisp/cl-ppcre
        dev-lisp/clx[~scm]
    build+run:
        dev-lang/sbcl [[ note = [ contains asdf ] ]]
    suggestion:
        (
            app-misc/rlwrap
            x11-apps/xprop
        ) [[ *description = [ For stumpish ] ]]
"

RESTRICT="strip"

DEFAULT_SRC_PREPARE_PATCHES=( "${FILES}"/stumpwm-printing.patch
    "${FILES}"/stumpwm-hex-colours.patch )
DEFAULT_SRC_CONFIGURE_PARAMS=( --with-lisp=sbcl )
DEFAULT_SRC_COMPILE_PARAMS=( -j1 LISP='/usr/bin/sbcl --disable-debugger' )

src_prepare() {
    default
    eautoconf
}

src_compile() {
    default
    elisp-optional_src_compile
}

src_install() {
    emake install destdir="${IMAGE}"

    insinto /usr/share/${PN}/contrib
    doins contrib/*.lisp

    dobin contrib/stumpish

    elisp-optional_src_install
}