summaryrefslogtreecommitdiff
blob: ab1117adbfb5085b7b7ae6704ed114319dc330a1 (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
56
57
58
59
60
61
62
63
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/dswm/dswm-0.0.3.ebuild,v 1.2 2011/04/25 20:36:20 betelgeuse Exp $

# FIXME: depends on lisp overlay

EAPI="2"

inherit common-lisp autotools eutils

DESCRIPTION="DSWM is a tiling, keyboard driven X11 Window Manager written entirely in Common Lisp."
# HOMEPAGE="http://dss-project.org"
SRC_URI="http://sourceforge.net/projects/dswm/files/0.0.5r2/dswm-0.0.5r2.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="emacs doc"

CLPACKAGE="dswm"

DEPEND="dev-lisp/common-lisp-controller
	>=dev-lisp/sbcl-1.0.36-r1
	dev-lisp/clx
	dev-lisp/cl-ppcre
	doc? ( sys-apps/texinfo )"

RDEPEND="x11-base/xorg-server
	emacs? ( app-emacs/slime )"

src_prepare() {
	mv ${P}r2/* .
	rm -rf ${P}r2/
	eautoconf
}

src_configure() {
	## sed "s,@PACKAGE_VERSION@,$PV,g" version.lisp.in > version.lisp
	## autocnof
	##./configure --prefix=/usr --with-lisp=sbcl || die
	# autoconf
        econf \
	--prefix=/usr --with-lisp=sbcl ${myconf}
}

src_compile() {
	mkdir $HOME/.dswm.d # FIXME: will be fixed in dswm
	emake
	use doc && makeinfo dswm.texi
}

src_install() {
	common-lisp-install *.lisp dswm.asd
	common-lisp-system-symlink
	mkdir -p ${D}/usr/share/xsessions # FIXME: hack
	emake destdir=${D} install
	dodoc README NEWS ChangeLog "${FILESDIR}/README.Gentoo" || die
	use doc && doinfo dswm.info
}

pkg_postinst() {
	common-lisp_pkg_postinst
	cat "${FILESDIR}/README.Gentoo"
}