/[gentoo-x86]/x11-wm/ctwm/ctwm-3.8a-r1.ebuild
Gentoo

Contents of /x11-wm/ctwm/ctwm-3.8a-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Wed Dec 21 08:51:41 2011 UTC (2 years, 6 months ago) by phajdan.jr
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines
x86 stable wrt bug #393941

(Portage version: 2.1.10.41/cvs/Linux i686)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/x11-wm/ctwm/ctwm-3.8a-r1.ebuild,v 1.3 2011/12/16 19:43:37 ago Exp $
4
5 EAPI="2"
6
7 inherit eutils toolchain-funcs
8
9 DESCRIPTION="A clean, light window manager."
10 HOMEPAGE="http://ctwm.free.lp.se/"
11 SRC_URI="http://ctwm.free.lp.se/dist/${P}.tar.gz"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
16 IUSE=""
17
18 RDEPEND="x11-libs/libX11
19 x11-libs/libXext
20 x11-libs/libXmu
21 x11-libs/libXpm
22 x11-libs/libXt"
23 DEPEND="${RDEPEND}
24 app-text/rman
25 virtual/jpeg
26 x11-misc/imake
27 x11-proto/xextproto
28 x11-proto/xproto"
29
30 src_prepare() {
31 sed -e "/char modStr/ s/5/6/" -i menus.c || die #overflow bug 338180
32 sed -e "/<stdio.h>/ a#include <ctype.h>" -i parse.c || die #implicit 'isspace'
33 sed -i Imakefile \
34 -e "s@\(CONFDIR =\).*@\1 /etc/X11/twm@g" \
35 || die
36
37 cp Imakefile.local-template Imakefile.local
38
39 # TODO: Add GNOME support
40 sed -i Imakefile.local \
41 -e '/^#define GNOME/d' \
42 || die
43 }
44
45 src_compile() {
46 xmkmf || die
47 emake \
48 CC=$(tc-getCC) \
49 CFLAGS="${CFLAGS}" \
50 EXTRA_LDOPTIONS="${LDFLAGS}" \
51 TWMDIR=/usr/share/${PN} \
52 || die
53 }
54
55 src_install() {
56 make BINDIR=/usr/bin \
57 MANPATH=/usr/share/man \
58 TWMDIR=/usr/share/${PN} \
59 DESTDIR="${D}" install || die
60
61 make MANPATH=/usr/share/man \
62 DOCHTMLDIR=/usr/share/doc/${PF}/html \
63 DESTDIR="${D}" install.man || die
64
65 echo "#!/bin/sh" > ${T}/ctwm
66 echo "/usr/bin/ctwm" >> ${T}/ctwm
67
68 exeinto /etc/X11/Sessions
69 doexe "${T}"/ctwm || die
70
71 dodoc CHANGES README* TODO* PROBLEMS || die
72 dodoc *.ctwmrc* || die
73 }

  ViewVC Help
Powered by ViewVC 1.1.20