blob: d326345a3234896942d3bcceea623e69e462f0a8 (
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
72
73
74
75
76
77
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-wm/ctwm/ctwm-3.8.1.ebuild,v 1.1 2012/02/07 22:13:07 jer Exp $
EAPI=4
inherit eutils toolchain-funcs
DESCRIPTION="A clean, light window manager."
HOMEPAGE="http://ctwm.free.lp.se/"
SRC_URI="http://ctwm.free.lp.se/dist/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd"
IUSE=""
RDEPEND="
x11-libs/libICE
x11-libs/libSM
x11-libs/libX11
x11-libs/libXext
x11-libs/libXmu
x11-libs/libXt
"
DEPEND="
${RDEPEND}
app-text/rman
virtual/jpeg
x11-misc/imake
x11-proto/xextproto
x11-proto/xproto
"
src_prepare() {
# overflow bug 338180
sed -i menus.c -e "/char modStr/ s/5/6/" || die
# implicit 'isspace'
sed -i parse.c -e "/<stdio.h>/ a#include <ctype.h>" || die
sed -i Imakefile -e "/^CONFDIR/s@=.*@= /etc/X11/twm@g" || die
cp Imakefile.local-template Imakefile.local
# TODO: Add GNOME support
sed -i Imakefile.local -e '/^#define GNOME/d' || die
}
src_compile() {
xmkmf || die
emake \
CC=$(tc-getCC) \
CFLAGS="${CFLAGS}" \
EXTRA_LDOPTIONS="${LDFLAGS}" \
TWMDIR=/usr/share/${PN}
}
src_install() {
emake BINDIR=/usr/bin \
MANPATH=/usr/share/man \
TWMDIR=/usr/share/${PN} \
DESTDIR="${D}" install
emake MANPATH=/usr/share/man \
DOCHTMLDIR=/usr/share/doc/${PF}/html \
DESTDIR="${D}" install.man
echo "#!/bin/sh" > ${T}/ctwm
echo "/usr/bin/ctwm" >> ${T}/ctwm
exeinto /etc/X11/Sessions
doexe "${T}"/ctwm
dodoc CHANGES README* TODO* PROBLEMS
dodoc *.ctwmrc*
}
|