[97723] trunk/dports/devel/gpatch

raimue at macports.org raimue at macports.org
Thu Sep 13 01:10:05 PDT 2012


Revision: 97723
          http://trac.macports.org//changeset/97723
Author:   raimue at macports.org
Date:     2012-09-13 01:10:05 -0700 (Thu, 13 Sep 2012)
Log Message:
-----------
devel/gpatch:
Update to version 2.7, add unprefixed symlink to ${prefix}/libexec/gnubin,
update description to be less technical.

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

Removed Paths:
-------------
    trunk/dports/devel/gpatch/files/

Modified: trunk/dports/devel/gpatch/Portfile
===================================================================
--- trunk/dports/devel/gpatch/Portfile	2012-09-13 07:36:38 UTC (rev 97722)
+++ trunk/dports/devel/gpatch/Portfile	2012-09-13 08:10:05 UTC (rev 97723)
@@ -3,8 +3,7 @@
 PortSystem      1.0
 
 name            gpatch
-version         2.6.1
-revision        1
+version         2.7
 categories      devel
 platforms       darwin sunos
 license         GPL-3+
@@ -12,27 +11,34 @@
 
 description     GNU patch, for applying diffs to files
 long_description \
-        The GNU patch adds support for: \
-        handling arbitrary binary data and large files. \
-        the unified context diff format that GNU diff can produce. \
-        making GNU Emacs-style backup files. \
-        improved interaction with RCS and SCCS. \
-        the GNU conventions for option parsing and configuring and compilation. \
-        better POSIX.2 compliance.
+    Patch takes a patch file containing a difference listing produced by the \
+    diff program and applies those differences to one or more original files, \
+    producing patched versions.
 
 homepage        http://www.gnu.org/software/patch/
 master_sites    gnu:patch
 
 distname        patch-${version}
-checksums       md5     0818d1763ae0c4281bcdc63cdac0b2c0 \
-                sha1    105f313d14b5458e0aa229c518bda9ebdf921a1b \
-                rmd160  5af3acb89cc9ce5484c9a9dce6e39fb04dbe5e2e
+checksums       rmd160  9d8f3b81cb79cc9a141851f3228b02364f1e635c \
+                sha256  9077cd75a915330513796e222049c2b6da69299729795e08c02e507bff60d6ee
 use_bzip2       yes
 
-patchfiles      patch-strnlen.diff
+configure.args  --program-prefix=g
 
-use_autoconf    yes
+post-destroot {
+    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]
+    }
+    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
+    foreach manpage [glob -tails -directory ${destroot}${prefix}/share/man/man1 g*] {
+        ln -s ${prefix}/share/man/man1/${manpage}.gz ${destroot}${prefix}/libexec/gnubin/man/man1/[string range $manpage 1 end].gz
+    }
+}
 
-configure.args  --program-prefix=g
+notes "
+    The patch tool provided by this port is prefixed with the character 'g' by default making it available as 'gpatch'.
 
-configure.universal_args-delete --disable-dependency-tracking
+    If you want to use 'patch' and other GNU coreutils by default, add this directory to the front of your PATH environment variable:
+        ${prefix}/libexec/gnubin/
+"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120913/5557b53c/attachment.html>


More information about the macports-changes mailing list