# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/x11-wm/waimea/waimea-0.5.0_pre040506.ebuild,v 1.10 2006/03/24 13:11:13 usata Exp $ inherit eutils MY_P="${P%_pre*}" # 0.5.0_pre040506 -> 0.5.0 S="${WORKDIR}/${MY_P}" DESCRIPTION="Window manager based on BlackBox" # Temporary URL until SF's CVS is back online SRC_URI="http://www.cs.umu.se/~c99drn/waimea/${P/_pre/-}.tar.gz" HOMEPAGE="http://waimea.sourceforge.net/ http://www.freedesktop.org/wiki/Software/waimea" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~sparc ~x86" IUSE="truetype xinerama svg" DEPEND="virtual/x11 >=x11-libs/cairo-0.1.22 svg? ( x11-libs/libsvg-cairo )" PROVIDE="virtual/blackbox" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${MY_P}-64bit-clean.patch epatch ${FILESDIR}/${MY_P}-font.patch if has_version '>=x11-libs/cairo-0.3' ; then epatch ${FILESDIR}/${MY_P}-includes.patch fi } src_compile() { econf \ `use_enable xinerama` \ `use_enable truetype xft` \ `use_enable svg ` \ --enable-shape \ --enable-render \ --enable-randr \ --enable-pixmap \ || die emake || die } src_install() { einstall sysconfdir=${D}/etc/X11/waimea || die dodoc ChangeLog AUTHORS COPYING INSTALL README TODO NEWS exeinto /etc/X11/Sessions echo "/usr/bin/waimea" > waimea doexe waimea } pkg_postinst() { einfo "Please read the README in /usr/share/doc/${PF}" einfo "for info on setting up and configuring waimea" }