On Feb 24, 2009, at 13:46, [email protected] wrote:

Revision: 47283
          http://trac.macports.org/changeset/47283
Author:   [email protected]
Date:     2009-02-24 11:46:15 -0800 (Tue, 24 Feb 2009)
Log Message:
-----------
Use prefix for ada variant, add gnuada variant.

[snip]

@@ -142,7 +142,7 @@
 # an ada compiler to compile ada. hence it is just a variant.
 #
 variant macada                                        \
-    description "Uses MacAda compiler to bootstrap!"  {
+ description "Uses MacAda compiler (http://www.macada.org) to bootstrap!" {
     configure.cc            /usr/local/ada-4.3/bin/gcc
     configure.cpp           /usr/local/ada-4.3/bin/cpp
     configure.cxx           /usr/local/ada-4.3/bin/g++
@@ -152,8 +152,8 @@
     configure.env-append    GNATBIND=/usr/local/ada-4.3/bin/gnatbind
 }

-variant ada                                                    \
-    description "Uses the MacPorts Ada compiler to bootstrap!" {
+variant gnuada                                                    \
+ description "Uses the GnuAda (http://gnuada.sourceforge.net/) compiler to bootstrap!" {
     configure.cc            /opt/local/bin/gcc-gnat-4.3
     configure.cpp           /opt/local/bin/cpp-gnat-4.3
     configure.cxx           /opt/local/bin/g++-gnat-4.3
@@ -163,9 +163,17 @@
     configure.env-append    GNATBIND=/opt/local/bin/gnatbind
 }

+variant ada                                                    \
+    description "Uses the MacPorts Ada compiler to bootstrap!" {
+    configure.cc            ${prefix}/bin/gcc-gnat-4.3
+    configure.cpp           ${prefix}/bin/cpp-gnat-4.3
+    configure.cxx           ${prefix}/bin/g++-gnat-4.3
+    configure.objc          ${prefix}/bin/gcc-gnat-4.3
+    configure.env-append    PATH=${prefix}/bin:$env(PATH)
+    configure.env-append    GNATMAKE=${prefix}/bin/gnatmake
+    configure.env-append    GNATBIND=${prefix}/bin/gnatbind
+}

What is the difference between the ada and gnuada variants? It looks like the ada variant uses an ada compiler provided by MacPorts (if so, there should be a dependency on a MacPorts port in that variant), and the gnuada variant uses an ada compiler provided by someone else in binary form which installs into /opt/local? If that's correct, then that's very disconcerting; we should not be encouraging users to install something that puts files into /opt/local without using MacPorts to do so. And the gnuada folks should not be distributing binaries that install things into the MacPorts /opt/local prefix.



_______________________________________________
macports-dev mailing list
[email protected]
http://lists.macosforge.org/mailman/listinfo.cgi/macports-dev

Reply via email to