[102901] trunk/dports/sysutils/gcc_select/Portfile
jeremyhu at macports.org
jeremyhu at macports.org
Sun Feb 10 15:07:36 PST 2013
Revision: 102901
https://trac.macports.org/changeset/102901
Author: jeremyhu at macports.org
Date: 2013-02-10 15:07:36 -0800 (Sun, 10 Feb 2013)
Log Message:
-----------
gcc_select: Install DT options based on what is available rather than os version
Modified Paths:
--------------
trunk/dports/sysutils/gcc_select/Portfile
Modified: trunk/dports/sysutils/gcc_select/Portfile
===================================================================
--- trunk/dports/sysutils/gcc_select/Portfile 2013-02-10 22:56:33 UTC (rev 102900)
+++ trunk/dports/sysutils/gcc_select/Portfile 2013-02-10 23:07:36 UTC (rev 102901)
@@ -5,7 +5,7 @@
name gcc_select
version 0.1
-revision 7
+revision 8
categories sysutils
platforms darwin
license BSD
@@ -25,57 +25,27 @@
destroot {
select::install gcc ${filespath}/base
select::install gcc ${filespath}/none
-}
-# install gcc33, gcc40
-platform darwin 8 powerpc {
- post-destroot {
- select::install gcc ${filespath}/gcc33
- select::install gcc ${filespath}/gcc40
- }
-}
+ if {[file exists /usr/bin/gcc-3.3]} {
+ select::install gcc ${filespath}/gcc33
+ }
-# install gcc40
-platform darwin 8 i386 {
- post-destroot {
- select::install gcc ${filespath}/gcc40
- }
-}
+ if {[file exists /usr/bin/gcc-4.0]} {
+ select::install gcc ${filespath}/gcc40
+ }
-# install gcc40, gcc42, llvm-gcc42
-platform darwin 9 {
- post-destroot {
- select::install gcc ${filespath}/gcc40
- select::install gcc ${filespath}/gcc42
- # llvm-gcc-4.2 is not available in /usr/bin on Leopard
- copy ${filespath}/llvm-gcc42 ${workpath}/llvm-gcc42
- reinplace "s|/usr/bin|${developer_dir}/usr/bin|" ${workpath}/llvm-gcc42
- select::install gcc ${workpath}/llvm-gcc42
- }
-}
+ if {[file exists /usr/bin/gcc-4.2]} {
+ select::install gcc ${filespath}/gcc42
+ }
-# install gcc40, gcc42, llvm-gcc42
-platform darwin 10 {
- post-destroot {
- select::install gcc ${filespath}/gcc40
- select::install gcc ${filespath}/gcc42
- select::install gcc ${filespath}/llvm-gcc42
- }
+ if {[file exists /usr/bin/llvm-gcc-4.2]} {
+ select::install gcc ${filespath}/llvm-gcc42
+ } elseif {[file exists ${developer_dir}/usr/bin/llvm-gcc-4.2]} {
+ # llvm-gcc-4.2 is not available in /usr/bin on Leopard
+ copy ${filespath}/llvm-gcc42 ${workpath}/llvm-gcc42
+ reinplace "s|/usr/bin|${developer_dir}/usr/bin|" ${workpath}/llvm-gcc42
+ select::install gcc ${workpath}/llvm-gcc42
+ }
}
-# install gcc42, llvm-gcc42
-platform darwin 11 {
- post-destroot {
- select::install gcc ${filespath}/gcc42
- select::install gcc ${filespath}/llvm-gcc42
- }
-}
-
-# install llvm-gcc42
-platform darwin 12 {
- post-destroot {
- select::install gcc ${filespath}/llvm-gcc42
- }
-}
-
livecheck.type none
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130210/3b691c99/attachment-0001.html>
More information about the macports-changes
mailing list