summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2010-09-16 14:46:03 +0000
committerJeroen Roovers <jer@gentoo.org>2010-09-16 14:46:03 +0000
commite0dd2e4b9ed39c34067aa91c8f364c9d46a84352 (patch)
tree7fa4c67ba0a98b40b9a42e826b47d8e338fb9961 /x11-wm/ctwm
parenthttp://my.opera.com/desktopteam/blog/2010/09/16/unix-love (diff)
downloadgentoo-2-e0dd2e4b9ed39c34067aa91c8f364c9d46a84352.tar.gz
gentoo-2-e0dd2e4b9ed39c34067aa91c8f364c9d46a84352.tar.bz2
gentoo-2-e0dd2e4b9ed39c34067aa91c8f364c9d46a84352.zip
Bump. Respect CC, CFLAGS, LDFLAGS. Disable GNOME support for now.
(Portage version: 2.2_rc82/cvs/Linux i686)
Diffstat (limited to 'x11-wm/ctwm')
-rw-r--r--x11-wm/ctwm/ChangeLog9
-rw-r--r--x11-wm/ctwm/ctwm-3.8a.ebuild71
2 files changed, 78 insertions, 2 deletions
diff --git a/x11-wm/ctwm/ChangeLog b/x11-wm/ctwm/ChangeLog
index ff75073db6d0..99983bc7a18e 100644
--- a/x11-wm/ctwm/ChangeLog
+++ b/x11-wm/ctwm/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for x11-wm/ctwm
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-wm/ctwm/ChangeLog,v 1.20 2008/07/19 10:00:12 aballier Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/ctwm/ChangeLog,v 1.21 2010/09/16 14:46:03 jer Exp $
+
+*ctwm-3.8a (16 Sep 2010)
+
+ 16 Sep 2010; Jeroen Roovers <jer@gentoo.org> +ctwm-3.8a.ebuild:
+ Bump. Respect CC, CFLAGS, LDFLAGS. Disable GNOME support for now.
19 Jul 2008; Alexis Ballier <aballier@gentoo.org> ctwm-3.7.ebuild:
keyword ~x86-fbsd thanks to Davide Italiano <dav_it@gentoo.org>, bug
diff --git a/x11-wm/ctwm/ctwm-3.8a.ebuild b/x11-wm/ctwm/ctwm-3.8a.ebuild
new file mode 100644
index 000000000000..73914c9b4fbc
--- /dev/null
+++ b/x11-wm/ctwm/ctwm-3.8a.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-wm/ctwm/ctwm-3.8a.ebuild,v 1.1 2010/09/16 14:46:03 jer Exp $
+
+EAPI="2"
+
+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="gnome"
+
+RDEPEND="x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXpm
+ x11-libs/libXt"
+DEPEND="${RDEPEND}
+ app-text/rman
+ media-libs/jpeg
+ x11-misc/imake
+ x11-proto/xextproto
+ x11-proto/xproto"
+
+src_prepare() {
+ sed -i Imakefile \
+ -e "s@\(CONFDIR =\).*@\1 /etc/X11/twm@g" \
+ || die "sed Imakefile"
+
+ cp Imakefile.local-template Imakefile.local
+
+ # TODO: Add GNOME support
+ sed -i Imakefile.local \
+ -e '/^#define GNOME/d' \
+ || die "sed Imakefile.local"
+}
+
+src_compile() {
+ xmkmf || die "xmkmf failed"
+ emake \
+ CC=$(tc-getCC) \
+ CFLAGS="${CFLAGS}" \
+ EXTRA_LDOPTIONS="${LDFLAGS}" \
+ TWMDIR=/usr/share/${PN} \
+ || die "emake failed"
+}
+
+src_install() {
+ make BINDIR=/usr/bin \
+ MANPATH=/usr/share/man \
+ TWMDIR=/usr/share/${PN} \
+ DESTDIR="${D}" install || die "make install failed"
+
+ make MANPATH=/usr/share/man \
+ DOCHTMLDIR=/usr/share/doc/${PF}/html \
+ DESTDIR="${D}" install.man || die "make install.man failed"
+
+ 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*
+}