/[gentoo-x86]/x11-wm/ctwm/ctwm-3.8.1.ebuild
Gentoo

Contents of /x11-wm/ctwm/ctwm-3.8.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Feb 7 22:13:07 2012 UTC (2 years, 10 months ago) by jer
Branch: MAIN
Version bump.

(Portage version: 2.2.0_alpha85/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.4 2011/12/21 08:51:41 phajdan.jr Exp $
4
5 EAPI=4
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="
19 x11-libs/libICE
20 x11-libs/libSM
21 x11-libs/libX11
22 x11-libs/libXext
23 x11-libs/libXmu
24 x11-libs/libXt
25 "
26 DEPEND="
27 ${RDEPEND}
28 app-text/rman
29 virtual/jpeg
30 x11-misc/imake
31 x11-proto/xextproto
32 x11-proto/xproto
33 "
34
35 src_prepare() {
36 # overflow bug 338180
37 sed -i menus.c -e "/char modStr/ s/5/6/" || die
38
39 # implicit 'isspace'
40 sed -i parse.c -e "/<stdio.h>/ a#include <ctype.h>" || die
41
42 sed -i Imakefile -e "/^CONFDIR/s@=.*@= /etc/X11/twm@g" || die
43
44 cp Imakefile.local-template Imakefile.local
45
46 # TODO: Add GNOME support
47 sed -i Imakefile.local -e '/^#define GNOME/d' || die
48 }
49
50 src_compile() {
51 xmkmf || die
52 emake \
53 CC=$(tc-getCC) \
54 CFLAGS="${CFLAGS}" \
55 EXTRA_LDOPTIONS="${LDFLAGS}" \
56 TWMDIR=/usr/share/${PN}
57 }
58
59 src_install() {
60 emake BINDIR=/usr/bin \
61 MANPATH=/usr/share/man \
62 TWMDIR=/usr/share/${PN} \
63 DESTDIR="${D}" install
64
65 emake MANPATH=/usr/share/man \
66 DOCHTMLDIR=/usr/share/doc/${PF}/html \
67 DESTDIR="${D}" install.man
68
69 echo "#!/bin/sh" > ${T}/ctwm
70 echo "/usr/bin/ctwm" >> ${T}/ctwm
71
72 exeinto /etc/X11/Sessions
73 doexe "${T}"/ctwm
74
75 dodoc CHANGES README* TODO* PROBLEMS
76 dodoc *.ctwmrc*
77 }

  ViewVC Help
Powered by ViewVC 1.1.20