Ticket #26277: Portfile

File Portfile, 1.7 KB (added by blair@…, 14 years ago)

Portfile for time-track-cli

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
5name                time-track-cli
6version             1.2
7categories          office tcl
8platforms           darwin
9maintainers         the-blair.com:blair
10description         Simple time tracking application using the CLI.  In the spirit \
11                    of todo.txt.
12long_description    In the spirit of TODO.TXT, this little Tcl script will handle \
13                    tracking how much time you spend on tasks throughout the day. \
14                    All records are stored in a plain text file so youre not \
15                    dependent on anyone elses format.
16homepage            http://github.com/dongola7/Time-Track-CLI
17master_sites        http://the-blair.com/sw/time-track-cli
18
19checksums           md5 ea6237ad43af401536322d2403ea1880 \
20                    sha1 7c0594cdea36c8485ac008f4db6269e887c09ae1 \
21                    rmd160 735e241d57a7814b7ac7f9b04151aec8795b71b9
22
23depends_lib         port:tcl \
24                    port:tcllib
25
26extract.mkdir       yes
27
28# Eliminate some unecessary phases.
29configure { }
30build { }
31
32destroot {
33    # Install time_track.tcl
34    xinstall -m 755 -d ${destroot}${prefix}/bin
35    xinstall -m 755 ${worksrcpath}/time_track.tcl ${destroot}${prefix}/bin
36
37    # Install example hooks
38    file mkdir ${destroot}${prefix}/share/doc/${name}/hooks
39    foreach hook_file [glob ${worksrcpath}/*.sample] {
40        file copy $hook_file ${destroot}${prefix}/share/doc/${name}/hooks
41    }
42
43    # Install documentation
44    file copy ${worksrcpath}/README.html ${destroot}${prefix}/share/doc/${name}
45}