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-devel |
---|
7 | version 3.0.0-20100615 |
---|
8 | homepage http://www.newartisans.com/software/ledger.html |
---|
9 | categories finance |
---|
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 newartisans.com:johnw |
---|
16 | |
---|
17 | platforms darwin |
---|
18 | |
---|
19 | use_bzip2 yes |
---|
20 | master_sites http://ftp.newartisans.com/pub/ledger/ |
---|
21 | distname ledger-${version} |
---|
22 | checksums md5 980e819c4cb68b8777849a44316e0edc \ |
---|
23 | sha1 ff1b281ce6ddfeb5814ce59bd4d69b97ddb21f7e \ |
---|
24 | rmd160 a40e64bf21c9c132619b0921dee0e12299e3938a |
---|
25 | |
---|
26 | depends_build port:automake \ |
---|
27 | port:autoconf \ |
---|
28 | port:libtool |
---|
29 | |
---|
30 | depends_lib port:gettext \ |
---|
31 | port:gmp \ |
---|
32 | port:mpfr \ |
---|
33 | port:boost \ |
---|
34 | port:libedit |
---|
35 | |
---|
36 | configure.args --with-extra-includes=${prefix}/include \ |
---|
37 | --with-extra-libs=${prefix}/lib |
---|
38 | |
---|
39 | build.args DYLD_LIBRARY_PATH=${worksrcpath}/ledger/.libs |
---|
40 | |
---|
41 | destroot.args DESTDIR=${destroot}${prefix} \ |
---|
42 | DYLD_LIBRARY_PATH=${worksrcpath}/ledger/.libs \ |
---|
43 | docprefix=${destroot}/share/doc |
---|
44 | |
---|
45 | variant debug description {Enable debug mode} { |
---|
46 | configure.args-append --enable-debug=yes |
---|
47 | } |
---|
48 | |
---|
49 | variant icu description {Enable full Unicode support} { |
---|
50 | if {[variant_isset python25]} { |
---|
51 | depends_lib-delete port:boost+python25 |
---|
52 | depends_lib-append port:boost+icu+python25 |
---|
53 | } elsif {[variant_isset python26]} { |
---|
54 | depends_lib-delete port:boost+python26 |
---|
55 | depends_lib-append port:boost+icu+python26 |
---|
56 | } else { |
---|
57 | depends_lib-delete port:boost |
---|
58 | depends_lib-append port:boost+icu |
---|
59 | } |
---|
60 | } |
---|
61 | |
---|
62 | variant python25 description {build python 2.5 support} conflicts python26 { |
---|
63 | set pyversion 2.5 |
---|
64 | if {[variant_isset icu]} { |
---|
65 | depends_lib-delete port:boost+icu |
---|
66 | depends_lib-append port:boost+icu+python25 |
---|
67 | } else { |
---|
68 | depends_lib-delete port:boost |
---|
69 | depends_lib-append port:boost+python25 |
---|
70 | } |
---|
71 | depends_lib-append port:python25 |
---|
72 | } |
---|
73 | |
---|
74 | variant python26 description {build python 2.6 support} conflicts python25 { |
---|
75 | set pyversion 2.6 |
---|
76 | if {[variant_isset icu]} { |
---|
77 | depends_lib-delete port:boost+icu |
---|
78 | depends_lib-append port:boost+icu+python26 |
---|
79 | } else { |
---|
80 | depends_lib-delete port:boost |
---|
81 | depends_lib-append port:boost+python26 |
---|
82 | } |
---|
83 | depends_lib-append port:python26 |
---|
84 | } |
---|
85 | |
---|
86 | livecheck.check regex |
---|
87 | livecheck.url [lindex ${master_sites} 0] |
---|
88 | livecheck.regex ${name}-(\[0-9.-\]+)\\.tar |
---|