[Lunar-commits] <moonbase> llvm: add clang as a build option. it can be selected at lin -r command.

Florin Braescu florin at lunar-linux.org
Sat May 1 07:50:42 CEST 2010


commit 1f5d64e245562fe0e1ebefeaa8403ad46fe67545
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Sat May 1 08:50:42 2010 +0300

    llvm: add clang as a build option. it can be selected at lin -r command.
---
 compilers/llvm/CONFIGURE |    8 ++++++++
 compilers/llvm/CONFLICTS |    1 -
 compilers/llvm/DETAILS   |   22 +++++++++++++++-------
 compilers/llvm/PRE_BUILD |    8 ++++++++
 4 files changed, 31 insertions(+), 8 deletions(-)

diff --git a/compilers/llvm/CONFIGURE b/compilers/llvm/CONFIGURE
new file mode 100644
index 0000000..788c0c4
--- /dev/null
+++ b/compilers/llvm/CONFIGURE
@@ -0,0 +1,8 @@
+# only lin -r gcc will trigger the language selector!
+
+USE_CLANG="n"
+if [ -n "$RECONFIGURE" ] ; then
+
+  mquery USE_CLANG "Do you want to select build the clang front-end ? " n
+
+fi
diff --git a/compilers/llvm/CONFLICTS b/compilers/llvm/CONFLICTS
deleted file mode 100644
index 267c0dc..0000000
--- a/compilers/llvm/CONFLICTS
+++ /dev/null
@@ -1 +0,0 @@
-conflicts  clang
diff --git a/compilers/llvm/DETAILS b/compilers/llvm/DETAILS
index 63cb329..349bb3e 100644
--- a/compilers/llvm/DETAILS
+++ b/compilers/llvm/DETAILS
@@ -1,20 +1,28 @@
           MODULE=llvm
          VERSION=2.7
           SOURCE=$MODULE-$VERSION.tgz
+         SOURCE2=clang-$VERSION.tgz
       SOURCE_URL=http://www.llvm.org/releases/$VERSION
+     SOURCE2_URL=http://www.llvm.org/releases/$VERSION
       SOURCE_VFY=sha1:059fc21b0ec1b649c4a3dec81756e5f92aa131a2
+     SOURCE2_VFY=sha1:4d8326bfe2308a7355a5e4ca2eb172bffd761e1e
    MODULE_PREFIX=${LLVM_DIR:-/opt/lunar/llvm}
         WEB_SITE=http://www.llvm.org
          ENTERED=20090128
-         UPDATED=20091026
+         UPDATED=20100501
            SHORT="Low Level Virtual Machine"
 
 PSAFE=no
 cat << EOF
-LLVM is a robust system, particularly well suited for developing new mid-level
-language-independent analyses and optimizations of all sorts, including those
-that require extensive interprocedural analysis. LLVM is also a great target
-for front-end development for conventional or research programming languages,
-including those which require compile-time, link-time, or run-time optimization
-for effective implementation, proper tail calls or garbage collection.
+LLVM is a robust system, particularly well suited for developing new 
+mid-level language-independent analyses and optimizations of all sorts, 
+including those that require extensive interprocedural analysis. LLVM is 
+also a great target for front-end development for conventional or research 
+programming languages, including those which require compile-time, 
+link-time, or run-time optimization for effective implementation, proper 
+tail calls or garbage collection.
+
+Clang is a compiler front-end for the C family of languages (C, C++, 
+Objective-C, and Objective-C++) which can be built as a part of the 
+LLVM compiler intrastructure project.
 EOF
diff --git a/compilers/llvm/PRE_BUILD b/compilers/llvm/PRE_BUILD
new file mode 100644
index 0000000..9b672b6
--- /dev/null
+++ b/compilers/llvm/PRE_BUILD
@@ -0,0 +1,8 @@
+default_pre_build  &&
+
+if [[ "$USE_CLANG" = "y" ]]; then
+  cd $SOURCE_DIRECTORY/tools  &&
+  unpack $SOURCE2  &&
+  mv -f clang-$VERSION clang  &&
+  cd $SOURCE_DIRECTORY
+fi


More information about the Lunar-commits mailing list