Commits

Providence SALUMU committed d25f602

adds ldc-9999-r1.ebuild

Comments (0)

Files changed (2)

dev-lang/ldc/Manifest

 DIST ldc-0.9.1.tar.bz2 1211664 RMD160 bad372bc692ddfc46035b528db50477de1f14289 SHA1 8596db365ed71b1cea88685aa3b11757f6f353f7 SHA256 7af88814e62a7b28a5a0ae0825a2d8ac66ff2555eec5859dd21bd625c639531b
 EBUILD ldc-0.9.1.ebuild 1792 RMD160 5fe25b8316239dae5f5141adc0e249235e53e39d SHA1 883d7a05e782c2255e5ae379655c5c7712092903 SHA256 408d951b6b38a02402de89c35a4782af03c3ff5dd59860684b02673c176be7d6
+EBUILD ldc-9999-r1.ebuild 1240 RMD160 943478b7d56cca13018c8c0e9921d9b98e42ebe8 SHA1 d45f38c1b6da6e56cad3616857dc9896203d3abe SHA256 add94ebea9086d96f78dc90abdf7b72591253ba669114cf1ce188bbc6b45bec5
 EBUILD ldc-9999.ebuild 1641 RMD160 e6ccc9d48c3d8195c205f669389073708c050912 SHA1 1918a9f82a1bf89fdad1f4983510453686ffc79b SHA256 6fcd2703e3b2164d34a4c9939039c04d3aa6ddf4b9f1b0f63a6d9ccc58d81392

dev-lang/ldc/ldc-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="LLVM D Compiler"
+HOMEPAGE="http://www.dsource.org/projects/ldc"
+
+EGIT_REPO_URI="git://github.com/ldc-developers/ldc.git"
+
+LICENSE="BSD"
+SLOT="2"
+KEYWORDS="~x86 ~amd64 ~ppc ~sparc"
+IUSE=""
+EAPI="2"
+
+RESTRICT="mirror"
+
+RDEPEND=">=sys-devel/llvm-2.6
+		|| ( dev-libs/libelf dev-libs/elfutils )"
+DEPEND=">=dev-util/cmake-2.6-r1
+		dev-libs/libconfig
+		${RDEPEND}"
+PDEPEND="dev-libs/tango[ldc]"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+	git submodule update -i
+}
+
+src_configure() {
+	cd "${S}"
+	cmake -DCMAKE_CXX_FLAGS:STRING="-DLLVM_REV=999999" -DSYSCONF_INSTALL_DIR:PATH="${D}etc" -DCMAKE_INSTALL_PREFIX="${D}usr" ./ ||
+	die "cm  ake failed"
+}
+
+src_compile() {
+	cd "${S}"
+    emake || die "make failed"
+}
+
+src_install() {
+	emake install || die "Install failed"
+# The following failed to be done automagically. You will have to run it
+# manually!
+#
+#	sed -e 's+'"${D}"'+'"${ROOT}"'+g' -i "${D}"etc/ldc2.conf
+#	sed -e 's+'"${D}"'+'"${ROOT}"'+g' -i "${D}"etc/ldc2.rebuild.conf
+#
+# Here follows the manual way:
+#	sed -e 's+/var/tmp/portage/dev-lang/ldc-9999-r1/image/+/+g' -i /etc/ldc2.*conf
+}
+