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.
Created attachment 11678 [details] Ebuild for ctwm.
Created attachment 11679 [details] Ebuild for ctwm.
Created attachment 11680 [details] Ebuild for ctwm.
Created attachment 11681 [details] ChangeLog for ctwm.
Created attachment 11682 [details] Patch for ctwm.
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
I don't see that you evaluate the IUSE="X" anywhere. Seems you confused things with the DEPEND you are missing.
Created attachment 12033 [details] Ebuild for ctwm Ok. Attached new ebuild which includes a DEPEND="virtual/x11" and removes the redundant IUSE variable.
Committed :) Many thanks.
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.
I don't have time to look at the gnustep/windowmaker stuff at the moment :(
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).
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.
Created attachment 18610 [details] Fixed ebuild for ctwm. Fixed ebuild according to latest comments.
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.
Created attachment 18612 [details] Fixed ctwm ebuild. Really. Got damn! I must be on crack today...
Thanks for fixing the ebuild. Finally I committed it. It will be available in Portage tree soon. Have fun!
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.