# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils toolchain-funcs LICENSE="owpl" DESCRIPTION="The Open Watcom compiler" HOMEPAGE="http://www.openwatcom.org" SRC_URI="http://openwatcom.mirrors.skynet.be/pub/ftp.openwatcom.org/source/open_watcom_${PV}-src.tar.bz2" KEYWORDS="x86" SLOT="0" IUSE="samples sources" DEPEND="sys-devel/gcc" RESTRICT="strip" src_unpack() { mkdir ${P} cd ${P} unpack ${A} } src_compile() { ./build.sh || die "build.sh failed" } src_install() { mkdir -p ${D}/opt cp -R rel2 ${D}/opt/openwatcom ln -s binl ${D}/opt/openwatcom/bin use samples || rm -rf ${D}/opt/openwatcom/samples use sources || rm -rf ${D}/opt/openwatcom/src }