[Lunar-commits] <moonbase> clang: add the clang frontend for llvm.

Florin Braescu florin at lunar-linux.org
Fri Apr 30 10:44:10 CEST 2010


commit 6bef0a298b28678e0ebe2d2a611fa4a9864f0456
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Fri Apr 30 11:44:10 2010 +0300

    clang: add the clang frontend for llvm.
---
 compilers/clang/BUILD     |   15 +++++++++++++++
 compilers/clang/CONFLICTS |    1 +
 compilers/clang/DETAILS   |   17 +++++++++++++++++
 compilers/clang/PRE_BUILD |    5 +++++
 compilers/llvm/CONFLICTS  |    1 +
 5 files changed, 39 insertions(+), 0 deletions(-)

diff --git a/compilers/clang/BUILD b/compilers/clang/BUILD
new file mode 100644
index 0000000..be92242
--- /dev/null
+++ b/compilers/clang/BUILD
@@ -0,0 +1,15 @@
+(
+
+  OPTS="$OPTS --enable-optimized --enable-assertions --enable-pic --enable-targets=host-only"
+
+  default_build   &&
+
+  prepare_install &&
+
+  echo "export LLVM_DIR=\"${MODULE_PREFIX}\"" >> $SOURCE_DIRECTORY/llvm.rc  &&
+  echo export PATH=\"'${PATH}':${MODULE_PREFIX}/bin\" >> $SOURCE_DIRECTORY/llvm.rc  &&
+  echo export PKG_CONFIG_PATH=\"'${PKG_CONFIG_PATH}':${MODULE_PREFIX}/lib/pkgconfig\" >> $SOURCE_DIRECTORY/llvm.rc &&
+
+  install -m644 llvm.rc /etc/profile.d/
+
+) > $C_FIFO 2>&1
diff --git a/compilers/clang/CONFLICTS b/compilers/clang/CONFLICTS
new file mode 100644
index 0000000..5981fb7
--- /dev/null
+++ b/compilers/clang/CONFLICTS
@@ -0,0 +1 @@
+conflicts  llvm
diff --git a/compilers/clang/DETAILS b/compilers/clang/DETAILS
new file mode 100644
index 0000000..cd776bc
--- /dev/null
+++ b/compilers/clang/DETAILS
@@ -0,0 +1,17 @@
+          MODULE=clang
+         VERSION=2.7
+          SOURCE=$MODULE-$VERSION.tgz
+         SOURCE2=llvm-$VERSION.tgz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/llvm-$VERSION
+      SOURCE_URL=http://www.llvm.org/releases/$VERSION
+     SOURCE2_URL=http://www.llvm.org/releases/$VERSION
+      SOURCE_VFY=sha1:4d8326bfe2308a7355a5e4ca2eb172bffd761e1e
+     SOURCE2_VFY=sha1:059fc21b0ec1b649c4a3dec81756e5f92aa131a2
+   MODULE_PREFIX=${LLVM_DIR:-/opt/lunar/llvm}
+        WEB_SITE=http://clang.llvm.org
+         ENTERED=20100430
+         UPDATED=20100430
+           SHORT=""
+
+cat << EOF
+EOF
diff --git a/compilers/clang/PRE_BUILD b/compilers/clang/PRE_BUILD
new file mode 100644
index 0000000..56cfeb7
--- /dev/null
+++ b/compilers/clang/PRE_BUILD
@@ -0,0 +1,5 @@
+unpack $SOURCE2  &&
+cd $SOURCE_DIRECTORY/tools &&
+unpack $SOURCE  &&
+mv -f $MODULE-$VERSION $MODULE &&
+cd $SOURCE_DIRECTORY
diff --git a/compilers/llvm/CONFLICTS b/compilers/llvm/CONFLICTS
new file mode 100644
index 0000000..267c0dc
--- /dev/null
+++ b/compilers/llvm/CONFLICTS
@@ -0,0 +1 @@
+conflicts  clang


More information about the Lunar-commits mailing list