# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 inherit eutils toolchain-funcs DESCRIPTION="Port of various original Plan 9 tools for Unix" HOMEPAGE="http://wmii.de/index.php/WMII/9base" SRC_URI="http://wmii.de/download/${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~hppa ~x86 ~ppc" DEPEND="sys-libs/glibc" # A "static" use flag would be nice. Building as shared by default. #IUSE="static" src_unpack() { unpack "${A}" cd ${S} sed -i \ -e "/^PREFIX/s/=.*/= \/usr\/9/" \ -e "/^CC/s/=.*/= $(tc-getCC)/" \ -e "/^AR/s/=.*/= $(tc-getAR) cr/" \ -e "/^CFLAGS/s/-Os/-Os ${CFLAGS}/" \ -e "/^LDFLAGS/s/-static/${LDFLAGS}/" \ "${S}/config.mk" || die "sed failed." } # -e "/^YACC/s/=.*/= yacc/" \ src_compile() { MAKEOPTS="-j1" # Doesn't like others emake || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "make install failed." dodoc README LICENSE || die "dodoc failed." }