[20148] trunk/dports/devel/m4/Portfile

source_changes at macosforge.org source_changes at macosforge.org
Wed Oct 25 10:00:22 PDT 2006


Revision: 20148
          http://trac.macosforge.org/projects/macports/changeset/20148
Author:   blair at macports.org
Date:     2006-10-25 10:00:20 -0700 (Wed, 25 Oct 2006)

Log Message:
-----------
Add a normal_install_name variant which installs symlinks into
$prefix/bin for each of the files that match $prefix/bin/g*.  This
allows MacPorts to depend upon the g* filenames while providing users
the non-g* names for easy use.

See
http://lists.macosforge.org/pipermail/macports-dev/2006-October/000096.html
for more information.

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

Modified: trunk/dports/devel/m4/Portfile
===================================================================
--- trunk/dports/devel/m4/Portfile	2006-10-25 12:41:12 UTC (rev 20147)
+++ trunk/dports/devel/m4/Portfile	2006-10-25 17:00:20 UTC (rev 20148)
@@ -25,3 +25,12 @@
 
 test.run	yes
 test.target	check
+
+post-destroot {
+	if {[variant_isset normal_install_names]} {
+		system "cd ${destroot}${prefix}/bin && for f in g*; do ln -s \$f `echo \$f | sed -e 's/^g//'`; done"
+	}
+}
+
+variant normal_install_names {
+}

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061025/88e3e3c5/attachment.html


More information about the macports-changes mailing list