source: trunk/dports/office/todotxt/Portfile

Last change on this file was 115720, checked in by snc@…, 4 years ago

todotxt: update to 2.10

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
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: Portfile 115720 2014-01-09 20:44:48Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        ginatrapani todo.txt-cli 2.10 v
8name                todotxt
9categories          office
10license             GPL
11maintainers         snc openmaintainer
12supported_archs     noarch
13
14description         Simple, extensible shell script to manage your todo file.
15long_description    A simple and extensible shell script for managing your \
16                    todo.txt file.
17
18platforms           darwin
19
20checksums           rmd160  2e09d0ab6c841048e885fd54ab54e637280375d5 \
21                    sha256  d58cd727fe5cab58615655cc46b43f7392c8a540b561247c8d9a23844523cbe5
22
23use_configure       no
24
25build {}
26
27post-patch {
28    reinplace "s/todo\\.sh/${name}/" ${worksrcpath}/todo_completion
29}
30
31destroot {
32    xinstall -m 755 ${worksrcpath}/todo.sh ${destroot}${prefix}/bin/$name
33    xinstall -d -m 755 ${destroot}${prefix}/share/${name}
34    xinstall -m 644 ${worksrcpath}/todo.cfg ${destroot}${prefix}/share/${name}/todo.cfg-dist
35}
36
37post-destroot {
38    set completions_path ${destroot}${prefix}/share/bash-completion/completions
39    xinstall -d ${completions_path}
40    xinstall -m 644 ${worksrcpath}/todo_completion ${completions_path}/${name}
41}
42
43patch {
44    # default cfg will try to write in $prefix/bin, since this isn't obvious from the config
45    # file we help the user avoiding this
46    reinplace "s|TODO_DIR=`dirname \"\$0\"`|TODO_DIR=\"\$HOME\"/.todo|" ${worksrcpath}/todo.cfg
47}
48
49variant bash_completion {
50    depends_run-append  path:etc/bash_completion:bash-completion
51}
52
53notes "Copy the default configuration file from  ${prefix}/share/${name}/todo.cfg-dist \
54to  ~/.todo/config  and customize it."
Note: See TracBrowser for help on using the repository browser.