[88060] trunk/dports/lang

jeremyhu at macports.org jeremyhu at macports.org
Sat Dec 17 02:31:12 PST 2011


Revision: 88060
          http://trac.macports.org/changeset/88060
Author:   jeremyhu at macports.org
Date:     2011-12-17 02:31:08 -0800 (Sat, 17 Dec 2011)
Log Message:
-----------
dragonegg-3.0: New port to replace dragonegg-devel

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

Added: trunk/dports/lang/dragonegg-3.0/Portfile
===================================================================
--- trunk/dports/lang/dragonegg-3.0/Portfile	                        (rev 0)
+++ trunk/dports/lang/dragonegg-3.0/Portfile	2011-12-17 10:31:08 UTC (rev 88060)
@@ -0,0 +1,71 @@
+# -*- 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
+
+name                    dragonegg-devel
+set llvm_version        3.0
+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.5 or +
+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}-gcc46
+
+build.target
+
+build.env-append LLVM_CONFIG=${prefix}/bin/llvm-config-mp-${llvm_version} GCC=${prefix}/bin/gcc-mp-${gcc_version_dot}
+
+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-mp-${gcc_version_dot}
+    ln -s dragonegg-${llvm_version}-gcc-mp-${gcc_version} ${destroot}${prefix}/bin/dragonegg-${llvm_version}-cpp-mp-${gcc_version_dot}
+    ln -s dragonegg-${llvm_version}-gcc-mp-${gcc_version} ${destroot}${prefix}/bin/dragonegg-${llvm_version}-c++-mp-${gcc_version_dot}
+    ln -s dragonegg-${llvm_version}-gcc-mp-${gcc_version} ${destroot}${prefix}/bin/dragonegg-${llvm_version}-g++-mp-${gcc_version_dot}
+    ln -s dragonegg-${llvm_version}-gcc-mp-${gcc_version} ${destroot}${prefix}/bin/dragonegg-${llvm_version}-gcj-mp-${gcc_version_dot}
+    ln -s dragonegg-${llvm_version}-gcc-mp-${gcc_version} ${destroot}${prefix}/bin/dragonegg-${llvm_version}-gcov-mp-${gcc_version_dot}
+    ln -s dragonegg-${llvm_version}-gcc-mp-${gcc_version} ${destroot}${prefix}/bin/dragonegg-${llvm_version}-gfortran-mp-${gcc_version_dot}
+
+    reinplace "s:PLUGIN:${prefix}/libexec/dragonegg/llvm-${llvm_version}-gcc${gcc_version}.so:" ${destroot}${prefix}/bin/dragonegg-${llvm_version}-gcc-mp-${gcc_version_dot}
+}


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

Added: trunk/dports/lang/dragonegg-3.0/files/dragonegg-3.0-gcc46
===================================================================
--- trunk/dports/lang/dragonegg-3.0/files/dragonegg-3.0-gcc46	                        (rev 0)
+++ trunk/dports/lang/dragonegg-3.0/files/dragonegg-3.0-gcc46	2011-12-17 10:31:08 UTC (rev 88060)
@@ -0,0 +1,7 @@
+bin/dragonegg-3.0-gcc-mp-4.6
+bin/dragonegg-3.0-cpp-mp-4.6
+bin/dragonegg-3.0-c++-mp-4.6
+bin/dragonegg-3.0-g++-mp-4.6
+bin/dragonegg-3.0-gcj-mp-4.6
+bin/dragonegg-3.0-gcov-mp-4.6
+bin/dragonegg-3.0-gfortran-mp-4.6

Added: trunk/dports/lang/dragonegg-3.0/files/dragonegg-gcc
===================================================================
--- trunk/dports/lang/dragonegg-3.0/files/dragonegg-gcc	                        (rev 0)
+++ trunk/dports/lang/dragonegg-3.0/files/dragonegg-gcc	2011-12-17 10:31:08 UTC (rev 88060)
@@ -0,0 +1,3 @@
+#!/bin/bash
+
+exec ${0/dragonegg-3.0-/} -fplugin=PLUGIN "${@}"


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

Added: trunk/dports/lang/dragonegg-3.0/files/revision.patch
===================================================================
--- trunk/dports/lang/dragonegg-3.0/files/revision.patch	                        (rev 0)
+++ trunk/dports/lang/dragonegg-3.0/files/revision.patch	2011-12-17 10:31:08 UTC (rev 88060)
@@ -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.0
+ 
+ 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/6ba8b79c/attachment-0001.html>


More information about the macports-changes mailing list