Ticket #25213: Portfile.2

File Portfile.2, 3.4 KB (added by jwiegley@…, 12 years ago)

Current version of ledger-devel

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-devel
7version             3.0.0-20120510
8homepage            http://www.newartisans.com/software/ledger.html
9categories          finance
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         newartisans.com:johnw
16
17platforms           darwin
18
19use_bzip2           yes
20master_sites        http://ftp.newartisans.com/pub/ledger/
21distname            ledger-${version}
22checksums           md5     c4ddc84a0512bfcef3334ed64f7d27cb \
23                    sha1    1d07fd8261cac752d34a735d67cc4f449c2df129 \
24                    rmd160  0963cd025203d4cf7482058b194ed71672c62985
25
26depends_build       port:automake \
27                    port:autoconf \
28                    port:libtool
29
30depends_lib         port:gettext \
31                    port:gmp \
32                    port:mpfr \
33                    port:boost \
34                    port:libedit
35
36configure.args      --with-extra-includes=${prefix}/include \
37                    --with-extra-libs=${prefix}/lib
38
39build.args          DYLD_LIBRARY_PATH=${worksrcpath}/ledger/.libs
40
41destroot.args       DESTDIR=${destroot}${prefix} \
42                    DYLD_LIBRARY_PATH=${worksrcpath}/ledger/.libs \
43                    docprefix=${destroot}/share/doc
44
45variant debug description {Enable debug mode} {
46    configure.args-append   --enable-debug=yes
47}
48
49variant python25 description {build python 2.5 support} conflicts python26, python27 {
50    set pyversion       2.5
51    depends_lib-delete      port:boost
52
53
54    if {![file exists ${prefix}/lib/libboost_python-mt.dylib]} {
55        depends_lib-delete port:boost
56        pre-configure {
57            ui_error "
58****
59**** ${name} requires port boost installed with variant +python25.
60**** Please do the following then try installing ${name} again:
61****
62****     sudo port install boost +python25
63****
64
65"
66            return -code error "incompatible boost installation"
67        }
68    }
69}
70
71variant python26 description {build python 2.6 support} conflicts python25, python27 {
72    set pyversion       2.6
73    depends_lib-append      port:python26
74
75    if {![file exists ${prefix}/lib/libboost_python-mt.dylib]} {
76        depends_lib-delete port:boost
77        pre-configure {
78            ui_error "
79****
80**** ${name} requires port boost installed with variant +python26.
81**** Please do the following then try installing ${name} again:
82****
83****     sudo port install boost +python26
84****
85
86"
87            return -code error "incompatible boost installation"
88        }
89    }
90}
91
92variant python27 description {build python 2.7 support} conflicts python25, python26 {
93    set pyversion       2.7
94    depends_lib-append      port:python27
95
96    if {![file exists ${prefix}/lib/libboost_python-mt.dylib]} {
97        depends_lib-delete port:boost
98        pre-configure {
99            ui_error "
100****
101**** ${name} requires port boost installed with variant +python27.
102**** Please do the following then try installing ${name} again:
103****
104****     sudo port install boost +python27
105****
106
107"
108            return -code error "incompatible boost installation"
109        }
110    }
111}
112
113livecheck.check     regex
114livecheck.url       [lindex ${master_sites} 0]
115livecheck.regex     ${name}-(\[0-9.-\]+)\\.tar