Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20628 - New ebuild for ctwm window manager.
Summary: New ebuild for ctwm window manager.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement
Assignee: Mamoru KOMACHI (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD
Depends on:
Blocks:
 
Reported: 2003-05-08 08:46 UTC by Tobias Anderberg
Modified: 2003-11-18 08:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Ebuild for ctwm. (ctwm-3.6.ebuild,603 bytes, text/plain)
2003-05-08 08:49 UTC, Tobias Anderberg
Details
Ebuild for ctwm. (ctwm-3.6.ebuild,603 bytes, application/octet-stream)
2003-05-08 08:49 UTC, Tobias Anderberg
Details
Ebuild for ctwm. (ctwm-3.6.ebuild,603 bytes, text/plain)
2003-05-08 08:50 UTC, Tobias Anderberg
Details
ChangeLog for ctwm. (ChangeLog,256 bytes, text/plain)
2003-05-08 08:52 UTC, Tobias Anderberg
Details
Patch for ctwm. (ctwm-3.6-gentoo.diff,1.14 KB, text/plain)
2003-05-08 08:52 UTC, Tobias Anderberg
Details
Ebuild for ctwm (ctwm-3.6.ebuild,616 bytes, text/plain)
2003-05-15 14:02 UTC, Tobias Anderberg
Details
Fixed ebuild for ctwm. (ctwm-3.6.ebuild,754 bytes, text/plain)
2003-10-02 12:02 UTC, Tobias Anderberg
Details
Eh. Really fixed it this time... (ctwm-3.6.ebuild,754 bytes, text/plain)
2003-10-02 12:06 UTC, Tobias Anderberg
Details
Fixed ctwm ebuild. Really. (ctwm-3.6.ebuild,766 bytes, text/plain)
2003-10-02 12:09 UTC, Tobias Anderberg
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Anderberg 2003-05-08 08:46:54 UTC
Ebuild (x11-wm/ctwm/ctwm-3.6.ebuild):
-------------------------------------

# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $

IUSE="X"

S=${WORKDIR}/${P}
DESCRIPTION="A clean, light window manager."

SRC_URI="http://ctwm.free.lp.se/dist/${P}.tar.gz"
HOMEPAGE="http://ctwm.free.lp.se/"

SLOT="0"
KEYWORDS="x86"
LICENSE="MIT"

src_unpack() {
	unpack ${A}
	cd ${S}
	patch -p0 < ${FILESDIR}/${P}-gentoo.diff
}

src_compile() {
	xmkmf
	emake || die
}

src_install() {
	make DESTDIR=${D} install || die

	echo "#!/bin/sh" > ctwm
	echo "/usr/X11R6/bin/ctwm" >> ctwm

	exeinto /etc/X11/Sessions
	doexe ctwm
}

Patch (x11-wm/ctwm/files/ctwm-3.6-gentoo.diff):
-----------------------------------------------

--- Imakefile-orig	2001-12-11 16:38:52.000000000 +0100
+++ Imakefile	2003-05-08 14:22:20.000000000 +0200
@@ -9,7 +9,7 @@
 #undef  DEBUG
 #undef  IMCONV
 #undef  USE_SOUND
-#define XPM
+#undef  XPM
 #define USEM4
 #undef X11R6
 #undef I18N
--- gram.y-orig	2001-12-11 16:38:52.000000000 +0100
+++ gram.y	2003-05-08 13:11:55.000000000 +0200
@@ -427,6 +427,7 @@
 
 		| WINDOW_GEOMETRIES 	 {  }
 		  wingeom_list
+		;
 
 noarg		: KEYWORD		{ if (!do_single_keyword ($1)) {
 					    twmrc_error_prefix();
@@ -683,8 +684,8 @@
 		| wingeom_entries wingeom_entry
 		;
 
-wingeom_entry	: string string	{ AddToList (&Scr->WindowGeometries, $1, $2) }
-
+wingeom_entry	: string string	{ AddToList (&Scr->WindowGeometries, $1, $2); }
+		;
 
 
 squeeze		: SQUEEZE_TITLE { 
@@ -835,6 +836,7 @@
 				AddToClientsList ($1, client);
 			  }
 
+		;
 occupy_window_list	: LB occupy_window_entries RB {}
 			;
 
@@ -845,7 +847,7 @@
 occupy_window_entry	: string {
 				AddToClientsList (workspace, $1);
 			  }
-
+		;
 icon_list	: LB icon_entries RB {}
 		;
 
@@ -962,6 +964,7 @@
 					  RemoveDQuote(ptr);
 					  $$ = (unsigned char*)ptr;
 					}
+		;
 number		: NUMBER		{ $$ = $1; }
 		;

ChangeLog (x11-wm/ctwm/ChangeLog):
----------------------------------

# ChangeLog for x11-wm/ctwm
# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPLv2

*ctwm-3.6 (8 May 2003)

  8 May 2003; Tobias Anderberg <tba@softhome.net> ChangeLog, ctwm-3.6.ebuild:

  Added initial .ebuild, patch and ChangeLog for ctwm.
Comment 1 Tobias Anderberg 2003-05-08 08:49:32 UTC
Created attachment 11678 [details]
Ebuild for ctwm.
Comment 2 Tobias Anderberg 2003-05-08 08:49:48 UTC
Created attachment 11679 [details]
Ebuild for ctwm.
Comment 3 Tobias Anderberg 2003-05-08 08:50:18 UTC
Created attachment 11680 [details]
Ebuild for ctwm.
Comment 4 Tobias Anderberg 2003-05-08 08:52:06 UTC
Created attachment 11681 [details]
ChangeLog for ctwm.
Comment 5 Tobias Anderberg 2003-05-08 08:52:45 UTC
Created attachment 11682 [details]
Patch for ctwm.
Comment 6 Tobias Anderberg 2003-05-08 08:54:40 UTC
Ok, I attached the actual files as well. First time I report things via bugzilla, and things got confusing. Hopefully everything makes some sense now. /tba
Comment 7 Patrick Kursawe (RETIRED) gentoo-dev 2003-05-15 11:32:13 UTC
I don't see that you evaluate the IUSE="X" anywhere. Seems you confused things with the DEPEND you are missing.
Comment 8 Tobias Anderberg 2003-05-15 14:02:32 UTC
Created attachment 12033 [details]
Ebuild for ctwm

Ok. Attached new ebuild which includes a DEPEND="virtual/x11" and removes the
redundant IUSE variable.
Comment 9 rob holland (RETIRED) gentoo-dev 2003-06-13 02:28:25 UTC
Committed :) Many thanks.
Comment 10 rob holland (RETIRED) gentoo-dev 2003-06-13 02:52:28 UTC
Sorry, this hasn't been committed, I commented on the wrong bug by mistake.

The make stage of this seems to freeze for me after the ranlib line...

Any idea why that might be? I can't see any obvious reason.
Comment 11 rob holland (RETIRED) gentoo-dev 2003-06-23 10:26:41 UTC
I don't have time to look at the gnustep/windowmaker stuff at the moment :(
Comment 12 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-08-03 22:37:01 UTC
The ebuild looks fine but it would be helpful if you add 
dodoc CHANGES PROBLEMS README (especially there are many examples
and changes in CHANGES file).
Comment 13 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-08-25 15:49:30 UTC
Are you still interested in rewriting the ebuild?
It seems you forgot to add ctwm manpage.  newman ctwm.man ctwm.1x
or make DESTDIR=${D} install.man will do the job.  I think it's
better to add {example,levitte,peterc}.ctwmrc as additional document.

btw, as Gentoo Portage follows FHS, ctwm binaries should be installed
to /usr/bin instead of /usr/X11R6/bin, and system.ctwmrc to
/etc/X11/twm instead of /usr/X11R6/lib/X11/twm (it is a symbolic link
to /etc/X11/twm, so it wouldn't break anything).  See x11-wm/vtwm
to install all files & directories according to FHS.
Comment 14 Tobias Anderberg 2003-10-02 12:02:42 UTC
Created attachment 18610 [details]
Fixed ebuild for ctwm.

Fixed ebuild according to latest comments.
Comment 15 Tobias Anderberg 2003-10-02 12:06:27 UTC
Created attachment 18611 [details]
Eh. Really fixed it this time...

Managed to screw it up once again. This should be according to the latest
comments. Arg. Bugzilla really isn't my thing. Sorry 'bout that.
Comment 16 Tobias Anderberg 2003-10-02 12:09:04 UTC
Created attachment 18612 [details]
Fixed ctwm ebuild. Really.

Got damn! I must be on crack today...
Comment 17 Mamoru KOMACHI (RETIRED) gentoo-dev 2003-10-02 16:33:25 UTC
Thanks for fixing the ebuild. Finally I committed it.
It will be available in Portage tree soon.
Have fun!
Comment 18 J.O. Aho 2003-11-18 08:33:10 UTC
ctwm is now up on version 3.7 alpha4

ctwm is compiled without xpm support, which limits the use of many of the nicer themes for ctwm. 

Changes that could be done is make ctwm to depend on xpm (which it don't do today) and remove the following from the patch file:

 -#define XPM
 +#undef  XPM

Think this will requier the xpm images from the ctwm 3.5.2 tarball.