Commits

Providence SALUMU committed a2ec97d

dev-lang/ldc: removed ldc-9999-r1.ebuild
dev-lang/ldc2: fixed ldc2-9999.ebuild

Comments (0)

Files changed (4)

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 1242 RMD160 c9e33d09a13624190d25b87247851803a816f440 SHA1 7c819c37807feb9226324c1f9fe0cfe2239bc8f8 SHA256 7fa9ac02ac8faadad77466dfa4edcb5f96fbd6f997fbf0db075c3f3dd23b891d
 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
-}
-

dev-lang/ldc2/Manifest

-EBUILD ldc2-9999.ebuild 1781 RMD160 1e51323329d1853d80c24c85d3efc6d8bf6aaea4 SHA1 065e13c7b95c3ed4cfc21c2103d0a3425cea4e60 SHA256 83a429d4218be048de4471aafd3600b9815888d3e0293026b7d5273a4ea46ad6
+EBUILD ldc2-9999.ebuild 1210 RMD160 e4b267b3764bc558485749d02d995723f2f324c4 SHA1 2634e35ecb39f3f12333c98cac299042a08f8c94 SHA256 f66778bfa2849838e4dd9149b3b7001f19cf8be92bf0ffbdf587fc19fa9413a8

dev-lang/ldc2/ldc2-9999.ebuild

 # Distributed under the terms of the GNU General Public License v2
 # $Header: $
 
-inherit cmake-utils mercurial
+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="0"
+SLOT="2"
 KEYWORDS="~x86 ~amd64 ~ppc ~sparc"
 IUSE=""
+EAPI="2"
+
+RESTRICT="mirror"
 
-DEPEND=">=dev-util/cmake-2.6"
-RDEPEND="=sys-devel/llvm-2.6-r79757"
+RDEPEND=">=sys-devel/llvm-2.6
+		|| ( dev-libs/libelf dev-libs/elfutils )"
+DEPEND=">=dev-util/cmake-2.6-r1
+		dev-libs/libconfig
+		${RDEPEND}"
 
-src_unpack() {
-	mercurial_fetch http://hg.octarineparrot.com/druntime-ldc/ druntime
+S="${WORKDIR}/${PN}"
 
-	mercurial_fetch http://hg.dsource.org/projects/ldc ldc2
+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 "${WORKDIR}/ldc2"
-	cmake -DD_VERSION=2 -DRUNTIME_DIR:STRING="../druntime" -DCMAKE_CXX_FLAGS:STRING="-DLLVM_REV=$LLVM_REV" ./ || die "cmake failed"
-	emake || die "make failed"
-	
-	export PATH=`pwd`/bin:$PATH
-	cd "${WORKDIR}/druntime/src"
-	./build-ldc.sh
+	cd "${S}"
+    emake || die "make failed"
 }
 
 src_install() {
-	cd "${WORKDIR}/ldc2"
-	# Compiler binary
-	dobin bin/ldc2
-	dobin bin/ldmd2
-
-	# Generate config file
-	cat > ldc.conf << HERE
-// See http://www.hyperrealm.com/libconfig/ for syntax details.
-
-// Special macros:                                                                                                        
-// %%ldcbinarydir%%
-//  - is replaced with the path to the directory holding the ldc executable
-
-// The default group is required
-default:
-{
-    // 'switches' holds array of string that are appends to the command line
-    // arguments before they are parsed.
-    switches = [ 
-        "-I${ROOT}usr/include/druntime-ldc",
-        "-L-L${ROOT}lib",
-        "-defaultlib=druntime-ldc",
-        "-debuglib=druntime-ldc"
-    ];  
-};
-HERE
-	insinto /etc
-	doins bin/ldc2.conf
-
-	cd "${WORKDIR}/druntime"
-	# Runtime
-	dolib.a src/libdruntime-ldc.a
-
-	# Runtime sources
-	dodir /usr/include/druntime-ldc
-	cd "${WORKDIR}/druntime"
-	cp -R "import/*" "${D}/usr/include/druntime-ldc"
+	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
 }
+