# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Seemant Kulleen # $Header: /var/cvsroot/gentoo-x86/x11-wm/openbox/openbox-0.99.1.ebuild,v 1.1 2002/04/29 11:16:22 seemant Exp $ S=${WORKDIR}/${P} DESCRIPTION="Window manager based on BlackBox" SRC_URI="ftp://sunsite.dk/projects/openbox/${P}.tar.gz" HOMEPAGE="http://openbox.sunsite.dk" DEPEND="virtual/x11" RDEPEND="${DEPEND} nls? ( >=sys-devel/gettext-0.10.38 )" PROVIDE="virtual/blackbox" src_compile() { local myconf use nls \ && myconf="${myconf} --enable-nls" \ || myconf="${myconf} --disable-nls" use kde \ && myconf="${myconf} --enable-kde" \ && export KDEDIR=/usr/kde/2 \ || myconf="${myconf} --disable-kde" use gnome \ && myconf="${myconf} --enable-gnome" \ || myconf="${myconf} --disable-gnome" ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ $myconf || die emake || die } src_install () { make \ prefix=${D}/usr \ sysconfdir=${D}/etc/X11/openbox \ mandir=${D}/usr/share/man \ infodir=${D}/usr/share/info \ install || die dodoc ChangeLog AUTHORS COPYING INSTALL README TODO NEWS docinto data dodoc data/README* dodir /etc/X11/Sessions echo "/usr/bin/openbox" > ${D}/etc/X11/Sessions/openbox chmod +x ${D}/etc/X11/Sessions/openbox }