# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Maintainer: Stephan Wienczny # $Header: $ MY_P=${P/0./} MY_P=${MY_P/-/.} DESCRIPTION="Digital Mars D Programming Language Compiler" HOMEPAGE="http://www.digitalmars.com/d/" SRC_URI="ftp://ftp.digitalmars.com/${MY_P}.zip" LICENSE="Artistic" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND=">=sys-libs/glibc-2.3.0 >=sys-devel/gcc-2.3.0" S="${WORKDIR}" src_install() { dobin dmd/bin/dmd dobin dmd/bin/dumpobj dobin dmd/bin/obj2asm dolib.a dmd/lib/libphobos.a dodir /usr/lib cp -Rf dmd/src/phobos "${D}/usr/lib/phobos" dohtml -r dmd/html/* dodoc dmd/license.txt dodir /etc cat < "${D}/etc/dmd.conf" [Environment] DFLAGS=-I/usr/lib/phobos EOF }