source: trunk/dports/devel/gpatch/Portfile

Last change on this file was 125308, checked in by ryandesign@…, 3 years ago

gpatch: new maintainer (#44971)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 125308 2014-09-12 23:29:42Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            gpatch
6version         2.7.1
7categories      devel
8platforms       darwin sunos
9license         GPL-3+
10maintainers     gmail.com:stuartwesterman openmaintainer
11
12description     GNU patch, for applying diffs to files
13long_description \
14    Patch takes a patch file containing a difference listing produced by the \
15    diff program and applies those differences to one or more original files, \
16    producing patched versions.
17
18homepage        http://www.gnu.org/software/patch/
19master_sites    gnu:patch
20
21distname        patch-${version}
22checksums       rmd160  48c39a34ab3bf6c86da8d107f5687a9f56a6b638 \
23                sha256  aae676de9e95051f425af4507fcc9a019941a2a1f78405e7dbd40bccf786aa11
24use_bzip2       yes
25
26configure.args  --program-prefix=g
27
28post-destroot {
29    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin
30    foreach binary [glob -tails -directory ${destroot}${prefix}/bin g*] {
31        ln -s ${prefix}/bin/${binary} ${destroot}${prefix}/libexec/gnubin/[string range $binary 1 end]
32    }
33    xinstall -m 755 -d ${destroot}${prefix}/libexec/gnubin/man/man1
34    foreach manpage [glob -tails -directory ${destroot}${prefix}/share/man/man1 g*] {
35        ln -s ${prefix}/share/man/man1/${manpage}.gz ${destroot}${prefix}/libexec/gnubin/man/man1/[string range $manpage 1 end].gz
36    }
37}
38
39notes "
40    The patch tool provided by this port is prefixed with the character 'g' by default making it available as 'gpatch'.
41
42    If you want to use 'patch' and other GNU coreutils by default, add this directory to the front of your PATH environment variable:
43        ${prefix}/libexec/gnubin/
44"
Note: See TracBrowser for help on using the repository browser.