source: trunk/dports/shells/rc/Portfile

Last change on this file was 154316, checked in by and.damore@…, 11 months ago

port rc: update to version 1.7.4, update homepage; nomantainer

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 154316 2016-10-27 17:48:45Z ryandesign@macports.org $
2
3PortSystem  1.0
4
5name        rc
6version     1.7.4
7categories  shells
8maintainers nomaintainer
9description A Plan 9 shell
10license     Permissive
11
12long_description    \
13    This is a reimplementation for Unix, by Byron Rakitzis, \
14    of the Plan 9 shell. rc offers much the same capabilities \
15    as a traditional Bourne shell, but with a much cleaner syntax.
16
17homepage    http://tobold.org/article/rc
18platforms   darwin
19
20master_sites    http://static.tobold.org/rc
21
22checksums           rmd160  adf5bb79f4036b79c8359fd6afd40a11fa85ff6a \
23                    sha256  5ed26334dd0c1a616248b15ad7c90ca678ae3066fa02c5ddd0e6936f9af9bfd8
24
25patchfiles  Makefile.in.patch
26
27configure.args  --mandir=${prefix}/share/man --with-history
28
29test.run    yes
30test.target check
31
32variant readline description {use readline} {
33    depends_lib port:readline
34    configure.args-append  --with-readline
35}
36
37variant editline description {use libedit} {
38    depends_lib port:libedit
39    configure.args-append  --with-editline
40}
41
42pre-activate {
43    foreach f {- -- -p --p} {
44        set path ${prefix}/bin/${f}
45        if {![catch {file type $path} ftype] && ($ftype eq "file" || $ftype eq "link") && [registry_file_registered $path] eq "0"} {
46            file delete -force $path
47        }
48    }
49}
Note: See TracBrowser for help on using the repository browser.