[88074] trunk/dports/lang

jeremyhu at macports.org jeremyhu at macports.org
Sat Dec 17 11:49:23 PST 2011


Revision: 88074
          http://trac.macports.org/changeset/88074
Author:   jeremyhu at macports.org
Date:     2011-12-17 11:49:23 -0800 (Sat, 17 Dec 2011)
Log Message:
-----------
dragonegg-3.1: New port for llvm-3.1 based dragonegg

Added Paths:
-----------
    trunk/dports/lang/dragonegg-3.1/
    trunk/dports/lang/dragonegg-3.1/Portfile
    trunk/dports/lang/dragonegg-3.1/files/
    trunk/dports/lang/dragonegg-3.1/files/dragonegg-3.1-gcc46
    trunk/dports/lang/dragonegg-3.1/files/dragonegg-gcc
    trunk/dports/lang/dragonegg-3.1/files/revision.patch

Added: trunk/dports/lang/dragonegg-3.1/Portfile
===================================================================
--- trunk/dports/lang/dragonegg-3.1/Portfile	                        (rev 0)
+++ trunk/dports/lang/dragonegg-3.1/Portfile	2011-12-17 19:49:23 UTC (rev 88074)
@@ -0,0 +1,77 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem              1.0
+PortGroup select        1.0
+
+set llvm_version        3.1
+name                    dragonegg-${llvm_version}
+set gcc_version         46
+set gcc_version_dot     4.6
+categories              lang
+platforms               darwin
+maintainers             jeremyhu openmaintainer
+license                 GPL-2
+
+description             Dragonegg is a LLVM plug-in for GCC 4.6
+long_description        Dragonegg replaces GCC optimizers and code generators \
+                        by the LLVM optimizing infrastructure. It supersedes \
+                        llvm-gcc.
+
+homepage                http://dragonegg.llvm.org/
+
+depends_lib             port:llvm-${llvm_version} port:gcc${gcc_version}
+depends_run             port:gcc_select
+
+fetch.type              svn
+svn.revision            146339
+version                 ${llvm_version}-r${svn.revision}
+worksrcdir              trunk
+svn.url                 http://llvm.org/svn/llvm-project/dragonegg/trunk
+
+#version                 ${llvm_version}
+#epoch                   1
+#master_sites            http://llvm.org/releases/${version}/
+#extract.suffix          .tar.gz
+#distfiles               dragonegg-${version}${extract.suffix}
+#worksrcdir              dragonegg-${version}.src
+#checksums           sha1    9be8f055df814e56ea3585156da8c7e457f2cd7b \
+#                    rmd160  93aa8a463b6b5e1fb9cc1ee0a7c4d310a78ea64f \
+#                    sha256  72df1fd2e901b254ab8d1b5e7b93c7104751a613aca531f1483f9a637a5f6827
+
+pre-fetch {
+    ui_msg "Please remember to keep dragonegg and llvm in phase by updating llvm-${llvm_version} first."
+}
+
+use_configure no
+
+patchfiles revision.patch
+patch.pre_args -p1
+
+select.group    gcc
+select.file     ${filespath}/dragonegg-${llvm_version}-gcc${gcc_version}
+
+build.target
+
+build.env-append \
+    LLVM_CONFIG=${prefix}/bin/llvm-config-mp-${llvm_version} \
+    GCC=${prefix}/bin/gcc-mp-${gcc_version_dot} \
+    CC="${configure.cc} ${configure.cppflags}" \
+    CXX="${configure.cxx} ${configure.cppflags}"
+
+destroot {
+    xinstall -m 755 -d ${destroot}${prefix}/libexec/dragonegg
+    xinstall -m 755 ${worksrcpath}/dragonegg.so ${destroot}${prefix}/libexec/dragonegg/llvm-${llvm_version}-gcc${gcc_version}.so
+
+    xinstall -m 755 ${filespath}/dragonegg-gcc ${destroot}${prefix}/bin/dragonegg-${llvm_version}-gcc
+    ln -s dragonegg-${llvm_version}-gcc ${destroot}${prefix}/bin/dragonegg-${llvm_version}-cpp
+    ln -s dragonegg-${llvm_version}-gcc ${destroot}${prefix}/bin/dragonegg-${llvm_version}-c++
+    ln -s dragonegg-${llvm_version}-gcc ${destroot}${prefix}/bin/dragonegg-${llvm_version}-g++
+    ln -s dragonegg-${llvm_version}-gcc ${destroot}${prefix}/bin/dragonegg-${llvm_version}-gcj
+    ln -s dragonegg-${llvm_version}-gcc ${destroot}${prefix}/bin/dragonegg-${llvm_version}-gcov
+    ln -s dragonegg-${llvm_version}-gcc ${destroot}${prefix}/bin/dragonegg-${llvm_version}-gfortran
+
+    reinplace "s:PLUGIN:${prefix}/libexec/dragonegg/llvm-${llvm_version}-gcc${gcc_version}.so:" ${destroot}${prefix}/bin/dragonegg-${llvm_version}-gcc
+    reinplace "s:LLVM_VERSION:${llvm_version}:" ${destroot}${prefix}/bin/dragonegg-${llvm_version}-gcc
+    reinplace "s:GCC_VERSION:${gcc_version_dot}:" ${destroot}${prefix}/bin/dragonegg-${llvm_version}-gcc
+}


Property changes on: trunk/dports/lang/dragonegg-3.1/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/lang/dragonegg-3.1/files/dragonegg-3.1-gcc46
===================================================================
--- trunk/dports/lang/dragonegg-3.1/files/dragonegg-3.1-gcc46	                        (rev 0)
+++ trunk/dports/lang/dragonegg-3.1/files/dragonegg-3.1-gcc46	2011-12-17 19:49:23 UTC (rev 88074)
@@ -0,0 +1,7 @@
+bin/dragonegg-3.1-gcc
+bin/dragonegg-3.1-cpp
+bin/dragonegg-3.1-c++
+bin/dragonegg-3.1-g++
+bin/dragonegg-3.1-gcj
+bin/dragonegg-3.1-gcov
+bin/dragonegg-3.1-gfortran

Added: trunk/dports/lang/dragonegg-3.1/files/dragonegg-gcc
===================================================================
--- trunk/dports/lang/dragonegg-3.1/files/dragonegg-gcc	                        (rev 0)
+++ trunk/dports/lang/dragonegg-3.1/files/dragonegg-gcc	2011-12-17 19:49:23 UTC (rev 88074)
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+CMD=${0/dragonegg-LLVM_VERSION-/}
+
+exec ${CMD}-mp-GCC_VERSION -fplugin=PLUGIN "${@}"


Property changes on: trunk/dports/lang/dragonegg-3.1/files/dragonegg-gcc
___________________________________________________________________
Added: svn:executable
   + *

Added: trunk/dports/lang/dragonegg-3.1/files/revision.patch
===================================================================
--- trunk/dports/lang/dragonegg-3.1/files/revision.patch	                        (rev 0)
+++ trunk/dports/lang/dragonegg-3.1/files/revision.patch	2011-12-17 19:49:23 UTC (rev 88074)
@@ -0,0 +1,12 @@
+diff -Naurp dragonegg-3.0.src.orig/Makefile dragonegg-3.0.src/Makefile
+--- dragonegg-3.0.src.orig/Makefile	2011-10-20 13:29:47.000000000 -0700
++++ dragonegg-3.0.src/Makefile	2011-12-17 01:16:59.000000000 -0800
+@@ -38,7 +38,7 @@ GCC_MICRO=$(word 3, $(subst ., ,$(GCC_VE
+ TARGET_TRIPLE:=$(shell $(GCC) -dumpmachine)
+ 
+ # NOTE: replace with an informative string when doing a release.
+-REVISION:=$(shell svnversion -n $(TOP_DIR))
++REVISION:=3.1
+ 
+ PLUGIN=dragonegg.so
+ PLUGIN_OBJECTS=Backend.o Cache.o Constants.o Convert.o Debug.o DefaultABI.o \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111217/ba59a336/attachment.html>


More information about the macports-changes mailing list