summaryrefslogtreecommitdiff
blob: 5efc2937be0591e5e91ee01bf21513ea81744e48 (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
# 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 $

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.4/${P}.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/cl-clx
	dev-lisp/cl-ppcre
	doc? ( sys-apps/texinfo )"

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

src_prepare() {
	mv ${P}-git/* .
	rm -rf ${P}-git/
	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() {
	emake
	use doc && makeinfo dswm.texi
}

src_install() {
	common-lisp-install *.lisp dswm.asd
	common-lisp-system-symlink
	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"
}