From d7ea6c3630ae002c3acb13e05b0d65dd4abc9186 Mon Sep 17 00:00:00 2001 From: Anant Narayanan Date: Mon, 2 Jul 2007 11:15:17 +0000 Subject: bump to stable 1.016 and development 1.018 versions, per bug #183962 (Portage version: 2.1.3_rc6) --- dev-lang/dmd-bin/ChangeLog | 10 ++- dev-lang/dmd-bin/dmd-bin-1.0.0.ebuild | 93 ----------------------- dev-lang/dmd-bin/dmd-bin-1.010.ebuild | 110 ---------------------------- dev-lang/dmd-bin/dmd-bin-1.014.ebuild | 110 ---------------------------- dev-lang/dmd-bin/dmd-bin-1.015.ebuild | 110 ---------------------------- dev-lang/dmd-bin/dmd-bin-1.016.ebuild | 110 ++++++++++++++++++++++++++++ dev-lang/dmd-bin/dmd-bin-1.018.ebuild | 110 ++++++++++++++++++++++++++++ dev-lang/dmd-bin/files/digest-dmd-bin-1.0.0 | 3 - dev-lang/dmd-bin/files/digest-dmd-bin-1.010 | 3 - dev-lang/dmd-bin/files/digest-dmd-bin-1.014 | 3 - dev-lang/dmd-bin/files/digest-dmd-bin-1.015 | 3 - dev-lang/dmd-bin/files/digest-dmd-bin-1.016 | 3 + dev-lang/dmd-bin/files/digest-dmd-bin-1.018 | 3 + 13 files changed, 235 insertions(+), 436 deletions(-) delete mode 100644 dev-lang/dmd-bin/dmd-bin-1.0.0.ebuild delete mode 100644 dev-lang/dmd-bin/dmd-bin-1.010.ebuild delete mode 100644 dev-lang/dmd-bin/dmd-bin-1.014.ebuild delete mode 100644 dev-lang/dmd-bin/dmd-bin-1.015.ebuild create mode 100644 dev-lang/dmd-bin/dmd-bin-1.016.ebuild create mode 100644 dev-lang/dmd-bin/dmd-bin-1.018.ebuild delete mode 100644 dev-lang/dmd-bin/files/digest-dmd-bin-1.0.0 delete mode 100644 dev-lang/dmd-bin/files/digest-dmd-bin-1.010 delete mode 100644 dev-lang/dmd-bin/files/digest-dmd-bin-1.014 delete mode 100644 dev-lang/dmd-bin/files/digest-dmd-bin-1.015 create mode 100644 dev-lang/dmd-bin/files/digest-dmd-bin-1.016 create mode 100644 dev-lang/dmd-bin/files/digest-dmd-bin-1.018 (limited to 'dev-lang/dmd-bin') diff --git a/dev-lang/dmd-bin/ChangeLog b/dev-lang/dmd-bin/ChangeLog index 6d320b53411f..d63d6191b2cb 100644 --- a/dev-lang/dmd-bin/ChangeLog +++ b/dev-lang/dmd-bin/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-lang/dmd-bin # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v 1.6 2007/06/16 00:27:47 anant Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/dmd-bin/ChangeLog,v 1.7 2007/07/02 11:15:17 anant Exp $ + +*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) diff --git a/dev-lang/dmd-bin/dmd-bin-1.0.0.ebuild b/dev-lang/dmd-bin/dmd-bin-1.0.0.ebuild deleted file mode 100644 index 0fc1682d5a3e..000000000000 --- a/dev-lang/dmd-bin/dmd-bin-1.0.0.ebuild +++ /dev/null @@ -1,93 +0,0 @@ -# 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.0.0.ebuild,v 1.2 2007/03/09 15:12:46 anant Exp $ - -inherit eutils - -MY_P=${P/-bin/} -MY_P=${MY_P/0./0} -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 nostrip" -SLOT="0" -KEYWORDS="~x86" -IUSE="" - -LOC="/opt/dmd" -S="${WORKDIR}" - -DEPEND="sys-apps/findutils" -RDEPEND="amd64? ( app-emulation/emul-linux-x86-compat ) - x86? ( >=virtual/libstdc++-3.3 )" - -src_unpack() { - unpack ${A} - - # Remove unneccessary files - 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 - rm ${S}/dmd/lib/*.LIB ${S}/dmd/lib/*.lib ${S}/dmd/lib/*.obj -} - -src_install() { - cd ${S}/dmd - - # Cleanup line endings - 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` - - # 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 \$* -END - - # Fix permissions - fperms guo=r `find . -type f` - fperms guo=rx `find . -type d` - fperms guo=rx bin/dmd bin/dmd.bin bin/dumpobj bin/obj2asm bin/rdmd - - # 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 " " -} diff --git a/dev-lang/dmd-bin/dmd-bin-1.010.ebuild b/dev-lang/dmd-bin/dmd-bin-1.010.ebuild deleted file mode 100644 index 73b0eb0c13eb..000000000000 --- a/dev-lang/dmd-bin/dmd-bin-1.010.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# 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.010.ebuild,v 1.1 2007/05/20 20:37:11 anant 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 nostrip" -SLOT="0" -KEYWORDS="~x86" - -LOC="/opt/dmd" -S="${WORKDIR}" - -DEPEND="sys-apps/findutils" -RDEPEND="amd64? ( app-emulation/emul-linux-x86-compat ) - x86? ( >=virtual/libstdc++-3.3 )" - - -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 " " -} diff --git a/dev-lang/dmd-bin/dmd-bin-1.014.ebuild b/dev-lang/dmd-bin/dmd-bin-1.014.ebuild deleted file mode 100644 index bf36ad4da97e..000000000000 --- a/dev-lang/dmd-bin/dmd-bin-1.014.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# 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.014.ebuild,v 1.1 2007/05/20 21:23:08 anant 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 nostrip" -SLOT="0" -KEYWORDS="~x86" - -LOC="/opt/dmd" -S="${WORKDIR}" - -DEPEND="sys-apps/findutils" -RDEPEND="amd64? ( app-emulation/emul-linux-x86-compat ) - x86? ( >=virtual/libstdc++-3.3 )" - - -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 " " -} diff --git a/dev-lang/dmd-bin/dmd-bin-1.015.ebuild b/dev-lang/dmd-bin/dmd-bin-1.015.ebuild deleted file mode 100644 index 61e60ab62846..000000000000 --- a/dev-lang/dmd-bin/dmd-bin-1.015.ebuild +++ /dev/null @@ -1,110 +0,0 @@ -# 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.015.ebuild,v 1.1 2007/06/16 00:27:47 anant 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 nostrip" -SLOT="0" -KEYWORDS="~x86" - -LOC="/opt/dmd" -S="${WORKDIR}" - -DEPEND="sys-apps/findutils" -RDEPEND="amd64? ( app-emulation/emul-linux-x86-compat ) - x86? ( >=virtual/libstdc++-3.3 )" - - -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 " " -} diff --git a/dev-lang/dmd-bin/dmd-bin-1.016.ebuild b/dev-lang/dmd-bin/dmd-bin-1.016.ebuild new file mode 100644 index 000000000000..bb9e591e24f7 --- /dev/null +++ b/dev-lang/dmd-bin/dmd-bin-1.016.ebuild @@ -0,0 +1,110 @@ +# 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.1 2007/07/02 11:15:17 anant 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 nostrip" +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 " " +} diff --git a/dev-lang/dmd-bin/dmd-bin-1.018.ebuild b/dev-lang/dmd-bin/dmd-bin-1.018.ebuild new file mode 100644 index 000000000000..c7115e1c0d7a --- /dev/null +++ b/dev-lang/dmd-bin/dmd-bin-1.018.ebuild @@ -0,0 +1,110 @@ +# 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.018.ebuild,v 1.1 2007/07/02 11:15:17 anant 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 nostrip" +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 " " +} diff --git a/dev-lang/dmd-bin/files/digest-dmd-bin-1.0.0 b/dev-lang/dmd-bin/files/digest-dmd-bin-1.0.0 deleted file mode 100644 index c41e5b5acf8e..000000000000 --- a/dev-lang/dmd-bin/files/digest-dmd-bin-1.0.0 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 d237f95ed2c576438e0252b890e83075 dmd.1.00.zip 4664857 -RMD160 b7ec04dd75d11d188b6ec2945aabdcfdc84870b2 dmd.1.00.zip 4664857 -SHA256 42474b3071268d2b00fcd94ee1fa0be902f6808023efc268c52f9a28063cd823 dmd.1.00.zip 4664857 diff --git a/dev-lang/dmd-bin/files/digest-dmd-bin-1.010 b/dev-lang/dmd-bin/files/digest-dmd-bin-1.010 deleted file mode 100644 index 6075cad61d8d..000000000000 --- a/dev-lang/dmd-bin/files/digest-dmd-bin-1.010 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 b84310855be9ae1560e35ab4a5d91ed1 dmd.1.010.zip 4778189 -RMD160 2e911ca607f2fc586e4377e77bfa4a1c565d0c0d dmd.1.010.zip 4778189 -SHA256 2500a14d496e512cb4feb6dbda23596b5ceed12f884a8cca0fa8f62aace1e470 dmd.1.010.zip 4778189 diff --git a/dev-lang/dmd-bin/files/digest-dmd-bin-1.014 b/dev-lang/dmd-bin/files/digest-dmd-bin-1.014 deleted file mode 100644 index 49019970a11b..000000000000 --- a/dev-lang/dmd-bin/files/digest-dmd-bin-1.014 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 e4c912d5a25bd5dca2d6e7dd1a8b3ee1 dmd.1.014.zip 4809385 -RMD160 8c16cc82abee6cdd7208d18149bdb050e2461540 dmd.1.014.zip 4809385 -SHA256 810f60f4b934fa122d69d45b9301817157f4070ade1400ea05218d7e5e32b441 dmd.1.014.zip 4809385 diff --git a/dev-lang/dmd-bin/files/digest-dmd-bin-1.015 b/dev-lang/dmd-bin/files/digest-dmd-bin-1.015 deleted file mode 100644 index cd1342f806f5..000000000000 --- a/dev-lang/dmd-bin/files/digest-dmd-bin-1.015 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 46d433cbd14933b225a9d1c6b7cecbbb dmd.1.015.zip 4813902 -RMD160 9967fbc001c9858ce36e5674d8cad42bdd954873 dmd.1.015.zip 4813902 -SHA256 58be3c414ec7adbe96024ed79f6f5dd4630e3468f37d1ff10a7449f39a4987c3 dmd.1.015.zip 4813902 diff --git a/dev-lang/dmd-bin/files/digest-dmd-bin-1.016 b/dev-lang/dmd-bin/files/digest-dmd-bin-1.016 new file mode 100644 index 000000000000..0bbe002b6d8b --- /dev/null +++ b/dev-lang/dmd-bin/files/digest-dmd-bin-1.016 @@ -0,0 +1,3 @@ +MD5 21c351908bbde2547a2ed615a50e06a3 dmd.1.016.zip 4813864 +RMD160 b0f3f6278114da3c3100a712ab71172b550a3c06 dmd.1.016.zip 4813864 +SHA256 839c0d0288560989e16271e842c368347ff392c648b8fe5e4daa9853dfd6684d dmd.1.016.zip 4813864 diff --git a/dev-lang/dmd-bin/files/digest-dmd-bin-1.018 b/dev-lang/dmd-bin/files/digest-dmd-bin-1.018 new file mode 100644 index 000000000000..d8f66a135065 --- /dev/null +++ b/dev-lang/dmd-bin/files/digest-dmd-bin-1.018 @@ -0,0 +1,3 @@ +MD5 7953ea44dad28ad06fc7eea219407a43 dmd.1.018.zip 4824628 +RMD160 7869056b28416777978325595d33a219333cade8 dmd.1.018.zip 4824628 +SHA256 094c35e2845ed54c519052a4a0b8bb447c0421762a4a4070627d357a1c6c46be dmd.1.018.zip 4824628 -- cgit v1.2.3-65-gdbad