Ticket #44040: Portfile

File Portfile, 1.6 KB (added by Schamschula (Marius Schamschula), 10 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem 1.0
5
6name            wcd
7version         5.2.5
8categories      sysutils
9maintainers     gmail.com:mschamschula openmaintainer
10platforms       darwin
11description     Wcd is a command-line program to change directory fast.
12long_description     Wcd is a command-line program to change directory fast. It saves\
13                time typing at the keyboard. One needs to type only a part of a directory\
14                name and wcd will jump to it. Wcd has a fast selection method in case of\
15                multiple matches and allows aliasing and banning of directories. Wcd also\
16                includes a full screen interactive directory tree browser with speed\
17                search.
18
19homepage        http://waterlan.home.xs4all.nl/
20master_sites    ${homepage}
21
22license         GPL-2
23
24checksums       rmd160  c44dd74c7c42fd1e0db1378d8057a161d849f892 \
25                sha256  e2b32766c100355b6b31c61a1ebf480b7d5785928cf4bc915b626b0f9a611648
26
27worksrcdir      ${distname}/src
28
29depends_lib     port:ncurses
30
31use_configure   no
32
33variant universal {}
34
35build.args      CC="${configure.cc} [get_canonical_archflags cc]"
36
37eval destroot.args ${build.args}
38
39pre-build       {
40        reinplace "s|\$(DESTDIR)/usr/|\$(DESTDIR)${prefix}/|g" \
41                ${worksrcpath}/Makefile
42        reinplace "s|/usr|${prefix}/|g" \
43                ${worksrcpath}/Makefile
44                }
45
46post-destroot   {
47        file rename ${destroot}${prefix}/bin/wcd.exe ${destroot}${prefix}/bin/wcd
48                }
49