[80859] trunk/dports/devel/gdb/Portfile

blair at macports.org blair at macports.org
Tue Jul 19 11:26:37 PDT 2011


Revision: 80859
          http://trac.macports.org/changeset/80859
Author:   blair at macports.org
Date:     2011-07-19 11:26:37 -0700 (Tue, 19 Jul 2011)
Log Message:
-----------
gdb: resolve #30002 by renaming fsf-gdb* to ggdb* and making links in
${prefix}/libexec/gnubin.

Modified Paths:
--------------
    trunk/dports/devel/gdb/Portfile

Modified: trunk/dports/devel/gdb/Portfile
===================================================================
--- trunk/dports/devel/gdb/Portfile	2011-07-19 14:30:11 UTC (rev 80858)
+++ trunk/dports/devel/gdb/Portfile	2011-07-19 18:26:37 UTC (rev 80859)
@@ -5,6 +5,7 @@
 
 name            gdb
 version         7.2
+revision        1
 categories      devel
 maintainers     dweber openmaintainer
 description     GDB: The GNU Project Debugger
@@ -50,13 +51,20 @@
     --infodir=${prefix}/share/info \
     --mandir=${prefix}/share/man \
     --with-docdir=${prefix}/share/doc \
-    --program-prefix=fsf-
+    --program-prefix=g
 
 configure.cflags-append     -I${prefix}/include
 configure.cxxflags-append   -I${prefix}/include
 
 post-destroot {
-    system "chgrp procmod ${destroot}${prefix}/bin/fsf-gdb*"
-    system "chmod g+s ${destroot}${prefix}/bin/fsf-gdb*"
+    system "chgrp procmod ${destroot}${prefix}/bin/ggdb*"
+    system "chmod g+s ${destroot}${prefix}/bin/ggdb*"
+
     move ${destroot}${prefix}/share/info/standards.info ${destroot}${prefix}/share/info/gdb-standards.info
+
+    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
+    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
+        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
+    }
+
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110719/b335a155/attachment.html>


More information about the macports-changes mailing list