source: trunk/dports/office/todotxt/Portfile @ 106651

Last change on this file since 106651 was 99635, checked in by and.damore@…, 8 years ago

port todotxt: revision bump
see http://lists.macosforge.org/pipermail/macports-dev/2012-November/020995.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 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 99635 2012-11-12 17:11:19Z and.damore@macports.org $
3
4PortSystem          1.0
5PortGroup           github 1.0
6
7github.setup        ginatrapani todo.txt-cli 2.9 v
8revision            1
9name                todotxt
10categories          office
11license             GPL
12maintainers         snc openmaintainer
13supported_archs     noarch
14
15description         Simple, extensible shell script to manage your todo file.
16long_description    A simple and extensible shell script for managing your \
17                    todo.txt file.
18
19platforms           darwin
20
21checksums           rmd160  9b0a2cceca031f2f9c5e8615c280593befdf03c2 \
22                    sha256  15289aa2edab7a3d59b4c1d296d43fd5d692b5d4545af9fa695fa809c5c6f6cc
23
24use_configure       no
25
26build {}
27
28destroot {
29    xinstall -m 755 ${worksrcpath}/todo.sh ${destroot}${prefix}/bin/$name
30    xinstall -d -m 755 ${destroot}${prefix}/share/${name}
31    xinstall -m 644 ${worksrcpath}/todo.cfg ${destroot}${prefix}/share/${name}/todo.cfg-dist
32}
33
34patch {
35    # default cfg will try to write in $prefix/bin, since this isn't obvious from the config
36    # file we help the user avoiding this
37    reinplace "s|TODO_DIR=`dirname \"\$0\"`|TODO_DIR=\"\$HOME\"/.todo|" ${worksrcpath}/todo.cfg
38}
39
40notes "Copy the default configuration file from  ${prefix}/etc/todo.cfg-dist \
41to  ~/.todo/config  and customize it."
Note: See TracBrowser for help on using the repository browser.