# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit toolchain-funcs DESCRIPTION="window manager improved 2 -- the next generation of the WMI project." HOMEPAGE="http://wmii.de" SRC_URI="http://wmii.de/download/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND="|| ( x11-libs/libX11 virtual/x11 )" src_unpack() { unpack "${A}" cd ${S} sed -i \ -e "/^PREFIX/s/=.*/= \/usr/" \ -e "/^CONFPREFIX/s/=.*/= \/etc/" \ -e "/^CC/s/=.*/= $(tc-getCC)/" \ -e "/^AR/s/=.*/= $(tc-getAR) cr/" \ -e "/^RANLIB/s/=.*/= $(tc-getRANLIB)/" \ -e "/^CFLAGS/s/-O0/${CFLAGS}/" \ -e "/^LDFLAGS/s/-g /-g ${LDFLAGS} /" \ "${S}/config.mk" || die "sed failed." } src_install() { make DESTDIR="${D}" install || die "make install failed." dodoc LICENSE README || die "dodoc failed." }