blob: 82b44ef6e7b046b40fd5af4acc15caf66a1607ef (
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
64
65
66
67
68
69
70
71
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/ratpoison/ratpoison-1.3.0_rc1.ebuild,v 1.1 2003/11/23 16:24:09 weeve Exp $
inherit elisp-common
DESCRIPTION="Ratpoison is an extremely light-weight and barebones wm modelled after screen"
HOMEPAGE="http://ratpoison.sourceforge.net/"
LICENSE="GPL-2"
PV=`echo ${PV} | sed 's/_/-/'`
P="${PN}-${PV}"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
SLOT="0"
KEYWORDS="~x86 ~sparc ~ppc ~amd64"
IUSE="emacs"
S=${WORKDIR}/${P}
DEPEND="x11-base/xfree
emacs? ( virtual/emacs )"
SITEFILE=50ratpoison-gentoo.el
src_unpack() {
unpack ${A}
cd ${S}/contrib
epatch ${FILESDIR}/ratpoison.el-gentoo.patch
}
src_compile() {
if [ "${ARCH}" = "amd64" ]
then
libtoolize -c -f
fi
econf
emake CFLAGS="${CFLAGS} -I/usr/X11R6/include" || die
if use emacs; then
cd contrib && elisp-comp ratpoison.el
fi
}
src_install() {
einstall
cat >ratpoison <<EOF
#!/bin/bash
exec /usr/bin/ratpoison
EOF
exeinto /etc/X11/Sessions
doexe ratpoison
dodoc INSTALL TODO README NEWS AUTHORS ChangeLog
docinto example
dodoc contrib/{genrpbindings,split.sh} doc/{ipaq.ratpoisonrc,sample.ratpoisonrc}
rm -rf $D/usr/share/{doc/ratpoison,ratpoison}
if use emacs; then
elisp-install ${PN} contrib/ratpoison.*
elisp-site-file-install ${FILESDIR}/${SITEFILE}
fi
}
pkg_postinst() {
use emacs && elisp-site-regen
}
pkg_postrm() {
use emacs && elisp-site-regen
}
|