Ticket #16684: Portfile

File Portfile, 2.0 KB (added by jwiegley@…, 16 years ago)

Portfile for Ledger

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                ledger
7version             2.6.1
8homepage            http://www.newartisans.com/software/ledger.html
9categories          office accounting finance reporting
10
11description         A command-line, double-entry accounting tool.
12long_description    Ledger is a powerful, double-entry accounting system that \
13                                is accessed from the UNIX command-line.
14
15maintainers         johnw
16
17platforms           darwin
18
19use_bzip2           no
20master_sites        ftp://ftp.newartisans.com/pub/ledger/:source
21distname            ${name}-${version}
22distfiles           ${distname}${extract.suffix}:source
23checksums           ${distname}${extract.suffix} \
24                                                md5     7d2ebb3fbc0ca14e34f4aada9fe764a0 \
25                        sha1    d00ca4d61f28793c22be892411491d5ff48f156b \
26                        rmd160  e6ef6e0acfa125a88927ac399ec8e37fbbe1fe66
27
28depends_build       port:automake \
29                    port:autoconf \
30                    port:libtool
31
32depends_lib         port:pcre \
33                    port:gmp \
34                    port:expat
35
36configure.args          --with-extra-includes=${prefix}/include \
37                    --with-extra-libs=${prefix}/lib
38
39#patchfiles          patch-admin-libtool.m4.in.diff \
40#                    patch-ledger-ProjectFile.cpp.diff
41
42build.args          DYLD_LIBRARY_PATH=${worksrcpath}/ledger/.libs
43
44platform darwin 9 {}
45
46destroot.args       DESTDIR=${destroot}${prefix} \
47                    DYLD_LIBRARY_PATH=${worksrcpath}/ledger/.libs \
48                    docprefix=${destroot}/share/doc
49
50post-destroot {}
51
52variant ofx description {Allow reading of OFX data files} {
53    depends_lib-append          port:libofx
54}
55
56variant debug description {Enable debug mode} {
57    configure.args-append       --enable-debug=yes
58}
59
60#livecheck.check     regex
61#livecheck.url       ${homepage}
62#livecheck.regex     "Latest Stable Ledger \\(Version (\\d+.\\d+.\\d+)\\)"
63