source: trunk/dports/shells/rc/Portfile @ 116136

Last change on this file since 116136 was 116136, checked in by jmr@…, 7 years ago

rc: fix installation bypassing destroot

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