| 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 | |
|---|
| 4 | PortSystem 1.0 |
|---|
| 5 | |
|---|
| 6 | name ledger |
|---|
| 7 | version 2.6.1 |
|---|
| 8 | homepage http://www.newartisans.com/software/ledger.html |
|---|
| 9 | categories office accounting finance reporting |
|---|
| 10 | |
|---|
| 11 | description A command-line, double-entry accounting tool. |
|---|
| 12 | long_description Ledger is a powerful, double-entry accounting system that \ |
|---|
| 13 | is accessed from the UNIX command-line. |
|---|
| 14 | |
|---|
| 15 | maintainers johnw |
|---|
| 16 | |
|---|
| 17 | platforms darwin |
|---|
| 18 | |
|---|
| 19 | use_bzip2 no |
|---|
| 20 | master_sites ftp://ftp.newartisans.com/pub/ledger/:source |
|---|
| 21 | distname ${name}-${version} |
|---|
| 22 | distfiles ${distname}${extract.suffix}:source |
|---|
| 23 | checksums ${distname}${extract.suffix} \ |
|---|
| 24 | md5 7d2ebb3fbc0ca14e34f4aada9fe764a0 \ |
|---|
| 25 | sha1 d00ca4d61f28793c22be892411491d5ff48f156b \ |
|---|
| 26 | rmd160 e6ef6e0acfa125a88927ac399ec8e37fbbe1fe66 |
|---|
| 27 | |
|---|
| 28 | depends_build port:automake \ |
|---|
| 29 | port:autoconf \ |
|---|
| 30 | port:libtool |
|---|
| 31 | |
|---|
| 32 | depends_lib port:pcre \ |
|---|
| 33 | port:gmp \ |
|---|
| 34 | port:expat |
|---|
| 35 | |
|---|
| 36 | configure.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 | |
|---|
| 42 | build.args DYLD_LIBRARY_PATH=${worksrcpath}/ledger/.libs |
|---|
| 43 | |
|---|
| 44 | platform darwin 9 {} |
|---|
| 45 | |
|---|
| 46 | destroot.args DESTDIR=${destroot}${prefix} \ |
|---|
| 47 | DYLD_LIBRARY_PATH=${worksrcpath}/ledger/.libs \ |
|---|
| 48 | docprefix=${destroot}/share/doc |
|---|
| 49 | |
|---|
| 50 | post-destroot {} |
|---|
| 51 | |
|---|
| 52 | variant ofx description {Allow reading of OFX data files} { |
|---|
| 53 | depends_lib-append port:libofx |
|---|
| 54 | } |
|---|
| 55 | |
|---|
| 56 | variant 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 | |
|---|