ChangeLog

# ChangeLog for dev-lang/dmd-bin
# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v 1.15 2008/03/22 17:51:23 coldwind Exp $

22 Mar 2008; Santiago M. Mola
dmd-bin-2.008-r1.ebuild:
~amd64 added wrt bug #201781

*dmd-bin-2.008-r1 (18 Jan 2008)

18 Jan 2008; -dmd-bin-2.008.ebuild,
+dmd-bin-2.008-r1.ebuild:
Cleanup ebuild, and install only what's neccessary. Fixes bugs #206346 and
#203350

*dmd-bin-2.008 (24 Dec 2007)

24 Dec 2007; -dmd-bin-1.022.ebuild,
-dmd-bin-1.023.ebuild, +dmd-bin-2.008.ebuild:
Bump to version 2, still keeping 1.016 from (yet to be stabled) 1.x series

*dmd-bin-1.023 (03 Nov 2007)

03 Nov 2007; Anant Narayanan +dmd-bin-1.023.ebuild:
bump to 1.023, closes #197919

08 Oct 2007; Anant Narayanan dmd-bin-1.022.ebuild:
QA fixes (quoting)

*dmd-bin-1.022 (06 Oct 2007)

06 Oct 2007; Anant Narayanan -dmd-bin-1.020.ebuild,
+dmd-bin-1.022.ebuild:
bump to 1.0.22 (bug #194936)

*dmd-bin-1.020 (26 Jul 2007)

26 Jul 2007; Anant Narayanan -dmd-bin-1.018.ebuild,
+dmd-bin-1.020.ebuild:
bump to 1.020 (bug #186631)

02 Jul 2007; Piotr JaroszyƄski dmd-bin-1.016.ebuild,
dmd-bin-1.018.ebuild:
(QA) RESTRICT clean up.

*dmd-bin-1.018 (02 Jul 2007)
*dmd-bin-1.016 (02 Jul 2007)

02 Jul 2007; Anant Narayanan -dmd-bin-1.0.0.ebuild,
-dmd-bin-1.010.ebuild, -dmd-bin-1.014.ebuild, -dmd-bin-1.015.ebuild,
+dmd-bin-1.016.ebuild, +dmd-bin-1.018.ebuild:
bump to stable 1.016 and development 1.018 versions, per bug #183962

*dmd-bin-1.015 (16 Jun 2007)

16 Jun 2007; Anant Narayanan +dmd-bin-1.015.ebuild:
vBump to 1.015, closes bug #181663

*dmd-bin-1.014 (21 May 2007)

21 May 2007; Anant Narayanan +dmd-bin-1.014.ebuild:
vBump to 1.014.

*dmd-bin-1.010 (21 May 2007)

21 May 2007; Anant Narayanan +dmd-bin-1.010.ebuild:
vBump to 1.010 and make Phobos compile instead of using the bundled binary

08 Mar 2007; Anant Narayanan dmd-bin-1.0.0.ebuild:
Change incorrect dependency on libstdc++ and update post-install message.

*dmd-bin-1.0.0 (08 Mar 2007)

08 Mar 2007; Anant Narayanan +files/25dmd, +metadata.xml,
+dmd-bin-1.0.0.ebuild:
Introduce version 1.0 of the D compiler from Digital Mars. Thanks go to Thomas
Kuhne for inputs (bug #46806)

Manifest

AUX 25dmd 40 RMD160 cb1eb838eaf98d9898134384d3aefeec86bdd50a SHA1 1b7b42ad749a3541fb80bb944a49706ff974bd91 SHA256 40a0ac49424a2ce0a372c66fac3c77b6634138beaacffda0c167f3a81d4a286c
DIST dmd.1.016.zip 4813864 RMD160 b0f3f6278114da3c3100a712ab71172b550a3c06 SHA1 663f5a409f9ff331ec220b4b82d554292ba8b970 SHA256 839c0d0288560989e16271e842c368347ff392c648b8fe5e4daa9853dfd6684d
DIST dmd.2.008.zip 5325757 RMD160 13e6ba91db036210d02144d0fc37c6872b8aa98c SHA1 42502dd5252260dd9502138cc093fd0756339cc5 SHA256 8d8a0b4399ebf1ecc7e88ee68852db5e944ec7b88607d7c02a150bfcdfaf2b64
EBUILD dmd-bin-1.016.ebuild 3086 RMD160 d32de000cb5b51c8a3a679926493041e8752fae6 SHA1 ec9a8850083ce17c22fb5814e0eda0d6e410ec8e SHA256 6daab78ce6f1dca517bf860f432a19bcb935562e3196fcb95562d7346decd98a
EBUILD dmd-bin-2.008-r1.ebuild 2585 RMD160 5a366954c30e785be2550ade4221ee33d63872b8 SHA1 128d1380cdcd2532b38f0f918b417a863b507e67 SHA256 773b64f53ed319467bd2a316192f610cd2cf6b300643790eab13be69ab84abef
MISC ChangeLog 2579 RMD160 61d38f24fe4922b93a61ebbe9e2ba21202215b48 SHA1 76aff2b16b3ab8e9f70a1cb9cb1153472d6d2217 SHA256 10687ec4324e89b7828ccc4bbcb70d30193bd4e78c29f4134d912d0ead770ce7
MISC metadata.xml 377 RMD160 13a78c943806783fb1fee7aa1e85d172de4d7374 SHA1 bb8415f5926bf8ed23d01a2be2fd3fe41c51b3e1 SHA256 5d3fc7d4a252235ca9ede55a655d65b71d68e7edcacb2ef341589da7e07892e3

dmd-bin-1.016.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/dmd-bin-1.016.ebuild,v 1.3 2007/07/13 06:25:50 mr_bones_ Exp $

inherit eutils

MY_P=${P/-bin/}
MY_P=${MY_P/-/.}

DESCRIPTION="Digital Mars D Compiler"
HOMEPAGE="http://www.digitalmars.com/d/"
SRC_URI="http://ftp.digitalmars.com/${MY_P}.zip"

LICENSE="DMD"
RESTRICT="mirror strip"
SLOT="0"
KEYWORDS="~x86"

LOC="/opt/dmd"
S="${WORKDIR}"

DEPEND="sys-apps/findutils"
RDEPEND="amd64? ( app-emulation/emul-linux-x86-compat )
x86? ( sys-libs/libstdc++-v3 )"

src_unpack() {
unpack ${A}

# Remove unneccessary files
mv ${S}/dmd/lib/libphobos.a ${S}/dmd
rm -r ${S}/dmd/lib
mkdir ${S}/dmd/lib
mv ${S}/dmd/libphobos.a ${S}/dmd/lib

rm -r ${S}/dm
rm ${S}/dmd/bin/*.dll ${S}/dmd/bin/*.exe ${S}/dmd/bin/readme.txt
rm ${S}/dmd/bin/sc.ini ${S}/dmd/bin/windbg.hlp

# Cleanup line endings
cd ${S}/dmd
edos2unix `find . -name '*.c' -type f`
edos2unix `find . -name '*.d' -type f`
edos2unix `find . -name '*.ddoc' -type f`
edos2unix `find . -name '*.h' -type f`
edos2unix `find . -name '*.mak' -type f`
edos2unix `find . -name '*.txt' -type f`
edos2unix `find samples -name '*.html' -type f`

# Fix permissions
fperms guo=r `find . -type f`
fperms guo=rx `find . -type d`
fperms guo=rx bin/dmd bin/dumpobj bin/obj2asm bin/rdmd
}

src_compile() {
cd ${S}/dmd/src/phobos
sed -i -e "s:DMD=.*:DMD=${S}/dmd/bin/dmd -I${S}/dmd/src/phobos -L${S}/dmd/lib/libphobos.a:" linux.mak internal/gc/linux.mak
edos2unix linux.mak internal/gc/linux.mak
make -f linux.mak
cp libphobos.a ${S}/dmd/lib

# Clean up
make -f linux.mak clean
rm internal/gc/*.o
}

src_install() {
cd ${S}/dmd

# Broken dmd.conf
# http://d.puremagic.com/issues/show_bug.cgi?id=278
mv bin/dmd bin/dmd.bin
cat < "bin/dmd"
#!/bin/sh
${LOC}/bin/dmd.bin -I${LOC}/src/phobos -L${LOC}/lib/libphobos.a \$*
END
fperms guo=rx bin/dmd bin/dmd.bin

# Man pages
doman man/man1/dmd.1
doman man/man1/dumpobj.1
doman man/man1/obj2asm.1
rm -r man

# Install
mkdir "${D}/opt"
mv "${S}/dmd" "${D}/opt/dmd"

# Set PATH
doenvd "${FILESDIR}/25dmd"
}

pkg_postinst () {
ewarn "The DMD Configuration file has been disabled, "
ewarn "and will be re-enabled when: "
ewarn " "
ewarn "http://d.puremagic.com/issues/show_bug.cgi?id=278"
ewarn " "
ewarn "has been fixed. Meanwhile, please supply all your"
ewarn "configuration options in the /opt/dmd/bin/dmd "
ewarn "shell script. "
ewarn " "
ewarn "You may need to run: "
ewarn " "
ewarn "env-update && source /etc/profile "
ewarn " "
ewarn "to be able to use the compiler immediately. "
ewarn " "
}

dmd-bin-2.008-r1.ebuild

# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/dmd-bin-2.008-r1.ebuild,v 1.2 2008/03/22 17:51:23 coldwind Exp $

inherit eutils

MY_P=${P/-bin/}
MY_P=${MY_P/-/.}

DESCRIPTION="Digital Mars D Compiler"
HOMEPAGE="http://www.digitalmars.com/d/"
SRC_URI="http://ftp.digitalmars.com/${MY_P}.zip"

LICENSE="DMD"
RESTRICT="mirror strip"
SLOT="0"
KEYWORDS="~amd64 ~x86"

LOC="/opt/dmd"
S="${WORKDIR}"

DEPEND="sys-apps/findutils"
RDEPEND="amd64? ( app-emulation/emul-linux-x86-compat )
x86? ( sys-libs/libstdc++-v3 )"

src_unpack() {
unpack ${A}

# Cleanup line endings
cd "${S}/dmd"
edos2unix `find . -name '*.c' -type f`
edos2unix `find . -name '*.d' -type f`
edos2unix `find . -name '*.ddoc' -type f`
edos2unix `find . -name '*.h' -type f`
edos2unix `find . -name '*.mak' -type f`
edos2unix `find . -name '*.txt' -type f`
edos2unix `find samples -name '*.html' -type f`
edos2unix src/phobos/linux.mak src/phobos/internal/gc/linux.mak

# Fix permissions and clean up
fperms guo=r `find . -type f`
fperms guo=rx `find . -type d`
fperms guo=rx bin/dmd bin/dumpobj bin/obj2asm bin/rdmd
}

src_compile() {
# Don't use teh bundled library since on gentoo we do teh compile
cd "${S}/dmd/src/phobos"
sed -i -e "s:DMD=.*:DMD=${S}/dmd/bin/dmd:" linux.mak internal/gc/linux.mak
# Can't use emake, customized build system
make -f linux.mak
cp obj/release/libphobos2.a "${S}/dmd/lib"

# Clean up
make -f linux.mak clean
}

src_install() {
cd "${S}/dmd"

# Setup dmd.conf
cat < "bin/dmd.conf"
[Environment]
DFLAGS=-I/opt/dmd/src/phobos -L-L/opt/dmd/lib
END
insinto /etc
doins bin/dmd.conf

# Man pages
doman man/man1/dmd.1
doman man/man1/dumpobj.1
doman man/man1/obj2asm.1

# Documentation
dohtml "html/d/*" "html/d/phobos/*"

# Install
exeinto /opt/dmd/bin
doexe bin/dmd
doexe bin/dumpobj
doexe bin/obj2asm
doexe bin/rdmd

insinto /opt/dmd/lib
doins lib/libphobos2.a

insinto /opt/dmd/samples
doins "samples/d/*"

# Phobos and DMD source
mv src "${D}/opt/dmd/"

# Set PATH
doenvd "${FILESDIR}/25dmd"
}

pkg_postinst () {
ewarn "You may need to run: "
ewarn "env-update && source /etc/profile "
ewarn "to be able to use the compiler immediately. "
einfo " "
einfo "The bundled samples and sources may be found in "
einfo "/opt/dmd/samples and /opt/dmd/src respectively. "
einfo " "
}

files

metadata.xml




lang-misc

anant@gentoo.org
Anant Narayanan


This package provides a binary version of
the D language compiler from Digital Mars