Code: Select all
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: $
RESTRICT="nomirror"
S="${WORKDIR}/${P}"
DESCRIPTION="Compiler, library and tools for the D language"
HOMEPAGE="http://www.digitalmars.com/d/"
SRC_URI="ftp://ftp.digitalmars.com/dmd.zip"
LICENSE="Artistic as-is"
SLOT="0"
KEYWORDS="~x86"
IUSE=""
RDEPEND="sys-devel/gcc"
src_install() {
cd ${WORKDIR}/dmd
# rename to make sure we don't overwrite files from another package
mv bin/dumpobj bin/dmd-dumpobj
mv bin/obj2asm bin/dmd-obj2asm
dobin bin/{dmd,dmd-dumpobj,dmd-obj2asm}
dolib lib/libphobos.a
dohtml html/d/*
dodoc bin/readme.txt license.txt
# the source files are important, or the compiler won't
# find the library functions
dodir usr/lib/dmd
cp -r src/phobos/* ${D}/usr/lib/dmd/
# config file to set the path for the source files
dodir etc/env.d
echo "DFLAGS=\"-I/usr/lib/dmd\"" > ${D}/etc/env.d/40dflags
}
Code: Select all
env-update && source /etc/profileEDIT: spelling






