# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="gif nls png kde oss jpeg gnome xinerama" # eclasses inherit cvs S=${WORKDIR}/wm DESCRIPTION="The fast and light GNUstep window manager" SRC_URI="ftp://ftp.windowmaker.org/pub/source/release/WindowMaker-extra-0.1.tar.gz http://vlaadworld.net/public/newbuttons.tar.gz" HOMEPAGE="http://www.windowmaker.org/" PROVIDE="x11-wm/WindowMaker" SLOT="0" LICENSE="GPL-2" KEYWORDS="x86 ppc sparc alpha" RDEPEND="virtual/x11 media-libs/hermes >=media-libs/tiff-3.5.5 gif? ( >=media-libs/giflib-4.1.0-r3 >=media-libs/libungif-4.1.0 ) png? ( >=media-libs/libpng-1.2.1 ) jpeg? ( >=media-libs/jpeg-6b-r2 ) nls? ( >=sys-devel/gettext-0.10.39 ) !x11-wm/WindowMaker" DEPEND="${RDEPEND} dev-util/cvs" # CVS eclass options ECVS_USER="anoncvs" ECVS_CVS_OPTIONS="-dP" ECVS_TOPDIR="${DISTDIR}/cvs-src/" [ -z "$NOCVSUPD" ] && ECVS_SERVER="cvs.windowmaker.org:/cvsroot" ECVS_MODULE="wm" src_unpack() { cvs_src_unpack unpack ${A} cp newbuttons/*.tiff ${S}/WPrefs.app/tiff/ cp newbuttons/*.xpm ${S}/WPrefs.app/xpm/ cd ${S} cd WINGs cp ${FILESDIR}/Xft1-wm.h ./ cp wfont.c wfont.c.orig echo "#include " > wfont.c cat wfont.c.orig >>wfont.c cp widgets.c widgets.c.orig echo "#include " > widgets.c cat widgets.c.orig >>wfont.c } src_compile() { local myconf cp autogen.sh autogen.sh.orig sed 's:./configure "$@".*::' \ autogen.sh.orig > autogen.sh ./autogen.sh || die "./autogen.sh failed" use gnome \ && myconf="${myconf} --enable-gnome" \ || myconf="${myconf} --disable-gnome" use kde \ && myconf="${myconf} --enable-kde" \ && export KDEDIR=/usr/kde/3 \ || myconf="${myconf} --disable-kde" if [ "$WITH_MODELOCK" ] ; then myconf="${myconf} --enable-modelock" else myconf="${myconf} --disable-modelock" fi use nls \ && export LINGUAS="`ls po/*.po | sed 's:po/\(.*\)\.po$:\1:'`" \ || myconf="${myconf} --disable-nls --disable-locale" use gif \ || myconf="${myconf} --disable-gif" use jpeg \ || myconf="${myconf} --disable-jpeg" use png \ || myconf="${myconf} --disable-png" use esd || use alsa || use oss \ && myconf="${myconf} --enable-sound" \ || myconf="${myconf} --disable-sound" use xinerama \ && myconf="${myconf} --enable-xinerama" econf \ --sysconfdir=/etc/X11 \ --with-x \ --enable-newstyle \ --enable-superfluous \ --enable-usermenu \ --with-appspath=/usr/share/GNUstep \ --with-pixmapdir=/usr/share/pixmaps \ ${myconf} || die cd ${S}/po cp Makefile Makefile.orig sed 's:zh_TW.*::' \ Makefile.orig > Makefile cd ${S}/WPrefs.app/po cp Makefile Makefile.orig sed 's:zh_TW.*::' \ Makefile.orig > Makefile cd ${S}/WindowMaker cp plmenu plmenu.orig sed 's:/usr/local/GNUstep/Apps/WPrefs.app/WPrefs:/usr/share/GNUstep/WPrefs.app/WPrefs:' \ plmenu.orig > plmenu cd ${S} #0.80.1-r2 did not work with make -j4 (drobbins, 15 Jul 2002) #with future Portage, this should become "emake -j1" make || die # WindowMaker Extra cd ../WindowMaker-extra-0.1 econf || die make || die } src_install() { einstall \ sysconfdir=${D}/etc/X11 \ wprefsdir=${D}/usr/share/GNUstep/WPrefs.app \ wpdatadir=${D}/usr/share/GNUstep/WPrefs.app \ wpexecbindir=${D}/usr/share/GNUstep/WPrefs.app || die cp -f WindowMaker/plmenu ${D}/etc/X11/WindowMaker/WMRootMenu dodoc AUTHORS BUGFORUM BUGS ChangeLog COPYING* INSTALL* FAQ* \ MIRRORS README* NEWS TODO insinto /usr/share/GNUstep/WPrefs.app doins WPrefs.app/font.data # WindowMaker Extra cd ../WindowMaker-extra-0.1 einstall || die newdoc README README.extra echo "#!/bin/bash" > wmaker echo "/usr/bin/wmaker" >> wmaker exeinto /etc/X11/Sessions/ doexe wmaker } pkg_postinst() { einfo "You need to emerge media-libs/xpm to get transparent globes or" einfo "other transparent elements." }