summaryrefslogtreecommitdiff
path: root/community/ldc
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-12-31 01:32:52 -0800
committerroot <root@rshg054.dnsready.net>2012-12-31 01:32:52 -0800
commitf503701b04bfc3fbec13acce2abfa9e8df56d2c0 (patch)
tree33bd1091aa34d345417508caf21775abea68437c /community/ldc
parent0af0753417e7e506da08650bda80804d0b50e660 (diff)
Mon Dec 31 01:32:43 PST 2012
Diffstat (limited to 'community/ldc')
-rw-r--r--community/ldc/PKGBUILD15
-rw-r--r--community/ldc/fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch25
2 files changed, 34 insertions, 6 deletions
diff --git a/community/ldc/PKGBUILD b/community/ldc/PKGBUILD
index 7418a0219..4db3ef56e 100644
--- a/community/ldc/PKGBUILD
+++ b/community/ldc/PKGBUILD
@@ -1,7 +1,7 @@
-# $Id: PKGBUILD 81323 2012-12-17 23:11:03Z svenstaro $
+# $Id: PKGBUILD 81801 2012-12-30 15:21:03Z foutrelis $
# Maintainer: Sven-Hendrik Haase <sh@lutzhaase.com>
pkgname=ldc
-pkgver=20121218
+pkgver=20121225
pkgrel=1
pkgdesc="A D Compiler based on the LLVM Compiler Infrastructure including D runtime and libphobos2"
arch=('i686' 'x86_64')
@@ -10,8 +10,8 @@ license=('BSD')
depends=('llvm' 'libconfig')
makedepends=('git' 'cmake')
backup=('etc/ldc2.conf')
-source=()
-md5sums=()
+source=(fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch)
+md5sums=('0dacd8e4b8f88030c107dbb2a35bcc42')
_gitroot=git://github.com/ldc-developers/ldc.git
_gitname=ldc
@@ -37,7 +37,10 @@ build() {
rm -rf "$srcdir/$_gitname-build"
git clone --recursive "$srcdir/$_gitname" "$srcdir/$_gitname-build"
cd "$srcdir/$_gitname-build"
-
+
+ # llvm/Support/IRBuilder.h was relocated in LLVM 3.2
+ patch -Np1 -i "$srcdir/fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch"
+
mkdir build && cd build
cmake \
-DCMAKE_INSTALL_PREFIX=/usr \
@@ -49,7 +52,7 @@ build() {
package() {
cd "$srcdir/$_gitname-build"
-
+
cd build
make DESTDIR=$pkgdir install
cd ..
diff --git a/community/ldc/fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch b/community/ldc/fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch
new file mode 100644
index 000000000..f5977e4a4
--- /dev/null
+++ b/community/ldc/fix-llvm-IRBuilder.h-include-when-using-LLVM-3.2.patch
@@ -0,0 +1,25 @@
+From 984207e348fe9ef1444cbec897cb8c429859a9c0 Mon Sep 17 00:00:00 2001
+From: Evangelos Foutras <evangelos@foutrelis.com>
+Date: Tue, 25 Dec 2012 04:55:30 +0200
+Subject: [PATCH] Fix llvm/IRBuilder.h include when using LLVM 3.2
+
+---
+ gen/passes/GarbageCollect2Stack.cpp | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/gen/passes/GarbageCollect2Stack.cpp b/gen/passes/GarbageCollect2Stack.cpp
+index f20bdd4..9927615 100644
+--- a/gen/passes/GarbageCollect2Stack.cpp
++++ b/gen/passes/GarbageCollect2Stack.cpp
+@@ -27,7 +27,7 @@
+ #include "llvm/Intrinsics.h"
+ #include "llvm/Support/CallSite.h"
+ #include "llvm/Support/CommandLine.h"
+-#if LDC_LLVM_VER >= 303
++#if LDC_LLVM_VER >= 302
+ #include "llvm/IRBuilder.h"
+ #else
+ #include "llvm/Support/IRBuilder.h"
+--
+1.8.0.2
+