Commits

Providence SALUMU committed af603bf

adds d 9999-r1 versions

  • Participants
  • Parent commits fd900b6

Comments (0)

Files changed (5)

File dev-lang/dmd/Manifest

 EBUILD dmd-2.044.ebuild 1176 RMD160 6181dced58a971bc1ec9bb47b69044738e5ced5c SHA1 346c3d66a96b21a916ccb36a8fcf61b6587ccb6e SHA256 19c5f759b14b34c4d245d39449d40540a76cf9b8d7bca7015620c33270cc3d13
 EBUILD dmd-2.045.ebuild 1176 RMD160 6181dced58a971bc1ec9bb47b69044738e5ced5c SHA1 346c3d66a96b21a916ccb36a8fcf61b6587ccb6e SHA256 19c5f759b14b34c4d245d39449d40540a76cf9b8d7bca7015620c33270cc3d13
 EBUILD dmd-2.046.ebuild 1176 RMD160 6181dced58a971bc1ec9bb47b69044738e5ced5c SHA1 346c3d66a96b21a916ccb36a8fcf61b6587ccb6e SHA256 19c5f759b14b34c4d245d39449d40540a76cf9b8d7bca7015620c33270cc3d13
-EBUILD dmd-9999.ebuild 1168 RMD160 9d89aa233596c800e057a66a4f21d5446b81c8d2 SHA1 3e9d2ea8af5da4f3a12f3fc79d2870035047c091 SHA256 5b91ba79f2a1a8c33d95ee9fb9038e716364b7906f50b5070516ab8b86da368a
+EBUILD dmd-9999-r1.ebuild 1178 RMD160 85f72dc2a28bdab65b12562ff6262af7411f0916 SHA1 13bc9b5b96d5ea0f17c766402824d000dfab9da4 SHA256 d64e07345a1395a6445f970be019ea8cf678e53122e1753ae8487914e2c5fb1e
+EBUILD dmd-9999.ebuild 1176 RMD160 a7ac1a441ff3c64a07648156715cb0c2316d3b9a SHA1 a1e4d47aec58229ea54d2ad13d8814037c94d11e SHA256 8d68fdc87bb5fdde47caba6c32ced41c73c8ab47189c52694eb7e5182f290021

File dev-lang/dmd/dmd-9999-r1.ebuild

+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit git-2 eutils
+
+DESCRIPTION="Reference compiler for the D programming language"
+
+HOMEPAGE="http://www.digitalmars.com/d/"
+EGIT_REPO_URI="git://github.com/D-Programming-Language/dmd.git"
+
+LICENSE="DMD"
+SLOT="2"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+EAPI="2"
+
+RESTRICT="mirror"
+
+DEPEND="sys-apps/findutils
+	!dev-lang/dmd-bin:2
+	app-arch/unzip"
+RDEPEND="dev-util/dmd-common
+	amd64? ( app-emulation/emul-linux-x86-compat )"
+PDEPEND="app-admin/eselect-dmd
+	=dev-libs/phobos-${PV}"
+
+S="${WORKDIR}/${PN}2"
+
+src_compile() {
+# DMD
+	cd "${S}/src"
+#	ln -s . mars
+	make -j4 -f posix.mak || die "make failed"
+# druntime
+	git clone git://github.com/D-Programming-Language/druntime.git
+	cd "druntime/"
+	(
+		export PATH="${S}/src:${PATH}"
+		export HOME="$(pwd)"
+		make -j4 -f posix.mak
+	)
+}
+
+src_install() {
+# Compiler
+	newbin "${S}/src/dmd" dmd2.bin || die "Install failed"
+# druntime
+	dolib.a "${S}/src/druntime/lib/libdruntime.a" || die "Install failed"
+	dodir /usr/include/druntime
+	mv "${S}/src/druntime/import"/* "${D}/usr/include/druntime/" || die "Install failed"
+}

File dev-lang/dmd/dmd-9999.ebuild

 # DMD
 	cd "${S}/src"
 	ln -s . mars
-	make -f linux.mak || die "make failed"
+	make -j4 -f linux.mak || die "make failed"
 # druntime
 	svn co http://svn.dsource.org/projects/druntime/trunk druntime
 	cd "druntime/"
 	(
 		export PATH="${S}/src:${PATH}"
 		export HOME="$(pwd)"
-		make -f posix.mak
+		make -j4 -f posix.mak
 	)
 }
 

File dev-libs/phobos/Manifest

 EBUILD phobos-2.044.ebuild 1587 RMD160 b55fb9b2d1cff600573f60b9212ab43eeb76fa01 SHA1 ee06c7454af7fb9cfd4214bfb2fec2d81c7ada3a SHA256 ebaa0d67ffc10804f0cbe36a61eef50f8b128f49983de5f4d3e15c49d5d16110
 EBUILD phobos-2.045.ebuild 1587 RMD160 b55fb9b2d1cff600573f60b9212ab43eeb76fa01 SHA1 ee06c7454af7fb9cfd4214bfb2fec2d81c7ada3a SHA256 ebaa0d67ffc10804f0cbe36a61eef50f8b128f49983de5f4d3e15c49d5d16110
 EBUILD phobos-2.046.ebuild 1587 RMD160 b55fb9b2d1cff600573f60b9212ab43eeb76fa01 SHA1 ee06c7454af7fb9cfd4214bfb2fec2d81c7ada3a SHA256 ebaa0d67ffc10804f0cbe36a61eef50f8b128f49983de5f4d3e15c49d5d16110
+EBUILD phobos-9999-r1.ebuild 1901 RMD160 e1b389ab20e84ff7c7fc87e4dd9272039f9fb79b SHA1 b3cbaba445e60d35df71ac66f2920bf85f82d3af SHA256 4ca45ef35689204b084a52bddc4be687cde688ac3fb04680a1edbdf244f928ab
 EBUILD phobos-9999.ebuild 1677 RMD160 ec1aa4e39c1b3287561937e006ee44c17e2ed413 SHA1 5a7fb737e6dd8aad8e05f336becf6cd0aab830d7 SHA256 9c4e0286db9200276e7749d55e69166a27c65c54be4ddd651eb2c30809212e9b

File dev-libs/phobos/phobos-9999-r1.ebuild

+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils
+
+EAPI="2"
+
+DESCRIPTION="The Phobos standard library for DMD"
+HOMEPAGE="http://www.digitalmars.com/d/"
+
+LICENSE="DMD"
+RESTRICT="mirror strip binchecks"
+SLOT="2"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+EAPI="2"
+
+DEPEND="=dev-lang/dmd-${PVR}"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/dmd2"
+
+src_compile() {
+# DMD
+	git clone git://github.com/D-Programming-Language/dmd.git dmd2
+	# svn co http://svn.dsource.org/projects/dmd/trunk dmd2
+	cd "${S}/src"
+#	ln -s . mars
+	make -j4 -f posix.mak || die "DMD compilation failed"
+# druntime
+#	svn co http://svn.dsource.org/projects/druntime/trunk druntime
+	git clone git://github.com/D-Programming-Language/druntime.git druntime
+	cd "druntime/"
+	(
+		export PATH="${S}/src:${PATH}"
+		export HOME="$(pwd)"
+		make -j4 -f posix.mak
+		cp ./lib/libdruntime.a ..
+	)
+# Phobos
+	#mkdir -p "${WORKDIR}/dmd2/src/lib"
+	#cd "${S}/src/phobos"
+	cd "${S}/src"
+#	svn co http://svn.dsource.org/projects/phobos/trunk/phobos phobos
+	git clone git://github.com/D-Programming-Language/phobos.git phobos
+	cd "phobos"
+	echo '#!/bin/sh' > dmd
+	echo '/usr/bin/dmd2.bin -I/usr/include/druntime $*' >> dmd
+	chmod u+x dmd
+	export PATH=.:$PATH
+	pwd
+	make -j4 -f posix.mak || die "Phobos compilation failed"
+# clean up
+	find . -name "*.asm" -print0 | xargs -0 rm -v
+	find . -name "*.mak" -print0 | xargs -0 rm -v
+	find . -name "*.txt" -print0 | xargs -0 rm -v
+	find . -name "*.ddoc" -print0 | xargs -0 rm -v
+	find . -name "*.c" -print0 | xargs -0 rm -v
+}
+
+src_install() {
+# lib
+	dolib.a "${S}/src/phobos/generated/linux/release/32/libphobos2.a" || die "Install failed"
+
+# includes
+	rm -rf "${S}/src/phobos/generated"
+	rm -rf "${S}/src/phobos/dmd"
+	dodir /usr/include/phobos2
+	mv "${S}/src/phobos"/* "${D}/usr/include/phobos2/"
+
+# Config
+	dobin "${FILESDIR}/dmd.dmd2-phobos"
+}