[99796] trunk/dports/lang

jeremyhu at macports.org jeremyhu at macports.org
Sat Nov 17 16:12:33 PST 2012


Revision: 99796
          https://trac.macports.org/changeset/99796
Author:   jeremyhu at macports.org
Date:     2012-11-17 16:12:32 -0800 (Sat, 17 Nov 2012)
Log Message:
-----------
Add dragonegg-3.3

Added Paths:
-----------
    trunk/dports/lang/dragonegg-3.3/
    trunk/dports/lang/dragonegg-3.3/Portfile
    trunk/dports/lang/dragonegg-3.3/files/
    trunk/dports/lang/dragonegg-3.3/files/dragonegg-3.3-gcc47
    trunk/dports/lang/dragonegg-3.3/files/dragonegg-gcc

Added: trunk/dports/lang/dragonegg-3.3/Portfile
===================================================================
--- trunk/dports/lang/dragonegg-3.3/Portfile	                        (rev 0)
+++ trunk/dports/lang/dragonegg-3.3/Portfile	2012-11-18 00:12:32 UTC (rev 99796)
@@ -0,0 +1,96 @@
+# -*- 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.3
+name                    dragonegg-${llvm_version}
+set gcc_version         47
+set gcc_version_dot     4.7
+dist_subdir             llvm
+categories              lang
+platforms               darwin
+maintainers             jeremyhu
+license                 GPL-2
+
+description             Dragonegg is a LLVM plug-in for GCC ${gcc_version_dot}
+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
+
+# gcc needs to match our arch, not the other way around
+# We build +universal just fine in order to support whatever arch gcc is
+depends_skip_archcheck-append gcc${gcc_version}
+
+fetch.type              svn
+svn.revision            168259
+version                 ${llvm_version}-r${svn.revision}
+worksrcdir              trunk
+svn.url                 http://llvm.org/svn/llvm-project/dragonegg/trunk
+#worksrcdir              release_33
+#svn.url                 http://llvm.org/svn/llvm-project/dragonegg/branches/release_33
+
+#version                 ${llvm_version}
+#epoch                   1
+#master_sites            http://llvm.org/releases/${version}/
+#extract.suffix          .tar.gz
+#distname                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
+
+select.group    gcc
+select.file     ${filespath}/dragonegg-${llvm_version}-gcc${gcc_version}
+
+build.target
+
+# g++-4.0 fails to build some of the newer C++ for ppc
+# Intel looks ok, but I prefer using gcc-4.2 for consistency
+if {${configure.compiler} == "gcc-4.0"} {
+    configure.compiler gcc-4.2
+    if {![file exists ${configure.cc}]} {
+        depends_build-append port:apple-gcc42
+        configure.compiler apple-gcc-4.2
+    }
+}
+
+variant universal {
+    post-patch {
+        reinplace "/-MD -MP/d" ${worksrcpath}/Makefile
+    }
+}
+
+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} [get_canonical_archflags cc]" \
+    CXX="${configure.cxx} ${configure.cppflags} [get_canonical_archflags cxx]"
+
+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.3/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/lang/dragonegg-3.3/files/dragonegg-3.3-gcc47
===================================================================
--- trunk/dports/lang/dragonegg-3.3/files/dragonegg-3.3-gcc47	                        (rev 0)
+++ trunk/dports/lang/dragonegg-3.3/files/dragonegg-3.3-gcc47	2012-11-18 00:12:32 UTC (rev 99796)
@@ -0,0 +1,7 @@
+bin/dragonegg-3.3-gcc
+bin/dragonegg-3.3-cpp
+bin/dragonegg-3.3-c++
+bin/dragonegg-3.3-g++
+bin/dragonegg-3.3-gcj
+bin/dragonegg-3.3-gcov
+bin/dragonegg-3.3-gfortran

Added: trunk/dports/lang/dragonegg-3.3/files/dragonegg-gcc
===================================================================
--- trunk/dports/lang/dragonegg-3.3/files/dragonegg-gcc	                        (rev 0)
+++ trunk/dports/lang/dragonegg-3.3/files/dragonegg-gcc	2012-11-18 00:12:32 UTC (rev 99796)
@@ -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.3/files/dragonegg-gcc
___________________________________________________________________
Added: svn:executable
   + *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121117/0267fb80/attachment-0001.html>


More information about the macports-changes mailing list